2024.05.01 13:14:59.510266 [ 672 ] {} Context: Server was built in debug mode. It will work slowly. 2024.05.01 13:14:59.512827 [ 672 ] {} Context: The setting 'allow_remote_fs_zero_copy_replication' is enabled for MergeTree tables. But the feature of 'zero-copy replication' is under development and is not ready for production. The usage of this feature can lead to data corruption and loss. The setting should be disabled in production. 2024.05.01 13:15:03.289938 [ 672 ] {} Context: The setting 'merge_tree_metadata_cache' is enabled. But the feature of 'metadata cache in RocksDB' is experimental and is not ready for production. The usage of this feature can lead to data corruption and loss. The setting should be disabled in production. See the corresponding report at https://github.com/ClickHouse/ClickHouse/issues/51182 2024.05.01 13:15:04.086826 [ 672 ] {} KeeperLogStore: No logs exists in /var/lib/clickhouse/coordination/logs. It's Ok if it's the first run of clickhouse-keeper. 2024.05.01 13:15:04.087881 [ 672 ] {} KeeperLogStore: Removing all changelogs 2024.05.01 13:15:04.089806 [ 672 ] {} KeeperServer: Got 1000000000000000 value for setting 'reserved_log_items' which is bigger than int32_t max value, lowering value to 2147483647. 2024.05.01 13:15:04.095385 [ 672 ] {} KeeperStateManager: No state was read 2024.05.01 13:15:04.095525 [ 672 ] {} RaftInstance: invalid election timeout lower bound detected, adjusted to 0 2024.05.01 13:15:04.095644 [ 672 ] {} RaftInstance: invalid election timeout upper bound detected, adjusted to 0 2024.05.01 13:15:04.147236 [ 892 ] {} RaftInstance: Election timeout, initiate leader election 2024.05.01 13:15:04.263484 [ 672 ] {} Access(local_directory): File /var/lib/clickhouse/access/users.list doesn't exist 2024.05.01 13:15:04.263659 [ 672 ] {} Access(local_directory): Recovering lists in directory /var/lib/clickhouse/access/ 2024.05.01 13:15:04.629777 [ 672 ] {} Context: Table system.session_log is enabled. It's unreliable and may contain garbage. Do not use it for any kind of security monitoring. 2024.05.01 13:17:10.414651 [ 1027 ] {} ZooKeeperClient: Code: 33. DB::Exception: Cannot read all data. Bytes read: 0. Bytes expected: 4. (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:117: void DB::readPODBinary(int&, DB::ReadBuffer&) @ 0x000000001398e842 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:1099: void DB::readBinary(int&, DB::ReadBuffer&) @ 0x000000001398e7fd in /usr/bin/clickhouse 9. /build/src/IO/ReadHelpers.h:1136: void DB::readBinaryEndian<(std::endian)64206, int>(int&, DB::ReadBuffer&) @ 0x000000001e594f5d in /usr/bin/clickhouse 10. /build/src/IO/ReadHelpers.h:1149: void DB::readBinaryBigEndian(int&, DB::ReadBuffer&) @ 0x000000001e594f1d in /usr/bin/clickhouse 11. /build/src/Common/ZooKeeper/ZooKeeperIO.h:51: void Coordination::read(int&, DB::ReadBuffer&) @ 0x000000001e59039d in /usr/bin/clickhouse 12. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:284: void Coordination::ZooKeeper::read(int&) @ 0x000000001f2e8434 in /usr/bin/clickhouse 13. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:744: Coordination::ZooKeeper::receiveEvent() @ 0x000000001f2ddaa3 in /usr/bin/clickhouse 14. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:710: Coordination::ZooKeeper::receiveThread() @ 0x000000001f2dd524 in /usr/bin/clickhouse 15. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:356: Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1::operator()() const @ 0x000000001f2e3118 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&>()()) std::__invoke[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&) @ 0x000000001f2e30f5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&, std::tuple<>&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001f2e30d9 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&, std::tuple<>&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&, std::tuple<>&) @ 0x000000001f2e303d in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'()::operator()() @ 0x000000001f2e2f65 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'()&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&) @ 0x000000001f2e2ed5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'()&) @ 0x000000001f2e2eb5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001f2e2e95 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001f2e2e60 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:10.519407 [ 1028 ] {} ZooKeeperClient: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:43634 -> [::1]:9181). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6ba4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Common/ZooKeeper/ZooKeeperCommon.cpp:51: Coordination::ZooKeeperRequest::write(DB::WriteBuffer&) const @ 0x000000001f2ac245 in /usr/bin/clickhouse 9. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:645: Coordination::ZooKeeper::sendThread() @ 0x000000001f2dc81c in /usr/bin/clickhouse 10. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:355: Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0::operator()() const @ 0x000000001f2e28d8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&>()()) std::__invoke[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&) @ 0x000000001f2e28b5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&, std::tuple<>&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001f2e2899 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&, std::tuple<>&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&, std::tuple<>&) @ 0x000000001f2e27fd in /usr/bin/clickhouse 14. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&&)::'lambda'()::operator()() @ 0x000000001f2e2725 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&&)::'lambda'()&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&&) @ 0x000000001f2e2695 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&&)::'lambda'()&) @ 0x000000001f2e2675 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001f2e2655 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001f2e2620 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 21. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:10.666358 [ 1027 ] {} ZooKeeperClient: Poco::Exception. Code: 1000, e.code() = 107, Net Exception: Socket is not connected, Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/base/poco/Foundation/src/Exception.cpp:145: Poco::RuntimeException::RuntimeException(String const&, int) @ 0x00000000249376e7 in /usr/bin/clickhouse 4. /build/base/poco/Foundation/src/Exception.cpp:164: Poco::IOException::IOException(String const&, int) @ 0x000000002493b827 in /usr/bin/clickhouse 5. /build/base/poco/Net/src/NetException.cpp:26: Poco::Net::NetException::NetException(String const&, int) @ 0x00000000247424e7 in /usr/bin/clickhouse 6. /build/base/poco/Net/src/SocketImpl.cpp:995: Poco::Net::SocketImpl::error(int, String const&) @ 0x0000000024751e2b in /usr/bin/clickhouse 7. /build/base/poco/Net/src/SocketImpl.cpp:914: Poco::Net::SocketImpl::error() @ 0x00000000247507c9 in /usr/bin/clickhouse 8. /build/base/poco/Net/src/SocketImpl.cpp:272: Poco::Net::SocketImpl::shutdown() @ 0x00000000247531f2 in /usr/bin/clickhouse 9. /build/base/poco/Net/src/StreamSocket.cpp:109: Poco::Net::StreamSocket::shutdown() @ 0x0000000024756f1e in /usr/bin/clickhouse 10. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:957: Coordination::ZooKeeper::finalize(bool, bool, String const&) @ 0x000000001f2d5e9a in /usr/bin/clickhouse 11. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:732: Coordination::ZooKeeper::receiveThread() @ 0x000000001f2dd923 in /usr/bin/clickhouse 12. /build/src/Common/ZooKeeper/ZooKeeperImpl.cpp:356: Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1::operator()() const @ 0x000000001f2e3118 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&>()()) std::__invoke[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&) @ 0x000000001f2e30f5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&, std::tuple<>&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001f2e30d9 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&, std::tuple<>&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&, std::tuple<>&) @ 0x000000001f2e303d in /usr/bin/clickhouse 16. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'()::operator()() @ 0x000000001f2e2f65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'()&>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&) @ 0x000000001f2e2ed5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'()&) @ 0x000000001f2e2eb5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001f2e2e95 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1>(Coordination::ZooKeeper::ZooKeeper(std::vector> const&, zkutil::ZooKeeperArgs const&, std::shared_ptr, std::optional>&&)::$_1&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001f2e2e60 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:13.673460 [ 675 ] {ea1da9e4-591b-4743-b5bb-c72017ede31c} executeQuery: Code: 44. DB::Exception: Sorting key contains nullable columns, but merge tree setting `allow_nullable_key` is disabled. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55938) (comment: 02920_alter_column_of_projections.sql) (in query: CREATE TABLE t (`uid` Int16, `name` String, `age` Nullable(Int8), `i` Int16, `j` Int16, PROJECTION p1 (SELECT name, age, uniq(i), count(j) GROUP BY name, age)) ENGINE = MergeTree ORDER BY uid SETTINGS index_granularity = 1, min_bytes_for_wide_part = 994392481, ratio_of_defaults_for_sparse_serialization = 0., merge_max_block_size = 2170, prefer_fetch_merged_part_size_threshold = 6398969427, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 1, index_granularity_bytes = 152362, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 73921, primary_key_compress_block_size = 8543), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:477: DB::checkKeyExpression(DB::ExpressionActions const&, DB::Block const&, String const&, bool) @ 0x000000001de00a1e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:611: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de00250 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:606: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de00163 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 11. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 24. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:17:13.674679 [ 675 ] {ea1da9e4-591b-4743-b5bb-c72017ede31c} TCPHandler: Code: 44. DB::Exception: Sorting key contains nullable columns, but merge tree setting `allow_nullable_key` is disabled. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:477: DB::checkKeyExpression(DB::ExpressionActions const&, DB::Block const&, String const&, bool) @ 0x000000001de00a1e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:611: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de00250 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:606: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de00163 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 11. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 24. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:17:13.922252 [ 1132 ] {54885824-a818-47b8-bcc1-0d37600ba095} executeQuery: Code: 306. DB::Exception: Stack size too large. Stack address: 0x7fcbf6db2000, frame address: 0x7fcbf71b1e50, stack size: 4194736, maximum stack size: 8388608. (TOO_DEEP_RECURSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55990) (comment: 02896_cyclic_aliases_crash.sql) (in query: SELECT val, val + 1 as prev, val + prev as val FROM ( SELECT 1 as val ) ;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, void*&, void const*&, unsigned long&, unsigned long&) @ 0x000000001395db64 in /usr/bin/clickhouse 6. /build/src/Common/checkStackSize.cpp:121: checkStackSize() @ 0x000000001395d6dc in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:75: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d008f7c in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 18. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 19. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 20. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 21. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 22. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 23. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 24. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 25. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 26. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 27. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 28. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 29. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 30. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 31. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 2024.05.01 13:17:13.923158 [ 1132 ] {54885824-a818-47b8-bcc1-0d37600ba095} TCPHandler: Code: 306. DB::Exception: Stack size too large. Stack address: 0x7fcbf6db2000, frame address: 0x7fcbf71b1e50, stack size: 4194736, maximum stack size: 8388608. (TOO_DEEP_RECURSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, void*&, void const*&, unsigned long&, unsigned long&) @ 0x000000001395db64 in /usr/bin/clickhouse 6. /build/src/Common/checkStackSize.cpp:121: checkStackSize() @ 0x000000001395d6dc in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:75: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d008f7c in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 18. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 19. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 20. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 21. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 22. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 23. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 24. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 25. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 26. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 27. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 28. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 29. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 30. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 31. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 2024.05.01 13:17:14.715277 [ 1131 ] {252cd859-fd2a-41c6-81eb-00bb743dff2b} DynamicQueryHandler: Code: 271. DB::Exception: Invalid zero byte count(s): 5 and 1. (CANNOT_DECOMPRESS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, unsigned int&) @ 0x000000001a9322ec in /usr/bin/clickhouse 6. /build/src/Compression/CompressionCodecFPC.cpp:419: DB::(anonymous namespace)::FPCOperation::decodePair(std::span, unsigned int&, unsigned int&) @ 0x000000001b80b71c in /usr/bin/clickhouse 7. /build/src/Compression/CompressionCodecFPC.cpp:387: DB::(anonymous namespace)::FPCOperation::decodeChunk(std::span, std::span) @ 0x000000001b80b44b in /usr/bin/clickhouse 8. /build/src/Compression/CompressionCodecFPC.cpp:279: DB::(anonymous namespace)::FPCOperation::decode(std::span, unsigned long) && @ 0x000000001b8091b5 in /usr/bin/clickhouse 9. /build/src/Compression/CompressionCodecFPC.cpp:508: DB::CompressionCodecFPC::doDecompressData(char const*, unsigned int, char*, unsigned int) const @ 0x000000001b808ec2 in /usr/bin/clickhouse 10. /build/src/Compression/ICompressionCodec.cpp:112: DB::ICompressionCodec::decompress(char const*, unsigned int, char*) const @ 0x000000001b81879a in /usr/bin/clickhouse 11. /build/src/Compression/CompressedReadBufferBase.cpp:308: DB::CompressedReadBufferBase::decompress(DB::BufferBase::Buffer&, unsigned long, unsigned long) @ 0x000000001b7c7e87 in /usr/bin/clickhouse 12. /build/src/Compression/CompressedReadBuffer.cpp:26: DB::CompressedReadBuffer::nextImpl() @ 0x000000001b7c629a in /usr/bin/clickhouse 13. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21033c in /usr/bin/clickhouse 14. /build/src/IO/ReadBuffer.cpp:25: DB::(anonymous namespace)::ReadBufferWrapper::nextImpl() @ 0x000000001b39224f in /usr/bin/clickhouse 15. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21033c in /usr/bin/clickhouse 16. /build/src/IO/ReadBuffer.h:105: DB::ConcatReadBuffer::nextImpl() @ 0x000000001bd7f6a6 in /usr/bin/clickhouse 17. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21033c in /usr/bin/clickhouse 18. /build/src/IO/ReadBuffer.h:91: DB::ReadBuffer::nextIfAtEnd() @ 0x0000000013997198 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1265: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a215f in /usr/bin/clickhouse 20. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 21. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 22. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:14.730235 [ 1131 ] {ee41cc91-bf91-455e-ab4a-4a8716dd89fc} DynamicQueryHandler: Code: 271. DB::Exception: Invalid zero byte count(s): 1 and 6. (CANNOT_DECOMPRESS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, unsigned int&) @ 0x000000001a9322ec in /usr/bin/clickhouse 6. /build/src/Compression/CompressionCodecFPC.cpp:419: DB::(anonymous namespace)::FPCOperation::decodePair(std::span, unsigned int&, unsigned int&) @ 0x000000001b80b71c in /usr/bin/clickhouse 7. /build/src/Compression/CompressionCodecFPC.cpp:387: DB::(anonymous namespace)::FPCOperation::decodeChunk(std::span, std::span) @ 0x000000001b80b44b in /usr/bin/clickhouse 8. /build/src/Compression/CompressionCodecFPC.cpp:279: DB::(anonymous namespace)::FPCOperation::decode(std::span, unsigned long) && @ 0x000000001b8091b5 in /usr/bin/clickhouse 9. /build/src/Compression/CompressionCodecFPC.cpp:508: DB::CompressionCodecFPC::doDecompressData(char const*, unsigned int, char*, unsigned int) const @ 0x000000001b808ec2 in /usr/bin/clickhouse 10. /build/src/Compression/ICompressionCodec.cpp:112: DB::ICompressionCodec::decompress(char const*, unsigned int, char*) const @ 0x000000001b81879a in /usr/bin/clickhouse 11. /build/src/Compression/CompressedReadBufferBase.cpp:308: DB::CompressedReadBufferBase::decompress(DB::BufferBase::Buffer&, unsigned long, unsigned long) @ 0x000000001b7c7e87 in /usr/bin/clickhouse 12. /build/src/Compression/CompressedReadBuffer.cpp:26: DB::CompressedReadBuffer::nextImpl() @ 0x000000001b7c629a in /usr/bin/clickhouse 13. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21033c in /usr/bin/clickhouse 14. /build/src/IO/ReadBuffer.cpp:25: DB::(anonymous namespace)::ReadBufferWrapper::nextImpl() @ 0x000000001b39224f in /usr/bin/clickhouse 15. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21033c in /usr/bin/clickhouse 16. /build/src/IO/ReadBuffer.h:105: DB::ConcatReadBuffer::nextImpl() @ 0x000000001bd7f6a6 in /usr/bin/clickhouse 17. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21033c in /usr/bin/clickhouse 18. /build/src/IO/ReadBuffer.h:91: DB::ReadBuffer::nextIfAtEnd() @ 0x0000000013997198 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1265: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a215f in /usr/bin/clickhouse 20. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 21. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 22. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:14.969179 [ 938 ] {} test_c9b7hopx.tableOut (5e5319f7-02aa-45fd-8196-7249adc18b88): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02916%2Ftest_c9b7hopx%2Ftable%2Freplicas%2F1&part=all_0_0_0&client_protocol_version=8&compress=false&remote_fs_metadata=s3. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Could not exchange part all_0_0_0 as it's in preActive state (1000 ms) and it uses zero copy replication. This is expected behaviour and the client will retry fetching the part automatically. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:15.615842 [ 1129 ] {45b70903-9194-4073-8b5c-2667cb518bc5} executeQuery: Code: 36. DB::Exception: Too many groups for analysis of variance (should be no more than 1048576, got 18446744073709551615): While executing AggregatingTransform. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56008) (comment: 02874_analysis_of_variance_overflow.sql) (in query: SELECT analysisOfVariance(1, 18446744073709551615);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long const&, unsigned long&) @ 0x000000000b8f5fac in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/Moments.h:463: DB::AnalysisOfVarianceMoments::add(double, unsigned long) @ 0x0000000017a93b7b in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionAnalysisOfVariance.h:54: DB::AggregateFunctionAnalysisOfVariance::add(char*, DB::IColumn const**, unsigned long, DB::Arena*) const @ 0x0000000017a92245 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/IAggregateFunction.h:541: DB::IAggregateFunctionHelper::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000017a92aca in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:17:15.619352 [ 1129 ] {45b70903-9194-4073-8b5c-2667cb518bc5} TCPHandler: Code: 36. DB::Exception: Too many groups for analysis of variance (should be no more than 1048576, got 18446744073709551615): While executing AggregatingTransform. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long const&, unsigned long&) @ 0x000000000b8f5fac in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/Moments.h:463: DB::AnalysisOfVarianceMoments::add(double, unsigned long) @ 0x0000000017a93b7b in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionAnalysisOfVariance.h:54: DB::AggregateFunctionAnalysisOfVariance::add(char*, DB::IColumn const**, unsigned long, DB::Arena*) const @ 0x0000000017a92245 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/IAggregateFunction.h:541: DB::IAggregateFunctionHelper::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000017a92aca in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:17:16.521517 [ 944 ] {} test_c9b7hopx.tableOut (5e5319f7-02aa-45fd-8196-7249adc18b88): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02916%2Ftest_c9b7hopx%2Ftable%2Freplicas%2F1&part=all_0_0_0&client_protocol_version=8&compress=false&remote_fs_metadata=s3. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Could not exchange part all_0_0_0 as it's in preActive state (1000 ms) and it uses zero copy replication. This is expected behaviour and the client will retry fetching the part automatically. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:17.628803 [ 945 ] {} test_c9b7hopx.tableOut (5e5319f7-02aa-45fd-8196-7249adc18b88): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02916%2Ftest_c9b7hopx%2Ftable%2Freplicas%2F1&part=all_0_0_0&client_protocol_version=8&compress=false&remote_fs_metadata=s3. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Could not exchange part all_0_0_0 as it's in preActive state (1000 ms) and it uses zero copy replication. This is expected behaviour and the client will retry fetching the part automatically. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:17.902612 [ 1133 ] {d85d8680-0bd3-4b0f-bb63-a8e171c260cc} executeQuery: Code: 36. DB::Exception: Filesystem cache path /kek must lie inside default filesystem cache path `/var/lib/clickhouse/filesystem_caches/`: While processing disk(type = cache, max_size = '1Mi', path = '/kek', disk = 'local_disk'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56056) (comment: 02842_filesystem_cache_validate_path.sql) (in query: CREATE TABLE test (`a` Int32) ENGINE = MergeTree ORDER BY tuple() SETTINGS disk = disk(type = cache, max_size = '1Mi', path = '/kek', disk = 'local_disk'), index_granularity = 19722, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 23467, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 268405, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 10737418240, index_granularity_bytes = 28436681, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 52986, primary_key_compress_block_size = 82207), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124eadac in /usr/bin/clickhouse 6. /build/src/Disks/ObjectStorages/Cached/registerDiskCache.cpp:57: DB::registerDiskCache(DB::DiskFactory&, bool)::$_0::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bc1f8db in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval>(), std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000], std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1f077 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call, std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1efdd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1ef7d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::__call_impl (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1ef25 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb82c1e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb80361 in /usr/bin/clickhouse 13. /build/src/Disks/DiskFactory.cpp:37: DB::DiskFactory::create(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb800bd in /usr/bin/clickhouse 14. /build/src/Disks/getOrCreateDiskFromAST.cpp:49: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001e14ec64 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_0&>()(std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000])::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call)::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb5d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb1d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (std::map, std::less, std::allocator>>> const&)>::__call_impl)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eae8 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) const @ 0x000000001be43fde in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (std::map, std::less, std::allocator>>> const&)>::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001bddf6dd in /usr/bin/clickhouse 21. /build/src/Interpreters/Context.cpp:3505: DB::Context::getOrCreateDisk(String const&, std::function (std::map, std::less, std::allocator>>> const&)>) const @ 0x000000001bdcd858 in /usr/bin/clickhouse 22. /build/src/Disks/getOrCreateDiskFromAST.cpp:48: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e14e263 in /usr/bin/clickhouse 23. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e14de1b in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e14dc80 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e14ef2e in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e14d32a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001e14d1e5 in /usr/bin/clickhouse 28. /build/src/Disks/getOrCreateDiskFromAST.cpp:112: DB::getOrCreateDiskFromDiskAST(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e14ca78 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:67: DB::MergeTreeSettings::loadFromQuery(DB::ASTStorage&, std::shared_ptr) @ 0x000000001e0f2e39 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:602: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f2021 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 2024.05.01 13:17:17.903710 [ 1133 ] {d85d8680-0bd3-4b0f-bb63-a8e171c260cc} TCPHandler: Code: 36. DB::Exception: Filesystem cache path /kek must lie inside default filesystem cache path `/var/lib/clickhouse/filesystem_caches/`: While processing disk(type = cache, max_size = '1Mi', path = '/kek', disk = 'local_disk'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124eadac in /usr/bin/clickhouse 6. /build/src/Disks/ObjectStorages/Cached/registerDiskCache.cpp:57: DB::registerDiskCache(DB::DiskFactory&, bool)::$_0::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bc1f8db in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval>(), std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000], std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1f077 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call, std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1efdd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1ef7d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::__call_impl (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1ef25 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb82c1e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb80361 in /usr/bin/clickhouse 13. /build/src/Disks/DiskFactory.cpp:37: DB::DiskFactory::create(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb800bd in /usr/bin/clickhouse 14. /build/src/Disks/getOrCreateDiskFromAST.cpp:49: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001e14ec64 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_0&>()(std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000])::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call)::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb5d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb1d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (std::map, std::less, std::allocator>>> const&)>::__call_impl)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eae8 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) const @ 0x000000001be43fde in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (std::map, std::less, std::allocator>>> const&)>::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001bddf6dd in /usr/bin/clickhouse 21. /build/src/Interpreters/Context.cpp:3505: DB::Context::getOrCreateDisk(String const&, std::function (std::map, std::less, std::allocator>>> const&)>) const @ 0x000000001bdcd858 in /usr/bin/clickhouse 22. /build/src/Disks/getOrCreateDiskFromAST.cpp:48: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e14e263 in /usr/bin/clickhouse 23. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e14de1b in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e14dc80 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e14ef2e in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e14d32a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001e14d1e5 in /usr/bin/clickhouse 28. /build/src/Disks/getOrCreateDiskFromAST.cpp:112: DB::getOrCreateDiskFromDiskAST(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e14ca78 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:67: DB::MergeTreeSettings::loadFromQuery(DB::ASTStorage&, std::shared_ptr) @ 0x000000001e0f2e39 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:602: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f2021 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 2024.05.01 13:17:17.919454 [ 1133 ] {0d2b625c-97c7-4fce-bfa4-623add6686b7} executeQuery: Code: 36. DB::Exception: Filesystem cache path /var/lib/clickhouse/filesystem_caches/../kek must lie inside default filesystem cache path `/var/lib/clickhouse/filesystem_caches/`: While processing disk(type = cache, max_size = '1Mi', path = '/var/lib/clickhouse/filesystem_caches/../kek', disk = 'local_disk'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56056) (comment: 02842_filesystem_cache_validate_path.sql) (in query: CREATE TABLE test (`a` Int32) ENGINE = MergeTree ORDER BY tuple() SETTINGS disk = disk(type = cache, max_size = '1Mi', path = '/var/lib/clickhouse/filesystem_caches/../kek', disk = 'local_disk'), index_granularity = 19722, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 23467, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 268405, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 10737418240, index_granularity_bytes = 28436681, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 52986, primary_key_compress_block_size = 82207), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124eadac in /usr/bin/clickhouse 6. /build/src/Disks/ObjectStorages/Cached/registerDiskCache.cpp:57: DB::registerDiskCache(DB::DiskFactory&, bool)::$_0::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bc1f8db in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval>(), std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000], std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1f077 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call, std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1efdd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1ef7d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::__call_impl (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1ef25 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb82c1e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb80361 in /usr/bin/clickhouse 13. /build/src/Disks/DiskFactory.cpp:37: DB::DiskFactory::create(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb800bd in /usr/bin/clickhouse 14. /build/src/Disks/getOrCreateDiskFromAST.cpp:49: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001e14ec64 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_0&>()(std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000])::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call)::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb5d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb1d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (std::map, std::less, std::allocator>>> const&)>::__call_impl)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eae8 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) const @ 0x000000001be43fde in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (std::map, std::less, std::allocator>>> const&)>::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001bddf6dd in /usr/bin/clickhouse 21. /build/src/Interpreters/Context.cpp:3505: DB::Context::getOrCreateDisk(String const&, std::function (std::map, std::less, std::allocator>>> const&)>) const @ 0x000000001bdcd858 in /usr/bin/clickhouse 22. /build/src/Disks/getOrCreateDiskFromAST.cpp:48: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e14e263 in /usr/bin/clickhouse 23. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e14de1b in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e14dc80 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e14ef2e in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e14d32a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001e14d1e5 in /usr/bin/clickhouse 28. /build/src/Disks/getOrCreateDiskFromAST.cpp:112: DB::getOrCreateDiskFromDiskAST(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e14ca78 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:67: DB::MergeTreeSettings::loadFromQuery(DB::ASTStorage&, std::shared_ptr) @ 0x000000001e0f2e39 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:602: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f2021 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 2024.05.01 13:17:17.920419 [ 1133 ] {0d2b625c-97c7-4fce-bfa4-623add6686b7} TCPHandler: Code: 36. DB::Exception: Filesystem cache path /var/lib/clickhouse/filesystem_caches/../kek must lie inside default filesystem cache path `/var/lib/clickhouse/filesystem_caches/`: While processing disk(type = cache, max_size = '1Mi', path = '/var/lib/clickhouse/filesystem_caches/../kek', disk = 'local_disk'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124eadac in /usr/bin/clickhouse 6. /build/src/Disks/ObjectStorages/Cached/registerDiskCache.cpp:57: DB::registerDiskCache(DB::DiskFactory&, bool)::$_0::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bc1f8db in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval>(), std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000], std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1f077 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call, std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1efdd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1ef7d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::__call_impl (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1ef25 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb82c1e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb80361 in /usr/bin/clickhouse 13. /build/src/Disks/DiskFactory.cpp:37: DB::DiskFactory::create(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb800bd in /usr/bin/clickhouse 14. /build/src/Disks/getOrCreateDiskFromAST.cpp:49: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001e14ec64 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_0&>()(std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000])::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call)::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb5d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb1d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (std::map, std::less, std::allocator>>> const&)>::__call_impl)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eae8 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) const @ 0x000000001be43fde in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (std::map, std::less, std::allocator>>> const&)>::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001bddf6dd in /usr/bin/clickhouse 21. /build/src/Interpreters/Context.cpp:3505: DB::Context::getOrCreateDisk(String const&, std::function (std::map, std::less, std::allocator>>> const&)>) const @ 0x000000001bdcd858 in /usr/bin/clickhouse 22. /build/src/Disks/getOrCreateDiskFromAST.cpp:48: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e14e263 in /usr/bin/clickhouse 23. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e14de1b in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e14dc80 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e14ef2e in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e14d32a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001e14d1e5 in /usr/bin/clickhouse 28. /build/src/Disks/getOrCreateDiskFromAST.cpp:112: DB::getOrCreateDiskFromDiskAST(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e14ca78 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:67: DB::MergeTreeSettings::loadFromQuery(DB::ASTStorage&, std::shared_ptr) @ 0x000000001e0f2e39 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:602: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f2021 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 2024.05.01 13:17:17.935916 [ 1133 ] {137e368e-a3be-403e-99bc-a2b800334c6a} executeQuery: Code: 36. DB::Exception: Filesystem cache path /var/lib/clickhouse/filesystem_caches/../kek must lie inside default filesystem cache path `/var/lib/clickhouse/filesystem_caches/`: While processing disk(type = cache, max_size = '1Mi', path = '../kek', disk = 'local_disk'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56056) (comment: 02842_filesystem_cache_validate_path.sql) (in query: CREATE TABLE test (`a` Int32) ENGINE = MergeTree ORDER BY tuple() SETTINGS disk = disk(type = cache, max_size = '1Mi', path = '../kek', disk = 'local_disk'), index_granularity = 19722, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 23467, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 268405, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 10737418240, index_granularity_bytes = 28436681, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 52986, primary_key_compress_block_size = 82207), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124eadac in /usr/bin/clickhouse 6. /build/src/Disks/ObjectStorages/Cached/registerDiskCache.cpp:57: DB::registerDiskCache(DB::DiskFactory&, bool)::$_0::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bc1f8db in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval>(), std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000], std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1f077 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call, std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1efdd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1ef7d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::__call_impl (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1ef25 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb82c1e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb80361 in /usr/bin/clickhouse 13. /build/src/Disks/DiskFactory.cpp:37: DB::DiskFactory::create(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb800bd in /usr/bin/clickhouse 14. /build/src/Disks/getOrCreateDiskFromAST.cpp:49: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001e14ec64 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_0&>()(std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000])::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call)::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb5d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb1d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (std::map, std::less, std::allocator>>> const&)>::__call_impl)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eae8 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) const @ 0x000000001be43fde in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (std::map, std::less, std::allocator>>> const&)>::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001bddf6dd in /usr/bin/clickhouse 21. /build/src/Interpreters/Context.cpp:3505: DB::Context::getOrCreateDisk(String const&, std::function (std::map, std::less, std::allocator>>> const&)>) const @ 0x000000001bdcd858 in /usr/bin/clickhouse 22. /build/src/Disks/getOrCreateDiskFromAST.cpp:48: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e14e263 in /usr/bin/clickhouse 23. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e14de1b in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e14dc80 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e14ef2e in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e14d32a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001e14d1e5 in /usr/bin/clickhouse 28. /build/src/Disks/getOrCreateDiskFromAST.cpp:112: DB::getOrCreateDiskFromDiskAST(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e14ca78 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:67: DB::MergeTreeSettings::loadFromQuery(DB::ASTStorage&, std::shared_ptr) @ 0x000000001e0f2e39 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:602: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f2021 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 2024.05.01 13:17:17.937120 [ 1133 ] {137e368e-a3be-403e-99bc-a2b800334c6a} TCPHandler: Code: 36. DB::Exception: Filesystem cache path /var/lib/clickhouse/filesystem_caches/../kek must lie inside default filesystem cache path `/var/lib/clickhouse/filesystem_caches/`: While processing disk(type = cache, max_size = '1Mi', path = '../kek', disk = 'local_disk'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124eadac in /usr/bin/clickhouse 6. /build/src/Disks/ObjectStorages/Cached/registerDiskCache.cpp:57: DB::registerDiskCache(DB::DiskFactory&, bool)::$_0::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bc1f8db in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval>(), std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000], std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1f077 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call, std::map, std::less, std::allocator>>> const&>(DB::registerDiskCache(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1efdd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1ef7d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::__call_impl (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bc1ef25 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb82c1e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb80361 in /usr/bin/clickhouse 13. /build/src/Disks/DiskFactory.cpp:37: DB::DiskFactory::create(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb800bd in /usr/bin/clickhouse 14. /build/src/Disks/getOrCreateDiskFromAST.cpp:49: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001e14ec64 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_0&>()(std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000])::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call)::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb5d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb1d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (std::map, std::less, std::allocator>>> const&)>::__call_impl)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eae8 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) const @ 0x000000001be43fde in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (std::map, std::less, std::allocator>>> const&)>::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001bddf6dd in /usr/bin/clickhouse 21. /build/src/Interpreters/Context.cpp:3505: DB::Context::getOrCreateDisk(String const&, std::function (std::map, std::less, std::allocator>>> const&)>) const @ 0x000000001bdcd858 in /usr/bin/clickhouse 22. /build/src/Disks/getOrCreateDiskFromAST.cpp:48: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e14e263 in /usr/bin/clickhouse 23. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e14de1b in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e14dc80 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e14ef2e in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e14d32a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001e14d1e5 in /usr/bin/clickhouse 28. /build/src/Disks/getOrCreateDiskFromAST.cpp:112: DB::getOrCreateDiskFromDiskAST(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e14ca78 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:67: DB::MergeTreeSettings::loadFromQuery(DB::ASTStorage&, std::shared_ptr) @ 0x000000001e0f2e39 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:602: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f2021 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 2024.05.01 13:17:19.938437 [ 942 ] {} test_c9b7hopx.tableOut (5e5319f7-02aa-45fd-8196-7249adc18b88): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02916%2Ftest_c9b7hopx%2Ftable%2Freplicas%2F1&part=all_1_1_0&client_protocol_version=8&compress=false&remote_fs_metadata=s3. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Could not exchange part all_1_1_0 as it's in preActive state (1000 ms) and it uses zero copy replication. This is expected behaviour and the client will retry fetching the part automatically. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:20.599585 [ 1130 ] {8b251615-1a0e-4ddc-8232-21f4d2a6ece7} executeQuery: Code: 62. DB::Exception: Function isNotDistinctFrom takes two arguments, got 'isNotDistinctFrom()' instead: While processing isNotDistinctFrom(). (SYNTAX_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56022) (comment: 02861_join_on_nullsafe_compare.gen.sql) (in query: -- check illegal queries SELECT * FROM t1 JOIN t2 ON isNotDistinctFrom();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:102: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d007d74 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:17:20.600845 [ 1130 ] {8b251615-1a0e-4ddc-8232-21f4d2a6ece7} TCPHandler: Code: 62. DB::Exception: Function isNotDistinctFrom takes two arguments, got 'isNotDistinctFrom()' instead: While processing isNotDistinctFrom(). (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:102: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d007d74 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:17:20.612229 [ 1130 ] {d35bd84a-472e-4553-93ea-2b1331f7c892} executeQuery: Code: 62. DB::Exception: Function isNotDistinctFrom takes two arguments, got 'isNotDistinctFrom(a)' instead: While processing isNotDistinctFrom(a). (SYNTAX_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56022) (comment: 02861_join_on_nullsafe_compare.gen.sql) (in query: SELECT * FROM t1 JOIN t2 ON isNotDistinctFrom(t1.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:102: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d007d74 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:17:20.613085 [ 1130 ] {d35bd84a-472e-4553-93ea-2b1331f7c892} TCPHandler: Code: 62. DB::Exception: Function isNotDistinctFrom takes two arguments, got 'isNotDistinctFrom(a)' instead: While processing isNotDistinctFrom(a). (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:102: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d007d74 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:17:20.625016 [ 1130 ] {2478663c-a96c-48b1-833a-d31413d009a6} executeQuery: Code: 62. DB::Exception: Function isNotDistinctFrom takes two arguments, got 'isNotDistinctFrom(a, t2.a, t2.b)' instead: While processing isNotDistinctFrom(a, t2.a, t2.b). (SYNTAX_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56022) (comment: 02861_join_on_nullsafe_compare.gen.sql) (in query: SELECT * FROM t1 JOIN t2 ON isNotDistinctFrom(t1.a, t2.a, t2.b);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:102: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d007d74 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:17:20.625807 [ 1130 ] {2478663c-a96c-48b1-833a-d31413d009a6} TCPHandler: Code: 62. DB::Exception: Function isNotDistinctFrom takes two arguments, got 'isNotDistinctFrom(a, t2.a, t2.b)' instead: While processing isNotDistinctFrom(a, t2.a, t2.b). (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:102: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d007d74 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:17:20.771307 [ 1130 ] {d3e08963-b9c6-4155-a02e-df84098454e6} executeQuery: Code: 42. DB::Exception: Number of arguments for function isNotDistinctFrom doesn't match: passed 1, should be 2: While processing isNotDistinctFrom(a). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56022) (comment: 02861_join_on_nullsafe_compare.gen.sql) (in query: SELECT isNotDistinctFrom(a) from t1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:17:20.772402 [ 1130 ] {d3e08963-b9c6-4155-a02e-df84098454e6} TCPHandler: Code: 42. DB::Exception: Number of arguments for function isNotDistinctFrom doesn't match: passed 1, should be 2: While processing isNotDistinctFrom(a). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:17:20.914996 [ 1130 ] {6e90ae23-7e74-47ad-8457-2fec296be9c6} executeQuery: Code: 48. DB::Exception: Function isNotDistinctFrom can be used only in the JOIN ON section. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56022) (comment: 02861_join_on_nullsafe_compare.gen.sql) (in query: SELECT isNotDistinctFrom(a, b) from t1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/isNotDistinctFrom.h:48: DB::FunctionIsNotDistinctFrom::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f82cfe7 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc7fb68 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc7f568 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001eb604e7 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001edc6286 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cabd031 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cab1882 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa9645 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:17:20.916296 [ 1130 ] {6e90ae23-7e74-47ad-8457-2fec296be9c6} TCPHandler: Code: 48. DB::Exception: Function isNotDistinctFrom can be used only in the JOIN ON section. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/isNotDistinctFrom.h:48: DB::FunctionIsNotDistinctFrom::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f82cfe7 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc7fb68 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc7f568 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001eb604e7 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001edc6286 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cabd031 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cab1882 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa9645 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:17:21.140832 [ 947 ] {} test_c9b7hopx.tableOut (5e5319f7-02aa-45fd-8196-7249adc18b88): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02916%2Ftest_c9b7hopx%2Ftable%2Freplicas%2F1&part=all_1_1_0&client_protocol_version=8&compress=false&remote_fs_metadata=s3. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Could not exchange part all_1_1_0 as it's in preActive state (1000 ms) and it uses zero copy replication. This is expected behaviour and the client will retry fetching the part automatically. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:22.501324 [ 939 ] {} test_c9b7hopx.tableOut (5e5319f7-02aa-45fd-8196-7249adc18b88): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02916%2Ftest_c9b7hopx%2Ftable%2Freplicas%2F1&part=all_1_1_0&client_protocol_version=8&compress=false&remote_fs_metadata=s3. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Could not exchange part all_1_1_0 as it's in preActive state (1000 ms) and it uses zero copy replication. This is expected behaviour and the client will retry fetching the part automatically. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:23.539701 [ 938 ] {} test_c9b7hopx.tableOut (5e5319f7-02aa-45fd-8196-7249adc18b88): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02916%2Ftest_c9b7hopx%2Ftable%2Freplicas%2F1&part=all_1_1_0&client_protocol_version=8&compress=false&remote_fs_metadata=s3. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Could not exchange part all_1_1_0 as it's in preActive state (1000 ms) and it uses zero copy replication. This is expected behaviour and the client will retry fetching the part automatically. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:23.816295 [ 1131 ] {f0480c00-1ad2-4cbb-a310-1e67c255159f} executeQuery: Code: 42. DB::Exception: Function tupleConcat requires at least one argument.: While processing tupleConcat(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54376) (comment: 02833_tuple_concat.sql) (in query: SELECT tupleConcat();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/tupleConcat.cpp:36: DB::FunctionTupleConcat::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001279def8 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:17:23.817299 [ 1131 ] {f0480c00-1ad2-4cbb-a310-1e67c255159f} TCPHandler: Code: 42. DB::Exception: Function tupleConcat requires at least one argument.: While processing tupleConcat(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/tupleConcat.cpp:36: DB::FunctionTupleConcat::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001279def8 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:17:23.939711 [ 1131 ] {0af548a4-0295-4e52-908a-aed528f7ab4b} executeQuery: Code: 43. DB::Exception: Illegal type UInt8 of argument 2 of function tupleConcat: While processing tupleConcat((1, 'y'), 1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54376) (comment: 02833_tuple_concat.sql) (in query: SELECT tupleConcat((1, 'y'), 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x000000000b8f5da8 in /usr/bin/clickhouse 6. /build/src/Functions/tupleConcat.cpp:47: DB::FunctionTupleConcat::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001279e191 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:17:23.940736 [ 1131 ] {0af548a4-0295-4e52-908a-aed528f7ab4b} TCPHandler: Code: 43. DB::Exception: Illegal type UInt8 of argument 2 of function tupleConcat: While processing tupleConcat((1, 'y'), 1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x000000000b8f5da8 in /usr/bin/clickhouse 6. /build/src/Functions/tupleConcat.cpp:47: DB::FunctionTupleConcat::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001279e191 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:17:29.383421 [ 1129 ] {e9085552-b56d-45c4-ba9c-0cc9b2cb079f} executeQuery: Code: 43. DB::Exception: Illegal types Array(UInt8) and Array(UInt8) of arguments of function modulo: While processing [12, 13] % [5, 6]. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37972) (comment: 02812_pointwise_array_operations.sql) (in query: SELECT ([12,13] % [5,6]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1618: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000010adce12 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001081834f in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:17:29.384357 [ 1129 ] {e9085552-b56d-45c4-ba9c-0cc9b2cb079f} TCPHandler: Code: 43. DB::Exception: Illegal types Array(UInt8) and Array(UInt8) of arguments of function modulo: While processing [12, 13] % [5, 6]. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1618: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000010adce12 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001081834f in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:17:29.539275 [ 1129 ] {2c49cfb6-1924-4585-ab56-51b1141fd4b6} executeQuery: Code: 190. DB::Exception: Two arguments for function minus must have equal sizes: While processing [2, 3, 4] - [1, -2, 10, 29]. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37972) (comment: 02812_pointwise_array_operations.sql) (in query: SELECT ([2,3,4]-[1,-2,10,29]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1195: DB::FunctionBinaryArithmetic::executeArrayImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106c6a2c in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2135: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x00000000106c5fde in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106c3336 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106c1f2c in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1180: DB::FunctionBinaryArithmetic::executeArrayImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106c662f in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:2135: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x00000000106c5fde in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106c3336 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106c1f2c in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:17:29.540231 [ 1129 ] {2c49cfb6-1924-4585-ab56-51b1141fd4b6} TCPHandler: Code: 190. DB::Exception: Two arguments for function minus must have equal sizes: While processing [2, 3, 4] - [1, -2, 10, 29]. (SIZES_OF_ARRAYS_DONT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1195: DB::FunctionBinaryArithmetic::executeArrayImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106c6a2c in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2135: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x00000000106c5fde in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106c3336 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106c1f2c in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1180: DB::FunctionBinaryArithmetic::executeArrayImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106c662f in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:2135: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x00000000106c5fde in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106c3336 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000106c1f2c in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:17:29.724585 [ 1129 ] {939337e5-54f7-4951-b88a-3bdf0436593e} executeQuery: Code: 190. DB::Exception: Two arguments for function plus must have equal sizes: while executing 'FUNCTION plus(x : 0, y : 1) -> plus(x, y) Array(UInt64) : 2'. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37972) (comment: 02812_pointwise_array_operations.sql) (in query: SELECT x, y, x+y FROM a;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1195: DB::FunctionBinaryArithmetic::executeArrayImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b8344c in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2135: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b829fe in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b7fcd6 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 17. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 2024.05.01 13:17:29.725647 [ 1129 ] {939337e5-54f7-4951-b88a-3bdf0436593e} TCPHandler: Code: 190. DB::Exception: Two arguments for function plus must have equal sizes: while executing 'FUNCTION plus(x : 0, y : 1) -> plus(x, y) Array(UInt64) : 2'. (SIZES_OF_ARRAYS_DONT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1195: DB::FunctionBinaryArithmetic::executeArrayImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b8344c in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2135: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b829fe in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b7fcd6 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 17. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 2024.05.01 13:17:30.332319 [ 1080 ] {d1c24a52-b91f-44de-937d-3ac28d8e1ceb} executeQuery: Code: 36. DB::Exception: Argument 'ttl' must be a literal, get Identifier_k (value: k). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38004) (comment: 02811_invalid_embedded_rocksdb_create.sql) (in query: CREATE TABLE dict (`k` String, `v` String) ENGINE = EmbeddedRocksDB(k) PRIMARY KEY k;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String&&) @ 0x000000000b5a8ce8 in /usr/bin/clickhouse 6. /build/src/Storages/checkAndGetLiteralArgument.cpp:18: unsigned long DB::checkAndGetLiteralArgument(std::shared_ptr const&, String const&) @ 0x000000001d9e503a in /usr/bin/clickhouse 7. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:485: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001adfa4dd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 14. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:17:30.333275 [ 1080 ] {d1c24a52-b91f-44de-937d-3ac28d8e1ceb} TCPHandler: Code: 36. DB::Exception: Argument 'ttl' must be a literal, get Identifier_k (value: k). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String&&) @ 0x000000000b5a8ce8 in /usr/bin/clickhouse 6. /build/src/Storages/checkAndGetLiteralArgument.cpp:18: unsigned long DB::checkAndGetLiteralArgument(std::shared_ptr const&, String const&) @ 0x000000001d9e503a in /usr/bin/clickhouse 7. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:485: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001adfa4dd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 14. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:17:31.550843 [ 1129 ] {5dc1609d-9666-415c-b2bd-6b187cfa743a} BackupsWorker: Failed to start backup S3('http://localhost:11111/test/backups/test_ukjtzxol/use_same_s3_credentials_for_base_backup_base_inc_2', 'test', '[HIDDEN]'): Code: 499. DB::Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method. (S3_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/IO/S3Common.h:46: DB::S3Exception::S3Exception(String const&, Aws::S3::S3Errors) @ 0x000000001adb586f in /usr/bin/clickhouse 6. /build/src/Backups/BackupIO_S3.cpp:92: DB::(anonymous namespace)::listObjects(DB::S3::Client&, DB::S3::URI const&, String const&) @ 0x000000001b3697d8 in /usr/bin/clickhouse 7. /build/src/Backups/BackupIO_S3.cpp:127: DB::BackupReaderS3::fileExists(String const&) @ 0x000000001b36959f in /usr/bin/clickhouse 8. /build/src/Backups/BackupImpl.cpp:394: DB::BackupImpl::readBackupMetadata() @ 0x000000001b34400e in /usr/bin/clickhouse 9. /build/src/Backups/BackupImpl.cpp:167: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b342612 in /usr/bin/clickhouse 10. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b3422dd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b33fab1 in /usr/bin/clickhouse 12. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b33f2c3 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e65d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e5dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b33e59d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e565 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b29ddde in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cefd in /usr/bin/clickhouse 19. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cba1 in /usr/bin/clickhouse 20. /build/src/Backups/BackupImpl.cpp:181: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b342710 in /usr/bin/clickhouse 21. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b3422dd in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b33fab1 in /usr/bin/clickhouse 23. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b33f2c3 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e65d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e5dd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b33e59d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e565 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b29ddde in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cefd in /usr/bin/clickhouse 30. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cba1 in /usr/bin/clickhouse 31. /build/src/Backups/BackupImpl.cpp:181: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b342710 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:31.552117 [ 1129 ] {5dc1609d-9666-415c-b2bd-6b187cfa743a} executeQuery: Code: 499. DB::Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method. (S3_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38028) (comment: 02843_backup_use_same_s3_credentials_for_base_backup.sh) (in query: BACKUP TABLE data TO S3('http://localhost:11111/test/backups/test_ukjtzxol/use_same_s3_credentials_for_base_backup_base_inc_2', 'test', '[HIDDEN]') SETTINGS base_backup = S3('http://localhost:11111/test/backups/test_ukjtzxol/use_same_s3_credentials_for_base_backup_base_inc_1', 'test', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/IO/S3Common.h:46: DB::S3Exception::S3Exception(String const&, Aws::S3::S3Errors) @ 0x000000001adb586f in /usr/bin/clickhouse 6. /build/src/Backups/BackupIO_S3.cpp:92: DB::(anonymous namespace)::listObjects(DB::S3::Client&, DB::S3::URI const&, String const&) @ 0x000000001b3697d8 in /usr/bin/clickhouse 7. /build/src/Backups/BackupIO_S3.cpp:127: DB::BackupReaderS3::fileExists(String const&) @ 0x000000001b36959f in /usr/bin/clickhouse 8. /build/src/Backups/BackupImpl.cpp:394: DB::BackupImpl::readBackupMetadata() @ 0x000000001b34400e in /usr/bin/clickhouse 9. /build/src/Backups/BackupImpl.cpp:167: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b342612 in /usr/bin/clickhouse 10. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b3422dd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b33fab1 in /usr/bin/clickhouse 12. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b33f2c3 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e65d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e5dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b33e59d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e565 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b29ddde in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cefd in /usr/bin/clickhouse 19. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cba1 in /usr/bin/clickhouse 20. /build/src/Backups/BackupImpl.cpp:181: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b342710 in /usr/bin/clickhouse 21. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b3422dd in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b33fab1 in /usr/bin/clickhouse 23. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b33f2c3 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e65d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e5dd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b33e59d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e565 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b29ddde in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cefd in /usr/bin/clickhouse 30. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cba1 in /usr/bin/clickhouse 31. /build/src/Backups/BackupImpl.cpp:181: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b342710 in /usr/bin/clickhouse 2024.05.01 13:17:31.554003 [ 1129 ] {5dc1609d-9666-415c-b2bd-6b187cfa743a} TCPHandler: Code: 499. DB::Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method. (S3_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/IO/S3Common.h:46: DB::S3Exception::S3Exception(String const&, Aws::S3::S3Errors) @ 0x000000001adb586f in /usr/bin/clickhouse 6. /build/src/Backups/BackupIO_S3.cpp:92: DB::(anonymous namespace)::listObjects(DB::S3::Client&, DB::S3::URI const&, String const&) @ 0x000000001b3697d8 in /usr/bin/clickhouse 7. /build/src/Backups/BackupIO_S3.cpp:127: DB::BackupReaderS3::fileExists(String const&) @ 0x000000001b36959f in /usr/bin/clickhouse 8. /build/src/Backups/BackupImpl.cpp:394: DB::BackupImpl::readBackupMetadata() @ 0x000000001b34400e in /usr/bin/clickhouse 9. /build/src/Backups/BackupImpl.cpp:167: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b342612 in /usr/bin/clickhouse 10. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b3422dd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b33fab1 in /usr/bin/clickhouse 12. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b33f2c3 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e65d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e5dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b33e59d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e565 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b29ddde in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cefd in /usr/bin/clickhouse 19. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cba1 in /usr/bin/clickhouse 20. /build/src/Backups/BackupImpl.cpp:181: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b342710 in /usr/bin/clickhouse 21. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b3422dd in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b33fab1 in /usr/bin/clickhouse 23. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b33f2c3 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e65d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e5dd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b33e59d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e565 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b29ddde in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cefd in /usr/bin/clickhouse 30. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cba1 in /usr/bin/clickhouse 31. /build/src/Backups/BackupImpl.cpp:181: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b342710 in /usr/bin/clickhouse 2024.05.01 13:17:34.821818 [ 1131 ] {abadb578-8105-4ed6-8f28-f6ac1dbee222} executeQuery: Code: 36. DB::Exception: Illegal (null) value column Nullable(UInt64) of argument of function range: While processing range(CAST(NULL, 'Nullable(UInt64)'), CAST('10', 'Nullable(UInt64)'), CAST('2', 'Nullable(UInt64)')). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38098) (comment: 02797_range_nullable.sql) (in query: SELECT range(Null::Nullable(UInt64), 10::Nullable(UInt64), 2::Nullable(UInt64));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:414: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(DB::ColumnWithTypeAndName const&)::operator()(DB::ColumnWithTypeAndName const&) const @ 0x000000001382aa3c in /usr/bin/clickhouse 7. /build/src/Functions/array/range.cpp:442: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013827a92 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:17:34.822816 [ 1131 ] {abadb578-8105-4ed6-8f28-f6ac1dbee222} TCPHandler: Code: 36. DB::Exception: Illegal (null) value column Nullable(UInt64) of argument of function range: While processing range(CAST(NULL, 'Nullable(UInt64)'), CAST('10', 'Nullable(UInt64)'), CAST('2', 'Nullable(UInt64)')). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:414: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(DB::ColumnWithTypeAndName const&)::operator()(DB::ColumnWithTypeAndName const&) const @ 0x000000001382aa3c in /usr/bin/clickhouse 7. /build/src/Functions/array/range.cpp:442: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013827a92 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:17:34.834279 [ 1131 ] {687ceefd-f56c-434e-9533-db6ca45be4ef} executeQuery: Code: 36. DB::Exception: Illegal (null) value column Nullable(UInt64) of argument of function range: While processing range(CAST('0', 'Nullable(UInt64)'), CAST(NULL, 'Nullable(UInt64)'), CAST('2', 'Nullable(UInt64)')). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38098) (comment: 02797_range_nullable.sql) (in query: SELECT range(0::Nullable(UInt64), Null::Nullable(UInt64), 2::Nullable(UInt64));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:414: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(DB::ColumnWithTypeAndName const&)::operator()(DB::ColumnWithTypeAndName const&) const @ 0x000000001382aa3c in /usr/bin/clickhouse 7. /build/src/Functions/array/range.cpp:442: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013827a92 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:17:34.835097 [ 1131 ] {687ceefd-f56c-434e-9533-db6ca45be4ef} TCPHandler: Code: 36. DB::Exception: Illegal (null) value column Nullable(UInt64) of argument of function range: While processing range(CAST('0', 'Nullable(UInt64)'), CAST(NULL, 'Nullable(UInt64)'), CAST('2', 'Nullable(UInt64)')). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:414: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(DB::ColumnWithTypeAndName const&)::operator()(DB::ColumnWithTypeAndName const&) const @ 0x000000001382aa3c in /usr/bin/clickhouse 7. /build/src/Functions/array/range.cpp:442: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013827a92 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:17:34.845647 [ 1131 ] {da893628-6cc9-4aec-b232-8500ed5d47cc} executeQuery: Code: 36. DB::Exception: Illegal (null) value column Nullable(UInt64) of argument of function range: While processing range(CAST('0', 'Nullable(UInt64)'), CAST('10', 'Nullable(UInt64)'), CAST(NULL, 'Nullable(UInt64)')). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38098) (comment: 02797_range_nullable.sql) (in query: SELECT range(0::Nullable(UInt64), 10::Nullable(UInt64), Null::Nullable(UInt64));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:414: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(DB::ColumnWithTypeAndName const&)::operator()(DB::ColumnWithTypeAndName const&) const @ 0x000000001382aa3c in /usr/bin/clickhouse 7. /build/src/Functions/array/range.cpp:442: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013827a92 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:17:34.846476 [ 1131 ] {da893628-6cc9-4aec-b232-8500ed5d47cc} TCPHandler: Code: 36. DB::Exception: Illegal (null) value column Nullable(UInt64) of argument of function range: While processing range(CAST('0', 'Nullable(UInt64)'), CAST('10', 'Nullable(UInt64)'), CAST(NULL, 'Nullable(UInt64)')). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:414: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(DB::ColumnWithTypeAndName const&)::operator()(DB::ColumnWithTypeAndName const&) const @ 0x000000001382aa3c in /usr/bin/clickhouse 7. /build/src/Functions/array/range.cpp:442: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013827a92 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:17:34.981802 [ 1131 ] {bcc67673-55f4-438c-bb33-07dda88930bf} executeQuery: Code: 36. DB::Exception: Illegal (null) value column Const(Nullable(UInt8)) of argument of function range. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38098) (comment: 02797_range_nullable.sql) (in query: SELECT range(Null::Nullable(UInt8), materialize(1));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:414: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(DB::ColumnWithTypeAndName const&)::operator()(DB::ColumnWithTypeAndName const&) const @ 0x000000001382aa3c in /usr/bin/clickhouse 7. /build/src/Functions/array/range.cpp:442: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013827a92 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc7fb68 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc7f568 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001eb604e7 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001edc6286 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cabd031 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cab1882 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa9645 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 2024.05.01 13:17:34.982635 [ 1131 ] {bcc67673-55f4-438c-bb33-07dda88930bf} TCPHandler: Code: 36. DB::Exception: Illegal (null) value column Const(Nullable(UInt8)) of argument of function range. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:414: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(DB::ColumnWithTypeAndName const&)::operator()(DB::ColumnWithTypeAndName const&) const @ 0x000000001382aa3c in /usr/bin/clickhouse 7. /build/src/Functions/array/range.cpp:442: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013827a92 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc7fb68 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc7f568 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001eb604e7 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001edc6286 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cabd031 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cab1882 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa9645 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 2024.05.01 13:17:36.006087 [ 1080 ] {2976b642-14e3-4982-a970-fe1c9e617d39} executeQuery: Code: 499. DB::Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method. (S3_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38120) (comment: 02843_backup_use_same_s3_credentials_for_base_backup.sh) (in query: RESTORE TABLE data FROM S3('http://localhost:11111/test/backups/test_ukjtzxol/use_same_s3_credentials_for_base_backup_base_inc_1', 'test', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/IO/S3Common.h:46: DB::S3Exception::S3Exception(String const&, Aws::S3::S3Errors) @ 0x000000001adb586f in /usr/bin/clickhouse 6. /build/src/Backups/BackupIO_S3.cpp:92: DB::(anonymous namespace)::listObjects(DB::S3::Client&, DB::S3::URI const&, String const&) @ 0x000000001b3697d8 in /usr/bin/clickhouse 7. /build/src/Backups/BackupIO_S3.cpp:127: DB::BackupReaderS3::fileExists(String const&) @ 0x000000001b36959f in /usr/bin/clickhouse 8. /build/src/Backups/BackupImpl.cpp:394: DB::BackupImpl::readBackupMetadata() @ 0x000000001b34400e in /usr/bin/clickhouse 9. /build/src/Backups/BackupImpl.cpp:167: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b342612 in /usr/bin/clickhouse 10. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b3422dd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b33fab1 in /usr/bin/clickhouse 12. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b33f2c3 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e65d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e5dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b33e59d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e565 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b29ddde in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cefd in /usr/bin/clickhouse 19. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cba1 in /usr/bin/clickhouse 20. /build/src/Backups/BackupImpl.cpp:181: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b342710 in /usr/bin/clickhouse 21. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b3422dd in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b33fab1 in /usr/bin/clickhouse 23. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b33f2c3 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e65d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e5dd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b33e59d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e565 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b29ddde in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cefd in /usr/bin/clickhouse 30. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cba1 in /usr/bin/clickhouse 31. /build/src/Backups/BackupsWorker.cpp:700: DB::BackupsWorker::doRestore(std::shared_ptr const&, String const&, String const&, DB::BackupInfo const&, DB::RestoreSettings, std::shared_ptr, std::shared_ptr, bool) @ 0x000000001b28a2d8 in /usr/bin/clickhouse 2024.05.01 13:17:36.008057 [ 1080 ] {2976b642-14e3-4982-a970-fe1c9e617d39} TCPHandler: Code: 499. DB::Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method. (S3_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/IO/S3Common.h:46: DB::S3Exception::S3Exception(String const&, Aws::S3::S3Errors) @ 0x000000001adb586f in /usr/bin/clickhouse 6. /build/src/Backups/BackupIO_S3.cpp:92: DB::(anonymous namespace)::listObjects(DB::S3::Client&, DB::S3::URI const&, String const&) @ 0x000000001b3697d8 in /usr/bin/clickhouse 7. /build/src/Backups/BackupIO_S3.cpp:127: DB::BackupReaderS3::fileExists(String const&) @ 0x000000001b36959f in /usr/bin/clickhouse 8. /build/src/Backups/BackupImpl.cpp:394: DB::BackupImpl::readBackupMetadata() @ 0x000000001b34400e in /usr/bin/clickhouse 9. /build/src/Backups/BackupImpl.cpp:167: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b342612 in /usr/bin/clickhouse 10. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b3422dd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b33fab1 in /usr/bin/clickhouse 12. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b33f2c3 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e65d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e5dd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b33e59d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e565 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b29ddde in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cefd in /usr/bin/clickhouse 19. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cba1 in /usr/bin/clickhouse 20. /build/src/Backups/BackupImpl.cpp:181: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b342710 in /usr/bin/clickhouse 21. /build/src/Backups/BackupImpl.cpp:97: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool) @ 0x000000001b3422dd in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&) @ 0x000000001b33fab1 in /usr/bin/clickhouse 23. /build/src/Backups/registerBackupEngineS3.cpp:117: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b33f2c3 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e65d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e5dd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b33e59d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e565 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b29ddde in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cefd in /usr/bin/clickhouse 30. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cba1 in /usr/bin/clickhouse 31. /build/src/Backups/BackupsWorker.cpp:700: DB::BackupsWorker::doRestore(std::shared_ptr const&, String const&, String const&, DB::BackupInfo const&, DB::RestoreSettings, std::shared_ptr, std::shared_ptr, bool) @ 0x000000001b28a2d8 in /usr/bin/clickhouse 2024.05.01 13:17:42.471606 [ 1132 ] {09824dfb-a4c3-4bb2-9f19-f21c6537957c} executeQuery: Code: 43. DB::Exception: Argument for function currentSchemas must be bool: While processing currentSchemas(1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35868) (comment: 02788_current_schemas_function.sql) (in query: SELECT current_schemas(1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/currentSchemas.cpp:50: DB::(anonymous namespace)::FunctionCurrentSchemas::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000d9544cd in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:17:42.472464 [ 1132 ] {09824dfb-a4c3-4bb2-9f19-f21c6537957c} TCPHandler: Code: 43. DB::Exception: Argument for function currentSchemas must be bool: While processing currentSchemas(1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/currentSchemas.cpp:50: DB::(anonymous namespace)::FunctionCurrentSchemas::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000d9544cd in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:17:42.479599 [ 1132 ] {02a3da26-c00e-4df5-a0a9-b4752363aec4} executeQuery: Code: 42. DB::Exception: Number of arguments for function currentSchemas doesn't match: passed 0, should be 1: While processing currentSchemas(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35868) (comment: 02788_current_schemas_function.sql) (in query: SELECT current_schemas();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:17:42.480431 [ 1132 ] {02a3da26-c00e-4df5-a0a9-b4752363aec4} TCPHandler: Code: 42. DB::Exception: Number of arguments for function currentSchemas doesn't match: passed 0, should be 1: While processing currentSchemas(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:17:44.759418 [ 1131 ] {42afbfe7-2cf0-4f45-ab43-9bf8c9c34515} BackupsWorker: Failed to start backup S3('http://localhost:11111/test/backups/test_ukjtzxol/use_same_s3_credentials_for_base_backup_base_inc_5_bad', 'test', '[HIDDEN]', 'foo'): Code: 42. DB::Exception: Backup S3 requires 1 or 3 arguments: url, [access_key_id, secret_access_key]. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [77]) @ 0x000000000bc3733e in /usr/bin/clickhouse 6. /build/src/Backups/registerBackupEngineS3.cpp:79: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b33eef9 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e65d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e5dd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b33e59d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e565 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b29ddde in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cefd in /usr/bin/clickhouse 13. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cba1 in /usr/bin/clickhouse 14. /build/src/Backups/BackupsWorker.cpp:392: DB::BackupsWorker::doBackup(std::shared_ptr const&, String const&, String const&, DB::BackupInfo const&, DB::BackupSettings, std::shared_ptr, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001b28651c in /usr/bin/clickhouse 15. /build/src/Backups/BackupsWorker.cpp:304: DB::BackupsWorker::startMakingBackup(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001b284784 in /usr/bin/clickhouse 16. /build/src/Backups/BackupsWorker.cpp:235: DB::BackupsWorker::start(std::shared_ptr const&, std::shared_ptr) @ 0x000000001b283ee5 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterBackupQuery.cpp:39: DB::InterpreterBackupQuery::execute() @ 0x000000001ca718e1 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:44.760447 [ 1131 ] {42afbfe7-2cf0-4f45-ab43-9bf8c9c34515} executeQuery: Code: 42. DB::Exception: Backup S3 requires 1 or 3 arguments: url, [access_key_id, secret_access_key]. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35926) (comment: 02843_backup_use_same_s3_credentials_for_base_backup.sh) (in query: BACKUP TABLE data TO S3('http://localhost:11111/test/backups/test_ukjtzxol/use_same_s3_credentials_for_base_backup_base_inc_5_bad', 'test', '[HIDDEN]', 'foo') SETTINGS base_backup = S3('http://localhost:11111/test/backups/test_ukjtzxol/use_same_s3_credentials_for_base_backup_base_inc_1', 'test', '[HIDDEN]'), use_same_s3_credentials_for_base_backup = 1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [77]) @ 0x000000000bc3733e in /usr/bin/clickhouse 6. /build/src/Backups/registerBackupEngineS3.cpp:79: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b33eef9 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e65d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e5dd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b33e59d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e565 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b29ddde in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cefd in /usr/bin/clickhouse 13. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cba1 in /usr/bin/clickhouse 14. /build/src/Backups/BackupsWorker.cpp:392: DB::BackupsWorker::doBackup(std::shared_ptr const&, String const&, String const&, DB::BackupInfo const&, DB::BackupSettings, std::shared_ptr, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001b28651c in /usr/bin/clickhouse 15. /build/src/Backups/BackupsWorker.cpp:304: DB::BackupsWorker::startMakingBackup(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001b284784 in /usr/bin/clickhouse 16. /build/src/Backups/BackupsWorker.cpp:235: DB::BackupsWorker::start(std::shared_ptr const&, std::shared_ptr) @ 0x000000001b283ee5 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterBackupQuery.cpp:39: DB::InterpreterBackupQuery::execute() @ 0x000000001ca718e1 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:17:44.762083 [ 1131 ] {42afbfe7-2cf0-4f45-ab43-9bf8c9c34515} TCPHandler: Code: 42. DB::Exception: Backup S3 requires 1 or 3 arguments: url, [access_key_id, secret_access_key]. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [77]) @ 0x000000000bc3733e in /usr/bin/clickhouse 6. /build/src/Backups/registerBackupEngineS3.cpp:79: DB::registerBackupEngineS3(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b33eef9 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e65d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEngineS3(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e5dd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b33e59d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b33e565 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b29ddde in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cefd in /usr/bin/clickhouse 13. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cba1 in /usr/bin/clickhouse 14. /build/src/Backups/BackupsWorker.cpp:392: DB::BackupsWorker::doBackup(std::shared_ptr const&, String const&, String const&, DB::BackupInfo const&, DB::BackupSettings, std::shared_ptr, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001b28651c in /usr/bin/clickhouse 15. /build/src/Backups/BackupsWorker.cpp:304: DB::BackupsWorker::startMakingBackup(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001b284784 in /usr/bin/clickhouse 16. /build/src/Backups/BackupsWorker.cpp:235: DB::BackupsWorker::start(std::shared_ptr const&, std::shared_ptr) @ 0x000000001b283ee5 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterBackupQuery.cpp:39: DB::InterpreterBackupQuery::execute() @ 0x000000001ca718e1 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:17:46.686431 [ 1393 ] {f9efa30a-c7d2-45fd-a4a8-03260445d671} void DB::ParallelParsingInputFormat::onBackgroundException(size_t): Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "" is not like UInt32 : (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/TabSeparatedRowInputFormat.cpp:88: DB::TabSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001eacd021 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:172: DB::ParallelParsingInputFormat::InternalParser::getChunk() @ 0x000000001e8be8bf in /usr/bin/clickhouse 14. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.cpp:107: DB::ParallelParsingInputFormat::parserThreadFunction(std::shared_ptr, unsigned long) @ 0x000000001e8bcf1b in /usr/bin/clickhouse 15. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:285: DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()::operator()() const @ 0x000000001e8bfd61 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfd15 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfcf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e8bfcd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e8bfca0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:46.688769 [ 1129 ] {f9efa30a-c7d2-45fd-a4a8-03260445d671} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "" is not like UInt32 : While executing ParallelParsingBlockInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35952) (comment: 02771_tsv_csv_custom_skip_trailing_empty_lines.sql) (in query: select * from format(TSV, 'x UInt32, y UInt32', '1\t2\n\n') settings input_format_tsv_skip_trailing_empty_lines=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/TabSeparatedRowInputFormat.cpp:88: DB::TabSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001eacd021 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:172: DB::ParallelParsingInputFormat::InternalParser::getChunk() @ 0x000000001e8be8bf in /usr/bin/clickhouse 14. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.cpp:107: DB::ParallelParsingInputFormat::parserThreadFunction(std::shared_ptr, unsigned long) @ 0x000000001e8bcf1b in /usr/bin/clickhouse 15. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:285: DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()::operator()() const @ 0x000000001e8bfd61 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfd15 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfcf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e8bfcd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e8bfca0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 2024.05.01 13:17:46.689772 [ 1129 ] {f9efa30a-c7d2-45fd-a4a8-03260445d671} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "" is not like UInt32 : While executing ParallelParsingBlockInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/TabSeparatedRowInputFormat.cpp:88: DB::TabSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001eacd021 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:172: DB::ParallelParsingInputFormat::InternalParser::getChunk() @ 0x000000001e8be8bf in /usr/bin/clickhouse 14. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.cpp:107: DB::ParallelParsingInputFormat::parserThreadFunction(std::shared_ptr, unsigned long) @ 0x000000001e8bcf1b in /usr/bin/clickhouse 15. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:285: DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()::operator()() const @ 0x000000001e8bfd61 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfd15 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfcf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e8bfcd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e8bfca0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 2024.05.01 13:17:46.881034 [ 1673 ] {d45c14ff-d1bc-4dc7-a07f-b45d181e76ac} void DB::ParallelParsingInputFormat::onBackgroundException(size_t): Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n1\t2\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "12" is not like UInt32 : (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/TabSeparatedRowInputFormat.cpp:88: DB::TabSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001eacd021 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:172: DB::ParallelParsingInputFormat::InternalParser::getChunk() @ 0x000000001e8be8bf in /usr/bin/clickhouse 14. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.cpp:107: DB::ParallelParsingInputFormat::parserThreadFunction(std::shared_ptr, unsigned long) @ 0x000000001e8bcf1b in /usr/bin/clickhouse 15. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:285: DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()::operator()() const @ 0x000000001e8bfd61 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfd15 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfcf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e8bfcd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e8bfca0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:46.883509 [ 1129 ] {d45c14ff-d1bc-4dc7-a07f-b45d181e76ac} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n1\t2\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "12" is not like UInt32 : While executing ParallelParsingBlockInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35952) (comment: 02771_tsv_csv_custom_skip_trailing_empty_lines.sql) (in query: select * from format(TSV, 'x UInt32, y UInt32', '1\t2\n\n1\t2\n') settings input_format_tsv_skip_trailing_empty_lines=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/TabSeparatedRowInputFormat.cpp:88: DB::TabSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001eacd021 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:172: DB::ParallelParsingInputFormat::InternalParser::getChunk() @ 0x000000001e8be8bf in /usr/bin/clickhouse 14. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.cpp:107: DB::ParallelParsingInputFormat::parserThreadFunction(std::shared_ptr, unsigned long) @ 0x000000001e8bcf1b in /usr/bin/clickhouse 15. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:285: DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()::operator()() const @ 0x000000001e8bfd61 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfd15 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfcf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e8bfcd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e8bfca0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 2024.05.01 13:17:46.884709 [ 1129 ] {d45c14ff-d1bc-4dc7-a07f-b45d181e76ac} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n1\t2\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "12" is not like UInt32 : While executing ParallelParsingBlockInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/TabSeparatedRowInputFormat.cpp:88: DB::TabSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001eacd021 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:172: DB::ParallelParsingInputFormat::InternalParser::getChunk() @ 0x000000001e8be8bf in /usr/bin/clickhouse 14. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.cpp:107: DB::ParallelParsingInputFormat::parserThreadFunction(std::shared_ptr, unsigned long) @ 0x000000001e8bcf1b in /usr/bin/clickhouse 15. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:285: DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()::operator()() const @ 0x000000001e8bfd61 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfd15 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfcf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e8bfcd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e8bfca0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 2024.05.01 13:17:47.016732 [ 1410 ] {845c639d-67c3-4823-8c3d-48c28e1b6117} void DB::ParallelParsingInputFormat::onBackgroundException(size_t): Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "" is not like UInt32 : (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e7b4e68 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:172: DB::ParallelParsingInputFormat::InternalParser::getChunk() @ 0x000000001e8be8bf in /usr/bin/clickhouse 14. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.cpp:107: DB::ParallelParsingInputFormat::parserThreadFunction(std::shared_ptr, unsigned long) @ 0x000000001e8bcf1b in /usr/bin/clickhouse 15. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:285: DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()::operator()() const @ 0x000000001e8bfd61 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfd15 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfcf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e8bfcd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e8bfca0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:47.019553 [ 1129 ] {845c639d-67c3-4823-8c3d-48c28e1b6117} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "" is not like UInt32 : While executing ParallelParsingBlockInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35952) (comment: 02771_tsv_csv_custom_skip_trailing_empty_lines.sql) (in query: select * from format(CSV, 'x UInt32, y UInt32', '1,2\n\n') settings input_format_csv_skip_trailing_empty_lines=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e7b4e68 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:172: DB::ParallelParsingInputFormat::InternalParser::getChunk() @ 0x000000001e8be8bf in /usr/bin/clickhouse 14. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.cpp:107: DB::ParallelParsingInputFormat::parserThreadFunction(std::shared_ptr, unsigned long) @ 0x000000001e8bcf1b in /usr/bin/clickhouse 15. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:285: DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()::operator()() const @ 0x000000001e8bfd61 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfd15 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfcf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e8bfcd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e8bfca0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 2024.05.01 13:17:47.020811 [ 1129 ] {845c639d-67c3-4823-8c3d-48c28e1b6117} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "" is not like UInt32 : While executing ParallelParsingBlockInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e7b4e68 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:172: DB::ParallelParsingInputFormat::InternalParser::getChunk() @ 0x000000001e8be8bf in /usr/bin/clickhouse 14. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.cpp:107: DB::ParallelParsingInputFormat::parserThreadFunction(std::shared_ptr, unsigned long) @ 0x000000001e8bcf1b in /usr/bin/clickhouse 15. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:285: DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()::operator()() const @ 0x000000001e8bfd61 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfd15 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfcf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e8bfcd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e8bfca0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 2024.05.01 13:17:47.055710 [ 1475 ] {6d70769d-1b22-4b1f-8330-df26b23cf8cc} void DB::ParallelParsingInputFormat::onBackgroundException(size_t): Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n1,2\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "1,2" is not like UInt32 : (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e7b4e68 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:172: DB::ParallelParsingInputFormat::InternalParser::getChunk() @ 0x000000001e8be8bf in /usr/bin/clickhouse 14. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.cpp:107: DB::ParallelParsingInputFormat::parserThreadFunction(std::shared_ptr, unsigned long) @ 0x000000001e8bcf1b in /usr/bin/clickhouse 15. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:285: DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()::operator()() const @ 0x000000001e8bfd61 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfd15 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfcf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e8bfcd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e8bfca0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:47.058200 [ 1129 ] {6d70769d-1b22-4b1f-8330-df26b23cf8cc} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n1,2\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "1,2" is not like UInt32 : While executing ParallelParsingBlockInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35952) (comment: 02771_tsv_csv_custom_skip_trailing_empty_lines.sql) (in query: select * from format(CSV, 'x UInt32, y UInt32', '1,2\n\n1,2\n') settings input_format_csv_skip_trailing_empty_lines=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e7b4e68 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:172: DB::ParallelParsingInputFormat::InternalParser::getChunk() @ 0x000000001e8be8bf in /usr/bin/clickhouse 14. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.cpp:107: DB::ParallelParsingInputFormat::parserThreadFunction(std::shared_ptr, unsigned long) @ 0x000000001e8bcf1b in /usr/bin/clickhouse 15. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:285: DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()::operator()() const @ 0x000000001e8bfd61 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfd15 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfcf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e8bfcd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e8bfca0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 2024.05.01 13:17:47.059421 [ 1129 ] {6d70769d-1b22-4b1f-8330-df26b23cf8cc} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n1,2\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "1,2" is not like UInt32 : While executing ParallelParsingBlockInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e7b4e68 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:172: DB::ParallelParsingInputFormat::InternalParser::getChunk() @ 0x000000001e8be8bf in /usr/bin/clickhouse 14. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.cpp:107: DB::ParallelParsingInputFormat::parserThreadFunction(std::shared_ptr, unsigned long) @ 0x000000001e8bcf1b in /usr/bin/clickhouse 15. /build/src/Processors/Formats/Impl/ParallelParsingInputFormat.h:285: DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()::operator()() const @ 0x000000001e8bfd61 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfd15 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ParallelParsingInputFormat::scheduleParserThreadForUnitWithNumber(unsigned long)::'lambda'()&) @ 0x000000001e8bfcf5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e8bfcd5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e8bfca0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 2024.05.01 13:17:47.201462 [ 1129 ] {8e36918c-0b91-472e-800d-042fa5205a94} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "" is not like UInt32 : While executing CustomSeparatedRowInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35952) (comment: 02771_tsv_csv_custom_skip_trailing_empty_lines.sql) (in query: select * from format(CustomSeparated, 'x UInt32, y UInt32', '1\t2\n\n\n') settings input_format_custom_skip_trailing_empty_lines=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.cpp:129: DB::assertString(char const*, DB::ReadBuffer&) @ 0x0000000013978f35 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:215: DB::assertString(String const&, DB::ReadBuffer&) @ 0x000000001ba5ff05 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/CustomSeparatedRowInputFormat.cpp:126: DB::CustomSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001e82411b in /usr/bin/clickhouse 10. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e68d821 in /usr/bin/clickhouse 20. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9cf69a in /usr/bin/clickhouse 21. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9cf985 in /usr/bin/clickhouse 22. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 23. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 24. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 2024.05.01 13:17:47.303440 [ 1132 ] {5ab3b4e0-5f87-44a9-8928-21105c2a74fe} executeQuery: Code: 6. DB::Exception: Cannot parse ignore_data_skipping_indices (''). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35966) (comment: 02771_ignore_data_skipping_indices.sql) (in query: SELECT * FROM data_02771 SETTINGS ignore_data_skipping_indices='';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1311: DB::buildIndexes(std::optional&, std::shared_ptr, DB::MergeTreeData const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&) @ 0x000000001ee361be in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1349: DB::ReadFromMergeTree::applyFilters() @ 0x000000001ee3529d in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:205: DB::QueryPlanOptimizations::optimizeTreeThirdPass(DB::QueryPlan&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001eec0c68 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/QueryPlan.cpp:484: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001ee0eb51 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/QueryPlan.cpp:169: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e657 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:17:47.303487 [ 1129 ] {8e36918c-0b91-472e-800d-042fa5205a94} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "" is not like UInt32 : While executing CustomSeparatedRowInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.cpp:129: DB::assertString(char const*, DB::ReadBuffer&) @ 0x0000000013978f35 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:215: DB::assertString(String const&, DB::ReadBuffer&) @ 0x000000001ba5ff05 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/CustomSeparatedRowInputFormat.cpp:126: DB::CustomSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001e82411b in /usr/bin/clickhouse 10. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e68d821 in /usr/bin/clickhouse 20. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9cf69a in /usr/bin/clickhouse 21. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9cf985 in /usr/bin/clickhouse 22. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 23. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 24. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 2024.05.01 13:17:47.304171 [ 1132 ] {5ab3b4e0-5f87-44a9-8928-21105c2a74fe} TCPHandler: Code: 6. DB::Exception: Cannot parse ignore_data_skipping_indices (''). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1311: DB::buildIndexes(std::optional&, std::shared_ptr, DB::MergeTreeData const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&) @ 0x000000001ee361be in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1349: DB::ReadFromMergeTree::applyFilters() @ 0x000000001ee3529d in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:205: DB::QueryPlanOptimizations::optimizeTreeThirdPass(DB::QueryPlan&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001eec0c68 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/QueryPlan.cpp:484: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001ee0eb51 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/QueryPlan.cpp:169: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e657 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:17:47.334265 [ 1129 ] {4e2ee102-ff94-4be3-9d1e-62bf57710222} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n\n1\t2\n\n\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "12" is not like UInt32 : While executing CustomSeparatedRowInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35952) (comment: 02771_tsv_csv_custom_skip_trailing_empty_lines.sql) (in query: select * from format(CustomSeparated, 'x UInt32, y UInt32', '1\t2\n\n\n1\t2\n\n\n') settings input_format_custom_skip_trailing_empty_lines=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.cpp:129: DB::assertString(char const*, DB::ReadBuffer&) @ 0x0000000013978f35 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:215: DB::assertString(String const&, DB::ReadBuffer&) @ 0x000000001ba5ff05 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/CustomSeparatedRowInputFormat.cpp:126: DB::CustomSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001e82411b in /usr/bin/clickhouse 10. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e68d821 in /usr/bin/clickhouse 20. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9cf69a in /usr/bin/clickhouse 21. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9cf985 in /usr/bin/clickhouse 22. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 23. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 24. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 2024.05.01 13:17:47.335180 [ 1129 ] {4e2ee102-ff94-4be3-9d1e-62bf57710222} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected '\t' before: '\n\n1\t2\n\n\n': Row 1: Column 0, name: x, type: UInt32, parsed text: "1" Column 1, name: y, type: UInt32, parsed text: "2" Row 2: Column 0, name: x, type: UInt32, ERROR: text "12" is not like UInt32 : While executing CustomSeparatedRowInputFormat: (at row 2) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.cpp:129: DB::assertString(char const*, DB::ReadBuffer&) @ 0x0000000013978f35 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:215: DB::assertString(String const&, DB::ReadBuffer&) @ 0x000000001ba5ff05 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/CustomSeparatedRowInputFormat.cpp:126: DB::CustomSeparatedFormatReader::skipFieldDelimiter() @ 0x000000001e82411b in /usr/bin/clickhouse 10. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e68d821 in /usr/bin/clickhouse 20. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9cf69a in /usr/bin/clickhouse 21. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9cf985 in /usr/bin/clickhouse 22. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 23. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 24. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 2024.05.01 13:17:47.483739 [ 1132 ] {e6e53960-86f9-4623-9673-18f46739cd56} executeQuery: Code: 277. DB::Exception: Index `xy_idx` is not used and setting 'force_data_skipping_indices' contains it. (INDEX_NOT_USED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35966) (comment: 02771_ignore_data_skipping_indices.sql) (in query: SELECT * FROM data_02771 WHERE x = 1 AND y = 1 SETTINGS ignore_data_skipping_indices='xy_idx',force_data_skipping_indices='xy_idx' ;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:929: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001df4cdeb in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1498: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee37b04 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1375: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee34f81 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001ee34c98 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1682: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001ee39f6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1790: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3afdb in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:17:47.484707 [ 1132 ] {e6e53960-86f9-4623-9673-18f46739cd56} TCPHandler: Code: 277. DB::Exception: Index `xy_idx` is not used and setting 'force_data_skipping_indices' contains it. (INDEX_NOT_USED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:929: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001df4cdeb in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1498: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee37b04 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1375: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee34f81 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001ee34c98 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1682: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001ee39f6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1790: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3afdb in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:17:48.650773 [ 1129 ] {4c6e5ef6-af6c-4973-8c54-eaa77f19e04e} BackupsWorker: Failed to start backup Disk('default', 'test_ukjtzxol/backup_2'): Code: 36. DB::Exception: use_same_s3_credentials_for_base_backup supported only for S3, got Disk('default', 'test_ukjtzxol/backup_2'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Backups/BackupInfo.cpp:108: DB::BackupInfo::copyS3CredentialsTo(DB::BackupInfo&) const @ 0x000000001b2818fc in /usr/bin/clickhouse 7. /build/src/Backups/BackupImpl.cpp:172: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b342680 in /usr/bin/clickhouse 8. /build/src/Backups/BackupImpl.cpp:127: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool, bool) @ 0x000000001b342e8d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool const&, bool const&) @ 0x000000001b3c130d in /usr/bin/clickhouse 10. /build/src/Backups/registerBackupEnginesFileAndDisk.cpp:189: DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b3bfa81 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b3bee1d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b3bed9d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b3bed5d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b3bed25 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b29ddde in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cefd in /usr/bin/clickhouse 17. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cba1 in /usr/bin/clickhouse 18. /build/src/Backups/BackupsWorker.cpp:392: DB::BackupsWorker::doBackup(std::shared_ptr const&, String const&, String const&, DB::BackupInfo const&, DB::BackupSettings, std::shared_ptr, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001b28651c in /usr/bin/clickhouse 19. /build/src/Backups/BackupsWorker.cpp:304: DB::BackupsWorker::startMakingBackup(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001b284784 in /usr/bin/clickhouse 20. /build/src/Backups/BackupsWorker.cpp:235: DB::BackupsWorker::start(std::shared_ptr const&, std::shared_ptr) @ 0x000000001b283ee5 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterBackupQuery.cpp:39: DB::InterpreterBackupQuery::execute() @ 0x000000001ca718e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:17:48.651756 [ 1129 ] {4c6e5ef6-af6c-4973-8c54-eaa77f19e04e} executeQuery: Code: 36. DB::Exception: use_same_s3_credentials_for_base_backup supported only for S3, got Disk('default', 'test_ukjtzxol/backup_2'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36512) (comment: 02843_backup_use_same_s3_credentials_for_base_backup.sh) (in query: BACKUP TABLE data TO Disk('default', 'test_ukjtzxol/backup_2') SETTINGS use_same_s3_credentials_for_base_backup=1, base_backup=Disk('default', 'test_ukjtzxol/backup_1')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Backups/BackupInfo.cpp:108: DB::BackupInfo::copyS3CredentialsTo(DB::BackupInfo&) const @ 0x000000001b2818fc in /usr/bin/clickhouse 7. /build/src/Backups/BackupImpl.cpp:172: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b342680 in /usr/bin/clickhouse 8. /build/src/Backups/BackupImpl.cpp:127: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool, bool) @ 0x000000001b342e8d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool const&, bool const&) @ 0x000000001b3c130d in /usr/bin/clickhouse 10. /build/src/Backups/registerBackupEnginesFileAndDisk.cpp:189: DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b3bfa81 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b3bee1d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b3bed9d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b3bed5d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b3bed25 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b29ddde in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cefd in /usr/bin/clickhouse 17. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cba1 in /usr/bin/clickhouse 18. /build/src/Backups/BackupsWorker.cpp:392: DB::BackupsWorker::doBackup(std::shared_ptr const&, String const&, String const&, DB::BackupInfo const&, DB::BackupSettings, std::shared_ptr, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001b28651c in /usr/bin/clickhouse 19. /build/src/Backups/BackupsWorker.cpp:304: DB::BackupsWorker::startMakingBackup(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001b284784 in /usr/bin/clickhouse 20. /build/src/Backups/BackupsWorker.cpp:235: DB::BackupsWorker::start(std::shared_ptr const&, std::shared_ptr) @ 0x000000001b283ee5 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterBackupQuery.cpp:39: DB::InterpreterBackupQuery::execute() @ 0x000000001ca718e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:17:48.653459 [ 1129 ] {4c6e5ef6-af6c-4973-8c54-eaa77f19e04e} TCPHandler: Code: 36. DB::Exception: use_same_s3_credentials_for_base_backup supported only for S3, got Disk('default', 'test_ukjtzxol/backup_2'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Backups/BackupInfo.cpp:108: DB::BackupInfo::copyS3CredentialsTo(DB::BackupInfo&) const @ 0x000000001b2818fc in /usr/bin/clickhouse 7. /build/src/Backups/BackupImpl.cpp:172: DB::BackupImpl::open(std::shared_ptr const&) @ 0x000000001b342680 in /usr/bin/clickhouse 8. /build/src/Backups/BackupImpl.cpp:127: DB::BackupImpl::BackupImpl(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams const&, std::optional const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool, bool) @ 0x000000001b342e8d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, std::shared_ptr const&, bool const&, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool const&, bool const&>(DB::BackupInfo const&, DB::BackupImpl::ArchiveParams&, std::optional const&, std::shared_ptr&, std::shared_ptr const&, bool const&, std::shared_ptr const&, std::optional, DB::UUIDTag>> const&, bool const&, bool const&) @ 0x000000001b3c130d in /usr/bin/clickhouse 10. /build/src/Backups/registerBackupEnginesFileAndDisk.cpp:189: DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b3bfa81 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b3bee1d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerBackupEnginesFileAndDisk(DB::BackupFactory&)::$_0&, DB::BackupFactory::CreateParams const&) @ 0x000000001b3bed9d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) @ 0x000000001b3bed5d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::BackupFactory::CreateParams const&)>::__call_impl (DB::BackupFactory::CreateParams const&)>>(std::__function::__policy_storage const*, DB::BackupFactory::CreateParams const&) @ 0x000000001b3bed25 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::BackupFactory::CreateParams const&)>::operator()[abi:v15000](DB::BackupFactory::CreateParams const&) const @ 0x000000001b29ddde in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::BackupFactory::CreateParams const&)>::operator()(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cefd in /usr/bin/clickhouse 17. /build/src/Backups/BackupFactory.cpp:24: DB::BackupFactory::createBackup(DB::BackupFactory::CreateParams const&) const @ 0x000000001b29cba1 in /usr/bin/clickhouse 18. /build/src/Backups/BackupsWorker.cpp:392: DB::BackupsWorker::doBackup(std::shared_ptr const&, String const&, String const&, DB::BackupInfo const&, DB::BackupSettings, std::shared_ptr, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001b28651c in /usr/bin/clickhouse 19. /build/src/Backups/BackupsWorker.cpp:304: DB::BackupsWorker::startMakingBackup(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001b284784 in /usr/bin/clickhouse 20. /build/src/Backups/BackupsWorker.cpp:235: DB::BackupsWorker::start(std::shared_ptr const&, std::shared_ptr) @ 0x000000001b283ee5 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterBackupQuery.cpp:39: DB::InterpreterBackupQuery::execute() @ 0x000000001ca718e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:17:51.755741 [ 1132 ] {be721a26-5794-49dd-8675-39a34e860798} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'n' of function space, expected Integer, got String: While processing space('abc'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36538) (comment: 02752_space_function.sql) (in query: SELECT space('abc');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/space.cpp:51: DB::(anonymous namespace)::FunctionSpace::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012546a72 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:17:51.756757 [ 1132 ] {be721a26-5794-49dd-8675-39a34e860798} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'n' of function space, expected Integer, got String: While processing space('abc'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/space.cpp:51: DB::(anonymous namespace)::FunctionSpace::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012546a72 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:17:51.766136 [ 1132 ] {0906c222-0705-4caf-b840-96e64b2096ed} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'n' of function space, expected Integer, got Array(String): While processing space(['abc']). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36538) (comment: 02752_space_function.sql) (in query: SELECT space(['abc']);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/space.cpp:51: DB::(anonymous namespace)::FunctionSpace::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012546a72 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:17:51.767316 [ 1132 ] {0906c222-0705-4caf-b840-96e64b2096ed} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'n' of function space, expected Integer, got Array(String): While processing space(['abc']). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/space.cpp:51: DB::(anonymous namespace)::FunctionSpace::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012546a72 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:17:51.775605 [ 1132 ] {407290d0-77c1-4cfe-a56d-ab1cfeba352c} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'n' of function space, expected Integer, got String: While processing space('abc'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36538) (comment: 02752_space_function.sql) (in query: SELECT space(('abc'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/space.cpp:51: DB::(anonymous namespace)::FunctionSpace::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012546a72 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:17:51.776641 [ 1132 ] {407290d0-77c1-4cfe-a56d-ab1cfeba352c} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'n' of function space, expected Integer, got String: While processing space('abc'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/space.cpp:51: DB::(anonymous namespace)::FunctionSpace::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012546a72 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:17:51.891887 [ 1132 ] {33313a87-f8a1-45d7-aca1-a907e381183c} executeQuery: Code: 131. DB::Exception: Too many times to repeat (18011680617995229494), maximum is: 1000000: While processing space(CAST('30303030303030303030303030303030', 'UInt64')). (TOO_LARGE_STRING_SIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36538) (comment: 02752_space_function.sql) (in query: SELECT space(30303030303030303030303030303030::UInt64);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long const&) @ 0x000000000c4aa28c in /usr/bin/clickhouse 6. /build/src/Functions/space.cpp:34: DB::(anonymous namespace)::FunctionSpace::checkRepeatTime(unsigned long) @ 0x0000000012548b98 in /usr/bin/clickhouse 7. /build/src/Functions/space.cpp:72: bool DB::(anonymous namespace)::FunctionSpace::executeConstant>(COW::immutable_ptr, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) const @ 0x00000000125471f7 in /usr/bin/clickhouse 8. /build/src/Functions/space.cpp:149: DB::(anonymous namespace)::FunctionSpace::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012545d1c in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:17:51.892881 [ 1132 ] {33313a87-f8a1-45d7-aca1-a907e381183c} TCPHandler: Code: 131. DB::Exception: Too many times to repeat (18011680617995229494), maximum is: 1000000: While processing space(CAST('30303030303030303030303030303030', 'UInt64')). (TOO_LARGE_STRING_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long const&) @ 0x000000000c4aa28c in /usr/bin/clickhouse 6. /build/src/Functions/space.cpp:34: DB::(anonymous namespace)::FunctionSpace::checkRepeatTime(unsigned long) @ 0x0000000012548b98 in /usr/bin/clickhouse 7. /build/src/Functions/space.cpp:72: bool DB::(anonymous namespace)::FunctionSpace::executeConstant>(COW::immutable_ptr, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) const @ 0x00000000125471f7 in /usr/bin/clickhouse 8. /build/src/Functions/space.cpp:149: DB::(anonymous namespace)::FunctionSpace::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012545d1c in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:18:03.832999 [ 1133 ] {6a15f134-17ef-4a45-9ba7-ed10b15d0075} executeQuery: Code: 36. DB::Exception: Absolute path in the 'output_format_schema' setting is prohibited: /tmp/schema.capnp. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43228) (comment: 02817_structure_to_schema.sh) (in query: insert into function file('02817_structure_to_schema_test_2ehi048o-data', CapnProto) select * from numbers(10) settings output_format_schema='/tmp/schema.capnp'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Formats/FormatSchemaInfo.cpp:130: DB::MaybeAutogeneratedFormatSchemaInfo::MaybeAutogeneratedFormatSchemaInfo(DB::FormatSettings const&, String const&, DB::Block const&, bool) @ 0x000000001e81fb79 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/CapnProtoRowOutputFormat.cpp:58: DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e8226f8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e82264d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e8225ed in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e82258d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::__call_impl (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e822535 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e61a30e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e61136d in /usr/bin/clickhouse 14. /build/src/Formats/FormatFactory.cpp:475: DB::FormatFactory::getOutputFormat(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e608473 in /usr/bin/clickhouse 15. /build/src/Formats/FormatFactory.cpp:451: DB::FormatFactory::getOutputFormatParallelIfPossible(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e607db8 in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1574: DB::StorageFileSink::initialize() @ 0x000000001d6a628d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFile.cpp:1553: DB::StorageFileSink::StorageFileSink(std::shared_ptr const&, String const&, std::unique_lock&&, int, bool, String, String const&, DB::CompressionMethod, std::optional const&, String, std::shared_ptr, int) @ 0x000000001d6a7b34 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFileSink* std::construct_at[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, DB::StorageFileSink*>(DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a7777 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void, void>(std::allocator&, DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a75c2 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&>(std::allocator, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a74b4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::allocator const&, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a731f in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d699f08 in /usr/bin/clickhouse 23. /build/src/Storages/StorageFile.cpp:1813: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691c52 in /usr/bin/clickhouse 24. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:18:03.835617 [ 1133 ] {6a15f134-17ef-4a45-9ba7-ed10b15d0075} TCPHandler: Code: 36. DB::Exception: Absolute path in the 'output_format_schema' setting is prohibited: /tmp/schema.capnp. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Formats/FormatSchemaInfo.cpp:130: DB::MaybeAutogeneratedFormatSchemaInfo::MaybeAutogeneratedFormatSchemaInfo(DB::FormatSettings const&, String const&, DB::Block const&, bool) @ 0x000000001e81fb79 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/CapnProtoRowOutputFormat.cpp:58: DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e8226f8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e82264d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e8225ed in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e82258d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::__call_impl (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e822535 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e61a30e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e61136d in /usr/bin/clickhouse 14. /build/src/Formats/FormatFactory.cpp:475: DB::FormatFactory::getOutputFormat(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e608473 in /usr/bin/clickhouse 15. /build/src/Formats/FormatFactory.cpp:451: DB::FormatFactory::getOutputFormatParallelIfPossible(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e607db8 in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1574: DB::StorageFileSink::initialize() @ 0x000000001d6a628d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFile.cpp:1553: DB::StorageFileSink::StorageFileSink(std::shared_ptr const&, String const&, std::unique_lock&&, int, bool, String, String const&, DB::CompressionMethod, std::optional const&, String, std::shared_ptr, int) @ 0x000000001d6a7b34 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFileSink* std::construct_at[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, DB::StorageFileSink*>(DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a7777 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void, void>(std::allocator&, DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a75c2 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&>(std::allocator, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a74b4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::allocator const&, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a731f in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d699f08 in /usr/bin/clickhouse 23. /build/src/Storages/StorageFile.cpp:1813: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691c52 in /usr/bin/clickhouse 24. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:18:05.889542 [ 1133 ] {fbc93f18-0b47-4eea-b45e-67a5c37ddc0e} executeQuery: Code: 36. DB::Exception: Path in the 'format_schema' setting shouldn't go outside the 'format_schema_path' directory: /var/lib/clickhouse/format_schemas/ (../../schema.capnp not in /var/lib/clickhouse/format_schemas/). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43296) (comment: 02817_structure_to_schema.sh) (in query: insert into function file('02817_structure_to_schema_test_2ehi048o-data', CapnProto) select * from numbers(10) settings output_format_schema='../../schema.capnp'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Formats/FormatSchemaInfo.cpp:135: DB::MaybeAutogeneratedFormatSchemaInfo::MaybeAutogeneratedFormatSchemaInfo(DB::FormatSettings const&, String const&, DB::Block const&, bool) @ 0x000000001e81ff51 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/CapnProtoRowOutputFormat.cpp:58: DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e8226f8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e82264d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e8225ed in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e82258d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::__call_impl (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e822535 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e61a30e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e61136d in /usr/bin/clickhouse 14. /build/src/Formats/FormatFactory.cpp:475: DB::FormatFactory::getOutputFormat(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e608473 in /usr/bin/clickhouse 15. /build/src/Formats/FormatFactory.cpp:451: DB::FormatFactory::getOutputFormatParallelIfPossible(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e607db8 in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1574: DB::StorageFileSink::initialize() @ 0x000000001d6a628d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFile.cpp:1553: DB::StorageFileSink::StorageFileSink(std::shared_ptr const&, String const&, std::unique_lock&&, int, bool, String, String const&, DB::CompressionMethod, std::optional const&, String, std::shared_ptr, int) @ 0x000000001d6a7b34 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFileSink* std::construct_at[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, DB::StorageFileSink*>(DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a7777 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void, void>(std::allocator&, DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a75c2 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&>(std::allocator, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a74b4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::allocator const&, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a731f in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d699f08 in /usr/bin/clickhouse 23. /build/src/Storages/StorageFile.cpp:1813: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691c52 in /usr/bin/clickhouse 24. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:18:05.891527 [ 1133 ] {fbc93f18-0b47-4eea-b45e-67a5c37ddc0e} TCPHandler: Code: 36. DB::Exception: Path in the 'format_schema' setting shouldn't go outside the 'format_schema_path' directory: /var/lib/clickhouse/format_schemas/ (../../schema.capnp not in /var/lib/clickhouse/format_schemas/). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Formats/FormatSchemaInfo.cpp:135: DB::MaybeAutogeneratedFormatSchemaInfo::MaybeAutogeneratedFormatSchemaInfo(DB::FormatSettings const&, String const&, DB::Block const&, bool) @ 0x000000001e81ff51 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/CapnProtoRowOutputFormat.cpp:58: DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e8226f8 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e82264d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerOutputFormatCapnProto(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e8225ed in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e82258d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::__call_impl (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001e822535 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e61a30e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e61136d in /usr/bin/clickhouse 14. /build/src/Formats/FormatFactory.cpp:475: DB::FormatFactory::getOutputFormat(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e608473 in /usr/bin/clickhouse 15. /build/src/Formats/FormatFactory.cpp:451: DB::FormatFactory::getOutputFormatParallelIfPossible(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e607db8 in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1574: DB::StorageFileSink::initialize() @ 0x000000001d6a628d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFile.cpp:1553: DB::StorageFileSink::StorageFileSink(std::shared_ptr const&, String const&, std::unique_lock&&, int, bool, String, String const&, DB::CompressionMethod, std::optional const&, String, std::shared_ptr, int) @ 0x000000001d6a7b34 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFileSink* std::construct_at[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, DB::StorageFileSink*>(DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a7777 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void, void>(std::allocator&, DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a75c2 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&>(std::allocator, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a74b4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::allocator const&, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a731f in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d699f08 in /usr/bin/clickhouse 23. /build/src/Storages/StorageFile.cpp:1813: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691c52 in /usr/bin/clickhouse 24. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:18:06.336966 [ 1132 ] {ea630cfa-c7a9-4b0d-bfa8-41c29694320f} executeQuery: Code: 117. DB::Exception: Incorrect state of aggregate function 'nothing', it should contain exactly one zero byte, while it is 1.: While processing CAST('\0', 'AggregateFunction(nothingArrayIf, Array(Nullable(Nothing)), Nullable(Nothing))'). (INCORRECT_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43306) (comment: 02731_nothing_deserialization.sql) (in query: SELECT CAST('\x01\x00' AS AggregateFunction(nothingArrayIf, Array(Nullable(Nothing)), Nullable(Nothing)));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned int&&) @ 0x000000001786f1f3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionNothing.h:78: DB::AggregateFunctionNothing::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001786e1fd in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionArray.h:159: DB::AggregateFunctionArray::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ac5c43 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionIf.h:181: DB::AggregateFunctionIf::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017aa7643 in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017abe993 in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 2024.05.01 13:18:06.337969 [ 1132 ] {ea630cfa-c7a9-4b0d-bfa8-41c29694320f} TCPHandler: Code: 117. DB::Exception: Incorrect state of aggregate function 'nothing', it should contain exactly one zero byte, while it is 1.: While processing CAST('\0', 'AggregateFunction(nothingArrayIf, Array(Nullable(Nothing)), Nullable(Nothing))'). (INCORRECT_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned int&&) @ 0x000000001786f1f3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionNothing.h:78: DB::AggregateFunctionNothing::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001786e1fd in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionArray.h:159: DB::AggregateFunctionArray::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ac5c43 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionIf.h:181: DB::AggregateFunctionIf::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017aa7643 in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017abe993 in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 2024.05.01 13:18:07.799115 [ 1130 ] {ce7291af-4f89-4cb7-af07-11abba1f1abe} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43326) (in query: select _path, _file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:18:07.800428 [ 1130 ] {ce7291af-4f89-4cb7-af07-11abba1f1abe} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:18:10.814347 [ 1132 ] {0e68d3c0-d5db-4523-8340-2106dd17f0b7} executeQuery: Code: 130. DB::Exception: Array does not start with '[' character: value Hello cannot be parsed as Array(String) for query parameter 'x'. (CANNOT_READ_ARRAY_FROM_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48648) (comment: 02723_param_exception_message_context.sh) (in query: SELECT {x:Array(String)}), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [40]) @ 0x000000000b1ff2de in /usr/bin/clickhouse 6. /build/src/DataTypes/Serializations/SerializationArray.cpp:435: void DB::deserializeTextImpl(DB::IColumn&, DB::ReadBuffer&, DB::SerializationArray::deserializeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&, bool) const::$_0&&, bool) @ 0x000000001ba24532 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationArray.cpp:499: DB::SerializationArray::deserializeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&, bool) const @ 0x000000001ba24352 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SimpleTextSerialization.h:42: DB::SimpleTextSerialization::deserializeTextEscaped(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000000b197c94 in /usr/bin/clickhouse 9. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:95: DB::ReplaceQueryParameterVisitor::visitQueryParameter(std::shared_ptr&) @ 0x000000001d0832dc in /usr/bin/clickhouse 10. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:38: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d082f05 in /usr/bin/clickhouse 11. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:57: DB::ReplaceQueryParameterVisitor::visitChildren(std::shared_ptr&) @ 0x000000001d083bb3 in /usr/bin/clickhouse 12. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:46: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d082ffb in /usr/bin/clickhouse 13. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:57: DB::ReplaceQueryParameterVisitor::visitChildren(std::shared_ptr&) @ 0x000000001d083bb3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:46: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d082ffb in /usr/bin/clickhouse 15. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:57: DB::ReplaceQueryParameterVisitor::visitChildren(std::shared_ptr&) @ 0x000000001d083bb3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:46: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d082ffb in /usr/bin/clickhouse 17. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:57: DB::ReplaceQueryParameterVisitor::visitChildren(std::shared_ptr&) @ 0x000000001d083bb3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:46: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d082ffb in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:731: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09d528 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:18:10.816015 [ 1132 ] {0e68d3c0-d5db-4523-8340-2106dd17f0b7} TCPHandler: Code: 130. DB::Exception: Array does not start with '[' character: value Hello cannot be parsed as Array(String) for query parameter 'x'. (CANNOT_READ_ARRAY_FROM_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [40]) @ 0x000000000b1ff2de in /usr/bin/clickhouse 6. /build/src/DataTypes/Serializations/SerializationArray.cpp:435: void DB::deserializeTextImpl(DB::IColumn&, DB::ReadBuffer&, DB::SerializationArray::deserializeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&, bool) const::$_0&&, bool) @ 0x000000001ba24532 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationArray.cpp:499: DB::SerializationArray::deserializeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&, bool) const @ 0x000000001ba24352 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SimpleTextSerialization.h:42: DB::SimpleTextSerialization::deserializeTextEscaped(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000000b197c94 in /usr/bin/clickhouse 9. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:95: DB::ReplaceQueryParameterVisitor::visitQueryParameter(std::shared_ptr&) @ 0x000000001d0832dc in /usr/bin/clickhouse 10. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:38: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d082f05 in /usr/bin/clickhouse 11. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:57: DB::ReplaceQueryParameterVisitor::visitChildren(std::shared_ptr&) @ 0x000000001d083bb3 in /usr/bin/clickhouse 12. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:46: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d082ffb in /usr/bin/clickhouse 13. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:57: DB::ReplaceQueryParameterVisitor::visitChildren(std::shared_ptr&) @ 0x000000001d083bb3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:46: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d082ffb in /usr/bin/clickhouse 15. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:57: DB::ReplaceQueryParameterVisitor::visitChildren(std::shared_ptr&) @ 0x000000001d083bb3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:46: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d082ffb in /usr/bin/clickhouse 17. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:57: DB::ReplaceQueryParameterVisitor::visitChildren(std::shared_ptr&) @ 0x000000001d083bb3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ReplaceQueryParameterVisitor.cpp:46: DB::ReplaceQueryParameterVisitor::visit(std::shared_ptr&) @ 0x000000001d082ffb in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:731: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09d528 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:18:16.429604 [ 1080 ] {9943f6e8-f0e6-4334-b5cb-26aee184a684} executeQuery: Code: 253. DB::Exception: Replica /clickhouse/tables/test_goe0jxgv/test/replicas/replica-5f4d2fcf-9824-4d0e-9e6f-fedff2b5949e already exists. (REPLICA_ALREADY_EXISTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48738) (comment: 02711_server_uuid_macro.sql) (in query: CREATE TABLE test2 (`x` UInt8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/{database}/test', 'replica-{server_uuid}') ORDER BY x SETTINGS index_granularity = 39262, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 0.6682727932929993, merge_max_block_size = 5863, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 799045, vertical_merge_algorithm_min_columns_to_activate = 39, min_merge_bytes_to_use_direct_io = 1, index_granularity_bytes = 8953878, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 36164, primary_key_compress_block_size = 85117), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:926: DB::StorageReplicatedMergeTree::createReplica(std::shared_ptr const&) @ 0x000000001d7a0d12 in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:522: DB::StorageReplicatedMergeTree::StorageReplicatedMergeTree(String const&, String const&, bool, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, DB::RenamingRestrictions, bool) @ 0x000000001d79956f in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageReplicatedMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&, DB::StorageReplicatedMergeTree*>(DB::StorageReplicatedMergeTree*, String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e2f6700 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&, void, void>(std::allocator&, DB::StorageReplicatedMergeTree*, String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e2f63b1 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&>(std::allocator, String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e2f5ff2 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&, void>(std::allocator const&, String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e2f5da0 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&, void>(String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e2f4f5c in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:692: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f31d0 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 20. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:18:16.430646 [ 1080 ] {9943f6e8-f0e6-4334-b5cb-26aee184a684} TCPHandler: Code: 253. DB::Exception: Replica /clickhouse/tables/test_goe0jxgv/test/replicas/replica-5f4d2fcf-9824-4d0e-9e6f-fedff2b5949e already exists. (REPLICA_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:926: DB::StorageReplicatedMergeTree::createReplica(std::shared_ptr const&) @ 0x000000001d7a0d12 in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:522: DB::StorageReplicatedMergeTree::StorageReplicatedMergeTree(String const&, String const&, bool, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, DB::RenamingRestrictions, bool) @ 0x000000001d79956f in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageReplicatedMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&, DB::StorageReplicatedMergeTree*>(DB::StorageReplicatedMergeTree*, String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e2f6700 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&, void, void>(std::allocator&, DB::StorageReplicatedMergeTree*, String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e2f63b1 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&>(std::allocator, String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e2f5ff2 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&, void>(std::allocator const&, String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e2f5da0 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::RenamingRestrictions&, bool&, void>(String&, String&, bool const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&, DB::RenamingRestrictions&, bool&) @ 0x000000001e2f4f5c in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:692: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f31d0 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 20. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:18:16.539500 [ 1080 ] {d83d2b7e-27e3-41bb-b82f-f965ae46690b} executeQuery: Code: 139. DB::Exception: No macro server_uuid in config: While processing getMacro('server_uuid'). (NO_ELEMENTS_IN_CONFIG) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48738) (comment: 02711_server_uuid_macro.sql) (in query: -- The macro {server_uuid} is special, not a configuration-type macro. It's normal that it is inaccessible with the getMacro function. SELECT getMacro('server_uuid');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Common/Macros.cpp:157: DB::Macros::getValue(String const&) const @ 0x00000000138edbfb in /usr/bin/clickhouse 7. /build/src/Functions/getMacro.cpp:76: DB::(anonymous namespace)::FunctionGetMacro::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e47ce3f in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:18:16.540451 [ 1080 ] {d83d2b7e-27e3-41bb-b82f-f965ae46690b} TCPHandler: Code: 139. DB::Exception: No macro server_uuid in config: While processing getMacro('server_uuid'). (NO_ELEMENTS_IN_CONFIG), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Common/Macros.cpp:157: DB::Macros::getValue(String const&) const @ 0x00000000138edbfb in /usr/bin/clickhouse 7. /build/src/Functions/getMacro.cpp:76: DB::(anonymous namespace)::FunctionGetMacro::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e47ce3f in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:18:17.596209 [ 1080 ] {14046395-0a13-4928-bbb3-7c9bafdbb920} ~StorageFileSource: Failed to rename file /var/lib/clickhouse/user_files/02732_rename_after_processing_test_v66gxxqe/tmp5.csv: File /var/lib/clickhouse/user_files/02732_rename_after_processing_test_v66gxxqe/tmp.csv already exists 2024.05.01 13:18:19.598028 [ 1080 ] {aba61252-ef08-4dc6-80ef-950629817aa3} ~StorageFileSource: Failed to rename file /var/lib/clickhouse/user_files/02732_rename_after_processing_test_v66gxxqe/tmp5.csv: File `/var/lib/clickhouse/tmp5.csv` is not inside `/var/lib/clickhouse/user_files/` 2024.05.01 13:18:19.811170 [ 5698 ] {9d7e2ecc-2d9c-4037-9495-5fee001299b3} executeQuery: Code: 215. DB::Exception: Column c is not under aggregate function and not in GROUP BY keys. In query SELECT a, sum(b) FROM (SELECT 1 AS a, 1 AS b, 0 AS c) GROUP BY a HAVING c SETTINGS allow_experimental_analyzer = 1. (NOT_AN_AGGREGATE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35598) (comment: 02701_invalid_having_NOT_AN_AGGREGATE.sql) (in query: SELECT a, sum(b) FROM (SELECT 1 AS a, 1 AS b, 0 AS c) GROUP BY a HAVING c SETTINGS allow_experimental_analyzer=1 -- { serverError NOT_AN_AGGREGATE } ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:118: DB::(anonymous namespace)::ValidateGroupByColumnsVisitor::visitImpl(std::shared_ptr const&) @ 0x000000001c98f3ab in /usr/bin/clickhouse 7. /build/src/Analyzer/InDepthQueryTreeVisitor.h:61: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001c98e7f6 in /usr/bin/clickhouse 8. /build/src/Analyzer/ValidationUtils.cpp:264: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001c98e505 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7114: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91067c in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 12. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:18:19.812032 [ 5698 ] {9d7e2ecc-2d9c-4037-9495-5fee001299b3} TCPHandler: Code: 215. DB::Exception: Column c is not under aggregate function and not in GROUP BY keys. In query SELECT a, sum(b) FROM (SELECT 1 AS a, 1 AS b, 0 AS c) GROUP BY a HAVING c SETTINGS allow_experimental_analyzer = 1. (NOT_AN_AGGREGATE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:118: DB::(anonymous namespace)::ValidateGroupByColumnsVisitor::visitImpl(std::shared_ptr const&) @ 0x000000001c98f3ab in /usr/bin/clickhouse 7. /build/src/Analyzer/InDepthQueryTreeVisitor.h:61: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001c98e7f6 in /usr/bin/clickhouse 8. /build/src/Analyzer/ValidationUtils.cpp:264: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001c98e505 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7114: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91067c in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 12. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:18:21.659383 [ 1080 ] {bc52c7aa-e6bd-4f82-ac99-61efb5bf0e09} executeQuery: Code: 36. DB::Exception: Invalid renaming rule: Allowed placeholders only %a, %f, %e, %t, and %%. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35626) (comment: 02732_rename_after_processing.sh) (in query: SELECT COUNT(*) FROM file('02732_rename_after_processing_test_v66gxxqe/tmp5.csv')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [72]) @ 0x000000000d91461e in /usr/bin/clickhouse 6. /build/src/Common/FileRenamer.cpp:77: DB::FileRenamer::validateRenamingRule(String const&, bool) @ 0x000000001d6a9123 in /usr/bin/clickhouse 7. /build/src/Common/FileRenamer.cpp:30: DB::FileRenamer::FileRenamer(String const&) @ 0x000000001d6a902f in /usr/bin/clickhouse 8. /build/src/Storages/StorageFile.cpp:888: DB::StorageFile::StorageFile(String const&, String const&, DB::StorageFile::CommonArguments) @ 0x000000001d68f389 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFile* std::construct_at[abi:v15000](DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a972214 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a972151 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a9720d7 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String const&, String, DB::StorageFile::CommonArguments&, void>(std::allocator const&, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a971fea in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a970216 in /usr/bin/clickhouse 14. /build/src/TableFunctions/TableFunctionFile.cpp:88: DB::TableFunctionFile::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a96f9a7 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a974147 in /usr/bin/clickhouse 16. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 17. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 18. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:18:21.661217 [ 1080 ] {bc52c7aa-e6bd-4f82-ac99-61efb5bf0e09} TCPHandler: Code: 36. DB::Exception: Invalid renaming rule: Allowed placeholders only %a, %f, %e, %t, and %%. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [72]) @ 0x000000000d91461e in /usr/bin/clickhouse 6. /build/src/Common/FileRenamer.cpp:77: DB::FileRenamer::validateRenamingRule(String const&, bool) @ 0x000000001d6a9123 in /usr/bin/clickhouse 7. /build/src/Common/FileRenamer.cpp:30: DB::FileRenamer::FileRenamer(String const&) @ 0x000000001d6a902f in /usr/bin/clickhouse 8. /build/src/Storages/StorageFile.cpp:888: DB::StorageFile::StorageFile(String const&, String const&, DB::StorageFile::CommonArguments) @ 0x000000001d68f389 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFile* std::construct_at[abi:v15000](DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a972214 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a972151 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a9720d7 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String const&, String, DB::StorageFile::CommonArguments&, void>(std::allocator const&, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a971fea in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a970216 in /usr/bin/clickhouse 14. /build/src/TableFunctions/TableFunctionFile.cpp:88: DB::TableFunctionFile::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a96f9a7 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a974147 in /usr/bin/clickhouse 16. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 17. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 18. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:18:23.727173 [ 1133 ] {5ab559f3-c91b-404a-99fe-8cf946408e23} executeQuery: Code: 36. DB::Exception: Invalid renaming rule: Odd number of consecutive percentage signs. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35686) (comment: 02732_rename_after_processing.sh) (in query: SELECT COUNT(*) FROM file('02732_rename_after_processing_test_v66gxxqe/tmp5.csv')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [66]) @ 0x000000000d7211fe in /usr/bin/clickhouse 6. /build/src/Common/FileRenamer.cpp:90: DB::FileRenamer::validateRenamingRule(String const&, bool) @ 0x000000001d6a92e0 in /usr/bin/clickhouse 7. /build/src/Common/FileRenamer.cpp:30: DB::FileRenamer::FileRenamer(String const&) @ 0x000000001d6a902f in /usr/bin/clickhouse 8. /build/src/Storages/StorageFile.cpp:888: DB::StorageFile::StorageFile(String const&, String const&, DB::StorageFile::CommonArguments) @ 0x000000001d68f389 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFile* std::construct_at[abi:v15000](DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a972214 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a972151 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a9720d7 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String const&, String, DB::StorageFile::CommonArguments&, void>(std::allocator const&, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a971fea in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a970216 in /usr/bin/clickhouse 14. /build/src/TableFunctions/TableFunctionFile.cpp:88: DB::TableFunctionFile::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a96f9a7 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a974147 in /usr/bin/clickhouse 16. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 17. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 18. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:18:23.729183 [ 1133 ] {5ab559f3-c91b-404a-99fe-8cf946408e23} TCPHandler: Code: 36. DB::Exception: Invalid renaming rule: Odd number of consecutive percentage signs. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [66]) @ 0x000000000d7211fe in /usr/bin/clickhouse 6. /build/src/Common/FileRenamer.cpp:90: DB::FileRenamer::validateRenamingRule(String const&, bool) @ 0x000000001d6a92e0 in /usr/bin/clickhouse 7. /build/src/Common/FileRenamer.cpp:30: DB::FileRenamer::FileRenamer(String const&) @ 0x000000001d6a902f in /usr/bin/clickhouse 8. /build/src/Storages/StorageFile.cpp:888: DB::StorageFile::StorageFile(String const&, String const&, DB::StorageFile::CommonArguments) @ 0x000000001d68f389 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFile* std::construct_at[abi:v15000](DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a972214 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a972151 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a9720d7 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String const&, String, DB::StorageFile::CommonArguments&, void>(std::allocator const&, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a971fea in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a970216 in /usr/bin/clickhouse 14. /build/src/TableFunctions/TableFunctionFile.cpp:88: DB::TableFunctionFile::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a96f9a7 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a974147 in /usr/bin/clickhouse 16. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 17. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 18. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:18:25.677280 [ 1133 ] {c8077ba4-3a27-46bf-b8a9-d31fab422cc1} executeQuery: Code: 117. DB::Exception: Incorrect size (0) in groupBitmap.: While processing CAST('\0', 'AggregateFunction(groupBitmap, UInt32)'). (INCORRECT_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35730) (comment: 02688_aggregate_states.sql) (in query: SELECT '\x01\x00'::AggregateFunction(groupBitmap, UInt32);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [35]) @ 0x000000000b1fc59e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupBitmapData.h:128: _ZN2DB25RoaringBitmapWithSmallSetIjLDu32EE4readERNS_10ReadBufferE @ 0x0000000017589612 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionGroupBitmap.h:50: DB::AggregateFunctionBitmap>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017587c7b in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:18:25.678203 [ 1133 ] {c8077ba4-3a27-46bf-b8a9-d31fab422cc1} TCPHandler: Code: 117. DB::Exception: Incorrect size (0) in groupBitmap.: While processing CAST('\0', 'AggregateFunction(groupBitmap, UInt32)'). (INCORRECT_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [35]) @ 0x000000000b1fc59e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupBitmapData.h:128: _ZN2DB25RoaringBitmapWithSmallSetIjLDu32EE4readERNS_10ReadBufferE @ 0x0000000017589612 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionGroupBitmap.h:50: DB::AggregateFunctionBitmap>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017587c7b in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:18:25.779967 [ 1133 ] {78b155b6-e078-470c-962e-28298727c296} executeQuery: std::exception. Code: 1001, type: std::runtime_error, e.what() = ran out of bytes (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35730) (comment: 02688_aggregate_states.sql) (in query: SELECT '\x01\x01\x01'::AggregateFunction(groupBitmap, UInt64);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/contrib/llvm-project/libcxx/src/support/runtime/stdexcept_default.ipp:35: std::runtime_error::runtime_error(char const*) @ 0x000000002885773d in /usr/bin/clickhouse 3. /build/contrib/croaring/cpp/roaring64map.hh:1167: roaring::Roaring64Map::readSafe(char const*, unsigned long) @ 0x000000001758c370 in /usr/bin/clickhouse 4. /build/src/AggregateFunctions/AggregateFunctionGroupBitmapData.h:137: _ZN2DB25RoaringBitmapWithSmallSetImLDu32EE4readERNS_10ReadBufferE @ 0x000000001758bfec in /usr/bin/clickhouse 5. /build/src/AggregateFunctions/AggregateFunctionGroupBitmap.h:50: DB::AggregateFunctionBitmap>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001758a1fb in /usr/bin/clickhouse 6. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:18:25.781452 [ 1133 ] {78b155b6-e078-470c-962e-28298727c296} TCPHandler: Code: 1001. DB::Exception: std::runtime_error: ran out of bytes. (STD_EXCEPTION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/contrib/llvm-project/libcxx/src/support/runtime/stdexcept_default.ipp:35: std::runtime_error::runtime_error(char const*) @ 0x000000002885773d in /usr/bin/clickhouse 3. /build/contrib/croaring/cpp/roaring64map.hh:1167: roaring::Roaring64Map::readSafe(char const*, unsigned long) @ 0x000000001758c370 in /usr/bin/clickhouse 4. /build/src/AggregateFunctions/AggregateFunctionGroupBitmapData.h:137: _ZN2DB25RoaringBitmapWithSmallSetImLDu32EE4readERNS_10ReadBufferE @ 0x000000001758bfec in /usr/bin/clickhouse 5. /build/src/AggregateFunctions/AggregateFunctionGroupBitmap.h:50: DB::AggregateFunctionBitmap>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001758a1fb in /usr/bin/clickhouse 6. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:18:25.901113 [ 1133 ] {cdf0d0b9-a909-469c-a149-b43386a3e138} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 2. Bytes expected: 32.: While processing CAST('\0\r', 'AggregateFunction(topK, UInt256)'). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35730) (comment: 02688_aggregate_states.sql) (in query: SELECT '\x02\x00\x0d'::AggregateFunction(topK, UInt256);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:117: void DB::readPODBinary>(wide::integer<256ul, unsigned int>&, DB::ReadBuffer&) @ 0x0000000013db67a2 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:1099: void DB::readBinary>(wide::integer<256ul, unsigned int>&, DB::ReadBuffer&) @ 0x0000000013db675d in /usr/bin/clickhouse 9. /build/src/Common/SpaceSaving.h:106: DB::SpaceSaving, HashCRC32>>::Counter::read(DB::ReadBuffer&) @ 0x0000000017466f81 in /usr/bin/clickhouse 10. /build/src/Common/SpaceSaving.h:294: DB::SpaceSaving, HashCRC32>>::read(DB::ReadBuffer&) @ 0x0000000017466e68 in /usr/bin/clickhouse 11. /build/src/AggregateFunctions/AggregateFunctionTopK.h:92: DB::AggregateFunctionTopK, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001745ad58 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 22. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:18:25.902471 [ 1133 ] {cdf0d0b9-a909-469c-a149-b43386a3e138} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 2. Bytes expected: 32.: While processing CAST('\0\r', 'AggregateFunction(topK, UInt256)'). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:117: void DB::readPODBinary>(wide::integer<256ul, unsigned int>&, DB::ReadBuffer&) @ 0x0000000013db67a2 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:1099: void DB::readBinary>(wide::integer<256ul, unsigned int>&, DB::ReadBuffer&) @ 0x0000000013db675d in /usr/bin/clickhouse 9. /build/src/Common/SpaceSaving.h:106: DB::SpaceSaving, HashCRC32>>::Counter::read(DB::ReadBuffer&) @ 0x0000000017466f81 in /usr/bin/clickhouse 10. /build/src/Common/SpaceSaving.h:294: DB::SpaceSaving, HashCRC32>>::read(DB::ReadBuffer&) @ 0x0000000017466e68 in /usr/bin/clickhouse 11. /build/src/AggregateFunctions/AggregateFunctionTopK.h:92: DB::AggregateFunctionTopK, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001745ad58 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 22. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:18:25.997902 [ 1133 ] {46b7a504-8ef4-4491-b1f6-ccb62498e964} executeQuery: Code: 128. DB::Exception: The size of serialized hash table is suspiciously large: 4502748553425166142: While processing CAST(unhex('bebebebebebebebebebebebebebebebebebebebebebebebebebebebebebebe0c0c3131313131313131313131313173290aee00b300'), 'AggregateFunction(minDistinct, Int8)'). (TOO_LARGE_ARRAY_SIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35730) (comment: 02688_aggregate_states.sql) (in query: SELECT unhex('bebebebebebebebebebebebebebebebebebebebebebebebebebebebebebebe0c0c3131313131313131313131313173290aee00b300')::AggregateFunction(minDistinct, Int8);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Common/HashTable/HashTable.h:1327: HashTable, HashTableNoState>, DefaultHash, HashTableGrower<4ul>, AllocatorWithStackMemory, 16ul, 1ul>>::read(DB::ReadBuffer&) @ 0x0000000014620cbc in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionDistinct.h:47: DB::AggregateFunctionDistinctSingleNumericData::deserialize(DB::ReadBuffer&, DB::Arena*) @ 0x0000000017b0e781 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionDistinct.h:198: DB::AggregateFunctionDistinct>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017b0c73b in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:18:26.137920 [ 5967 ] {b21c3469-018f-4b5e-bb0d-2be7686a6d23} executeQuery: Code: 128. DB::Exception: Suspiciously many rows in Native format: 2178749300044435230: While executing Native. (TOO_LARGE_ARRAY_SIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35762) (comment: 02687_native_fuzz.sql) (in query: -- It correctly throws exception about incorrect data instead of a low-level exception about the allocator: SELECT * FROM format(Native, 'WatchID Int64, JavaEnable Int16, UTMCaTitle String, GoodEvent Int16, EventTime DateTime, EventDate Date, Countem String, FromTag String, HasGCLID Int16, RefererHash Int64, URLHash Int64, CLID Int16', $$ žžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžžž‚Œ'ÕãûX+‚Œ'ÕãûX+‚Œ'ÕãûURLHashInt64Í|3úÐb.‹Í|3úÐb.‹Í|3úÐb.‹Í|3úÐb.‹Ž oâïòeý€ à#â\X-h³ýX vÀvÍÀ‰Çh˜´9›DÍ|3úÐb.‹CLIDInt32ä$$);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Formats/NativeReader.cpp:144: DB::NativeReader::read() @ 0x000000001e62765c in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/NativeFormat.cpp:42: DB::NativeInputFormat::generate() @ 0x000000001e896f31 in /usr/bin/clickhouse 8. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 10. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e68d821 in /usr/bin/clickhouse 16. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9cf69a in /usr/bin/clickhouse 17. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9cf985 in /usr/bin/clickhouse 18. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 19. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 20. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:18:26.137942 [ 1133 ] {46b7a504-8ef4-4491-b1f6-ccb62498e964} TCPHandler: Code: 128. DB::Exception: The size of serialized hash table is suspiciously large: 4502748553425166142: While processing CAST(unhex('bebebebebebebebebebebebebebebebebebebebebebebebebebebebebebebe0c0c3131313131313131313131313173290aee00b300'), 'AggregateFunction(minDistinct, Int8)'). (TOO_LARGE_ARRAY_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Common/HashTable/HashTable.h:1327: HashTable, HashTableNoState>, DefaultHash, HashTableGrower<4ul>, AllocatorWithStackMemory, 16ul, 1ul>>::read(DB::ReadBuffer&) @ 0x0000000014620cbc in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionDistinct.h:47: DB::AggregateFunctionDistinctSingleNumericData::deserialize(DB::ReadBuffer&, DB::Arena*) @ 0x0000000017b0e781 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionDistinct.h:198: DB::AggregateFunctionDistinct>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017b0c73b in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:18:26.138835 [ 5967 ] {b21c3469-018f-4b5e-bb0d-2be7686a6d23} TCPHandler: Code: 128. DB::Exception: Suspiciously many rows in Native format: 2178749300044435230: While executing Native. (TOO_LARGE_ARRAY_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Formats/NativeReader.cpp:144: DB::NativeReader::read() @ 0x000000001e62765c in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/NativeFormat.cpp:42: DB::NativeInputFormat::generate() @ 0x000000001e896f31 in /usr/bin/clickhouse 8. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 10. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e68d821 in /usr/bin/clickhouse 16. /build/src/TableFunctions/TableFunctionFormat.cpp:87: DB::TableFunctionFormat::parseData(DB::ColumnsDescription, std::shared_ptr) const @ 0x000000001a9cf69a in /usr/bin/clickhouse 17. /build/src/TableFunctions/TableFunctionFormat.cpp:101: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9cf985 in /usr/bin/clickhouse 18. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 19. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 20. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:18:26.234048 [ 1133 ] {3e94c487-dd07-4d9e-9b99-5f7f77900328} executeQuery: Code: 117. DB::Exception: The number of elements 2816 for the 'tiny' kind of quantileTiming is exceeding the maximum of 31: While processing CAST(unhex('01000b0b0b0d0d0d0d7175616e74696c6554696d696e672c20496e743332000300'), 'AggregateFunction(quantileTiming, Int32)'). (INCORRECT_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35730) (comment: 02688_aggregate_states.sql) (in query: SELECT unhex('01000b0b0b0d0d0d0d7175616e74696c6554696d696e672c20496e743332000300')::AggregateFunction(quantileTiming, Int32);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned short&, int&&) @ 0x0000000014bfedcc in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/QuantileTiming.h:90: DB::detail::QuantileTimingTiny::deserialize(DB::ReadBuffer&) @ 0x0000000014bfe91d in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileTiming.h:714: DB::QuantileTiming::deserialize(DB::ReadBuffer&) @ 0x0000000014c16540 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:193: DB::AggregateFunctionQuantile, DB::NameQuantileTiming, false, float, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014c14557 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:18:26.235085 [ 1133 ] {3e94c487-dd07-4d9e-9b99-5f7f77900328} TCPHandler: Code: 117. DB::Exception: The number of elements 2816 for the 'tiny' kind of quantileTiming is exceeding the maximum of 31: While processing CAST(unhex('01000b0b0b0d0d0d0d7175616e74696c6554696d696e672c20496e743332000300'), 'AggregateFunction(quantileTiming, Int32)'). (INCORRECT_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned short&, int&&) @ 0x0000000014bfedcc in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/QuantileTiming.h:90: DB::detail::QuantileTimingTiny::deserialize(DB::ReadBuffer&) @ 0x0000000014bfe91d in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileTiming.h:714: DB::QuantileTiming::deserialize(DB::ReadBuffer&) @ 0x0000000014c16540 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:193: DB::AggregateFunctionQuantile, DB::NameQuantileTiming, false, float, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014c14557 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:18:26.244963 [ 1133 ] {81c9eba6-019b-4207-b4d7-a5e502856b37} executeQuery: Code: 117. DB::Exception: The number of elements 256 for the 'tiny' kind of quantileTiming is exceeding the maximum of 31: While processing CAST(unhex('010001'), 'AggregateFunction(quantileTiming, Int32)'). (INCORRECT_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35730) (comment: 02688_aggregate_states.sql) (in query: SELECT unhex('010001')::AggregateFunction(quantileTiming, Int32);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned short&, int&&) @ 0x0000000014bfedcc in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/QuantileTiming.h:90: DB::detail::QuantileTimingTiny::deserialize(DB::ReadBuffer&) @ 0x0000000014bfe91d in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileTiming.h:714: DB::QuantileTiming::deserialize(DB::ReadBuffer&) @ 0x0000000014c16540 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:193: DB::AggregateFunctionQuantile, DB::NameQuantileTiming, false, float, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014c14557 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:18:26.245912 [ 1133 ] {81c9eba6-019b-4207-b4d7-a5e502856b37} TCPHandler: Code: 117. DB::Exception: The number of elements 256 for the 'tiny' kind of quantileTiming is exceeding the maximum of 31: While processing CAST(unhex('010001'), 'AggregateFunction(quantileTiming, Int32)'). (INCORRECT_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned short&, int&&) @ 0x0000000014bfedcc in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/QuantileTiming.h:90: DB::detail::QuantileTimingTiny::deserialize(DB::ReadBuffer&) @ 0x0000000014bfe91d in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileTiming.h:714: DB::QuantileTiming::deserialize(DB::ReadBuffer&) @ 0x0000000014c16540 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:193: DB::AggregateFunctionQuantile, DB::NameQuantileTiming, false, float, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014c14557 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:18:26.339270 [ 1133 ] {2f99a931-8249-4a91-97ec-53a47ba6450e} executeQuery: Code: 128. DB::Exception: Suspiciously large array size (8753160913407246346) in -ForEach aggregate function: While processing CAST(unhex('0a00797979797979797979790a0a6e'), 'AggregateFunction(minForEach, Ring)'). (TOO_LARGE_ARRAY_SIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35730) (comment: 02688_aggregate_states.sql) (in query: SELECT unhex('0a00797979797979797979790a0a6e')::AggregateFunction(minForEach, Ring);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionForEach.h:74: DB::AggregateFunctionForEach::ensureAggregateData(char*, unsigned long, DB::Arena&) const @ 0x0000000017acae24 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionForEach.h:262: DB::AggregateFunctionForEach::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ac9581 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:18:26.343316 [ 1133 ] {2f99a931-8249-4a91-97ec-53a47ba6450e} TCPHandler: Code: 128. DB::Exception: Suspiciously large array size (8753160913407246346) in -ForEach aggregate function: While processing CAST(unhex('0a00797979797979797979790a0a6e'), 'AggregateFunction(minForEach, Ring)'). (TOO_LARGE_ARRAY_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionForEach.h:74: DB::AggregateFunctionForEach::ensureAggregateData(char*, unsigned long, DB::Arena&) const @ 0x0000000017acae24 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionForEach.h:262: DB::AggregateFunctionForEach::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ac9581 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:18:28.256076 [ 1133 ] {4a46ce05-7ba7-468f-ae39-25b16e8fe6c9} executeQuery: Code: 59. DB::Exception: Illegal type Float64 of column modulo(sipHash64(sipHash64(p, toString(toDate(p))), toString(toDate(p))), -0.) for filter. Must be UInt8 or Nullable(UInt8). (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35776) (comment: 02680_illegal_type_of_filter_projection.sql) (in query: SELECT count() FROM test_tuple PREWHERE sipHash64(sipHash64(p, toString(toDate(p))), toString(toDate(p))) % -0. WHERE i > NULL settings optimize_trivial_count_query=0, optimize_use_implicit_projections=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:91: DB::QueryPlanOptimizations::findInOutputs(DB::ActionsDAG&, String const&, bool) @ 0x000000001ef0f897 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:134: DB::QueryPlanOptimizations::QueryDAG::buildImpl(DB::QueryPlan::Node&, std::vector>&) @ 0x000000001ef0fcfc in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:147: DB::QueryPlanOptimizations::QueryDAG::buildImpl(DB::QueryPlan::Node&, std::vector>&) @ 0x000000001ef0fd76 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:147: DB::QueryPlanOptimizations::QueryDAG::buildImpl(DB::QueryPlan::Node&, std::vector>&) @ 0x000000001ef0fd76 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:181: DB::QueryPlanOptimizations::QueryDAG::build(DB::QueryPlan::Node&) @ 0x000000001ef0ff25 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/Optimizations/optimizeUseAggregateProjection.cpp:460: DB::QueryPlanOptimizations::getAggregateProjectionCandidates(DB::QueryPlan::Node&, DB::AggregatingStep&, DB::ReadFromMergeTree&, std::shared_ptr, std::equal_to, std::allocator>>> const&, bool) @ 0x000000001eefd66a in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/Optimizations/optimizeUseAggregateProjection.cpp:570: DB::QueryPlanOptimizations::optimizeUseAggregateProjections(DB::QueryPlan::Node&, std::list>&, bool) @ 0x000000001eefe528 in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:135: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001eec07c1 in /usr/bin/clickhouse 14. /build/src/Processors/QueryPlan/QueryPlan.cpp:483: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001ee0eb3d in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/QueryPlan.cpp:169: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e657 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:18:28.257003 [ 1133 ] {4a46ce05-7ba7-468f-ae39-25b16e8fe6c9} TCPHandler: Code: 59. DB::Exception: Illegal type Float64 of column modulo(sipHash64(sipHash64(p, toString(toDate(p))), toString(toDate(p))), -0.) for filter. Must be UInt8 or Nullable(UInt8). (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:91: DB::QueryPlanOptimizations::findInOutputs(DB::ActionsDAG&, String const&, bool) @ 0x000000001ef0f897 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:134: DB::QueryPlanOptimizations::QueryDAG::buildImpl(DB::QueryPlan::Node&, std::vector>&) @ 0x000000001ef0fcfc in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:147: DB::QueryPlanOptimizations::QueryDAG::buildImpl(DB::QueryPlan::Node&, std::vector>&) @ 0x000000001ef0fd76 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:147: DB::QueryPlanOptimizations::QueryDAG::buildImpl(DB::QueryPlan::Node&, std::vector>&) @ 0x000000001ef0fd76 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/Optimizations/projectionsCommon.cpp:181: DB::QueryPlanOptimizations::QueryDAG::build(DB::QueryPlan::Node&) @ 0x000000001ef0ff25 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/Optimizations/optimizeUseAggregateProjection.cpp:460: DB::QueryPlanOptimizations::getAggregateProjectionCandidates(DB::QueryPlan::Node&, DB::AggregatingStep&, DB::ReadFromMergeTree&, std::shared_ptr, std::equal_to, std::allocator>>> const&, bool) @ 0x000000001eefd66a in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/Optimizations/optimizeUseAggregateProjection.cpp:570: DB::QueryPlanOptimizations::optimizeUseAggregateProjections(DB::QueryPlan::Node&, std::list>&, bool) @ 0x000000001eefe528 in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:135: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001eec07c1 in /usr/bin/clickhouse 14. /build/src/Processors/QueryPlan/QueryPlan.cpp:483: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001ee0eb3d in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/QueryPlan.cpp:169: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e657 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:18:33.614334 [ 1132 ] {ffec1948-76e4-484f-ab3e-35319a353be2} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42832) (in query: select _path, _file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:18:33.615121 [ 1132 ] {ffec1948-76e4-484f-ab3e-35319a353be2} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:18:34.692214 [ 1132 ] {2613bafe-839e-4cb9-a2fc-80d03c1044b3} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42850) (in query: select _path, _file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:18:34.692935 [ 1132 ] {2613bafe-839e-4cb9-a2fc-80d03c1044b3} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:18:35.334247 [ 1132 ] {8d670414-a77e-40d8-b8c6-5a3ac335389b} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42874) (in query: select _path, _file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:18:35.335120 [ 1132 ] {8d670414-a77e-40d8-b8c6-5a3ac335389b} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:18:42.961208 [ 1080 ] {da195bb4-bfa8-45e1-86a1-37b944ec57e7} executeQuery: Code: 36. DB::Exception: Absolute path in the 'output_format_schema' setting is prohibited: /tmp/schema.proto. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42596) (comment: 02817_structure_to_schema.sh) (in query: insert into function file('02817_structure_to_schema_test_2ehi048o-data', Protobuf) select * from numbers(10) settings output_format_schema='/tmp/schema.proto'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Formats/FormatSchemaInfo.cpp:130: DB::MaybeAutogeneratedFormatSchemaInfo::MaybeAutogeneratedFormatSchemaInfo(DB::FormatSettings const&, String const&, DB::Block const&, bool) @ 0x000000001e820d39 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp:63: DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001eab91c3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eab910d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eab90ad in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eab904d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::__call_impl (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eab8ff5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e61a30e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e61136d in /usr/bin/clickhouse 14. /build/src/Formats/FormatFactory.cpp:475: DB::FormatFactory::getOutputFormat(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e608473 in /usr/bin/clickhouse 15. /build/src/Formats/FormatFactory.cpp:451: DB::FormatFactory::getOutputFormatParallelIfPossible(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e607db8 in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1574: DB::StorageFileSink::initialize() @ 0x000000001d6a628d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFile.cpp:1553: DB::StorageFileSink::StorageFileSink(std::shared_ptr const&, String const&, std::unique_lock&&, int, bool, String, String const&, DB::CompressionMethod, std::optional const&, String, std::shared_ptr, int) @ 0x000000001d6a7b34 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFileSink* std::construct_at[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, DB::StorageFileSink*>(DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a7777 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void, void>(std::allocator&, DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a75c2 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&>(std::allocator, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a74b4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::allocator const&, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a731f in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d699f08 in /usr/bin/clickhouse 23. /build/src/Storages/StorageFile.cpp:1813: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691c52 in /usr/bin/clickhouse 24. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:18:42.963064 [ 1080 ] {da195bb4-bfa8-45e1-86a1-37b944ec57e7} TCPHandler: Code: 36. DB::Exception: Absolute path in the 'output_format_schema' setting is prohibited: /tmp/schema.proto. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Formats/FormatSchemaInfo.cpp:130: DB::MaybeAutogeneratedFormatSchemaInfo::MaybeAutogeneratedFormatSchemaInfo(DB::FormatSettings const&, String const&, DB::Block const&, bool) @ 0x000000001e820d39 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp:63: DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001eab91c3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eab910d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eab90ad in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eab904d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::__call_impl (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eab8ff5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e61a30e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e61136d in /usr/bin/clickhouse 14. /build/src/Formats/FormatFactory.cpp:475: DB::FormatFactory::getOutputFormat(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e608473 in /usr/bin/clickhouse 15. /build/src/Formats/FormatFactory.cpp:451: DB::FormatFactory::getOutputFormatParallelIfPossible(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e607db8 in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1574: DB::StorageFileSink::initialize() @ 0x000000001d6a628d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFile.cpp:1553: DB::StorageFileSink::StorageFileSink(std::shared_ptr const&, String const&, std::unique_lock&&, int, bool, String, String const&, DB::CompressionMethod, std::optional const&, String, std::shared_ptr, int) @ 0x000000001d6a7b34 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFileSink* std::construct_at[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, DB::StorageFileSink*>(DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a7777 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void, void>(std::allocator&, DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a75c2 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&>(std::allocator, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a74b4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::allocator const&, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a731f in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d699f08 in /usr/bin/clickhouse 23. /build/src/Storages/StorageFile.cpp:1813: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691c52 in /usr/bin/clickhouse 24. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:18:43.480111 [ 1132 ] {b372955a-1971-4e13-bcd6-adedbf8506b5} executeQuery: Code: 36. DB::Exception: Last argument (count) for function widthBucket cannot be 0.: while executing 'FUNCTION widthBucket(operand : 1, low : 2, high : 3, count : 0) -> widthBucket(operand, low, high, count) UInt64 : 4'. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42612) (comment: 02581_width_bucket.sql) (in query: -- zero is not valid for count SELECT operand, low, high, count, WIDTH_BUCKET(operand, low, high, count) FROM mytable WHERE count = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:84: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, unsigned long) const @ 0x000000001282149c in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned long DB::FunctionWidthBucket::calculate(double, double, double, unsigned long) const @ 0x00000000128211c5 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x000000001281ebb0 in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:242: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001281c280 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 17. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 18. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 2024.05.01 13:18:43.481661 [ 1132 ] {b372955a-1971-4e13-bcd6-adedbf8506b5} TCPHandler: Code: 36. DB::Exception: Last argument (count) for function widthBucket cannot be 0.: while executing 'FUNCTION widthBucket(operand : 1, low : 2, high : 3, count : 0) -> widthBucket(operand, low, high, count) UInt64 : 4'. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:84: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, unsigned long) const @ 0x000000001282149c in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned long DB::FunctionWidthBucket::calculate(double, double, double, unsigned long) const @ 0x00000000128211c5 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x000000001281ebb0 in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:242: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001281c280 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 17. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 18. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 2024.05.01 13:18:43.599364 [ 1132 ] {2d3b250d-3a60-4bd1-b4a7-32e632244b0d} executeQuery: Code: 36. DB::Exception: The first three arguments (operand, low, high) cannot be NaN in function widthBucket: While processing widthBucket(0, 10, nan, 10). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42612) (comment: 02581_width_bucket.sql) (in query: -- operand, low and high cannot be NaN SELECT WIDTH_BUCKET(0, 10, NaN, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:88: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001281f6ad in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001281f207 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x000000001281d04a in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001281c232 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:18:43.600672 [ 1132 ] {2d3b250d-3a60-4bd1-b4a7-32e632244b0d} TCPHandler: Code: 36. DB::Exception: The first three arguments (operand, low, high) cannot be NaN in function widthBucket: While processing widthBucket(0, 10, nan, 10). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:88: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001281f6ad in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001281f207 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x000000001281d04a in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001281c232 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:18:43.611333 [ 1132 ] {0a959f33-726f-452c-abee-0a8b14f07f74} executeQuery: Code: 36. DB::Exception: The first three arguments (operand, low, high) cannot be NaN in function widthBucket: While processing widthBucket(nan, 0, 10, 10). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42612) (comment: 02581_width_bucket.sql) (in query: SELECT WIDTH_BUCKET(NaN, 0, 10, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:88: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001281f6ad in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001281f207 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x000000001281d04a in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001281c232 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:18:43.612168 [ 1132 ] {0a959f33-726f-452c-abee-0a8b14f07f74} TCPHandler: Code: 36. DB::Exception: The first three arguments (operand, low, high) cannot be NaN in function widthBucket: While processing widthBucket(nan, 0, 10, 10). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:88: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001281f6ad in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001281f207 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x000000001281d04a in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001281c232 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:18:43.621540 [ 1132 ] {10a28a01-b682-4f21-a5ee-f00bd74d5193} executeQuery: Code: 36. DB::Exception: The first three arguments (operand, low, high) cannot be NaN in function widthBucket: While processing widthBucket(0, nan, 10, 10). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42612) (comment: 02581_width_bucket.sql) (in query: SELECT WIDTH_BUCKET(0, NaN, 10, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:88: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001281f6ad in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001281f207 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x000000001281d04a in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001281c232 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:18:43.622233 [ 1132 ] {10a28a01-b682-4f21-a5ee-f00bd74d5193} TCPHandler: Code: 36. DB::Exception: The first three arguments (operand, low, high) cannot be NaN in function widthBucket: While processing widthBucket(0, nan, 10, 10). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:88: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001281f6ad in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001281f207 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x000000001281d04a in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001281c232 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:18:43.731299 [ 1132 ] {00a1434a-cac9-420c-9ca5-874fc0e8e9a3} executeQuery: Code: 36. DB::Exception: The second and third arguments (low, high) cannot be Inf function widthBucket: While processing widthBucket(1, -inf, 10, 10). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42612) (comment: 02581_width_bucket.sql) (in query: -- low and high cannot be Inf SELECT WIDTH_BUCKET(1, -Inf, 10, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:94: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001281f7ed in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001281f207 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x000000001281d04a in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001281c232 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:18:43.732147 [ 1132 ] {00a1434a-cac9-420c-9ca5-874fc0e8e9a3} TCPHandler: Code: 36. DB::Exception: The second and third arguments (low, high) cannot be Inf function widthBucket: While processing widthBucket(1, -inf, 10, 10). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:94: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001281f7ed in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001281f207 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x000000001281d04a in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001281c232 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:18:43.742257 [ 1132 ] {1a0ec198-7d1f-44c1-b882-c3419d94f55a} executeQuery: Code: 36. DB::Exception: The second and third arguments (low, high) cannot be Inf function widthBucket: While processing widthBucket(1, 0, inf, 10). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42612) (comment: 02581_width_bucket.sql) (in query: -- low and high cannot be Inf SELECT WIDTH_BUCKET(1, 0, Inf, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:94: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001281f7ed in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001281f207 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x000000001281d04a in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001281c232 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:18:43.743012 [ 1132 ] {1a0ec198-7d1f-44c1-b882-c3419d94f55a} TCPHandler: Code: 36. DB::Exception: The second and third arguments (low, high) cannot be Inf function widthBucket: While processing widthBucket(1, 0, inf, 10). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:94: std::optional DB::FunctionWidthBucket::checkArguments(double, double, double, char8_t) const @ 0x000000001281f7ed in /usr/bin/clickhouse 7. /build/src/Functions/widthBucket.cpp:110: unsigned short DB::FunctionWidthBucket::calculate(double, double, double, char8_t) const @ 0x000000001281f207 in /usr/bin/clickhouse 8. /build/src/Functions/widthBucket.cpp:173: COW::immutable_ptr DB::FunctionWidthBucket::executeForResultType(std::vector> const&, unsigned long) const @ 0x000000001281d04a in /usr/bin/clickhouse 9. /build/src/Functions/widthBucket.cpp:236: DB::FunctionWidthBucket::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001281c232 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:18:44.010301 [ 1132 ] {4f48c99e-8ac8-4946-aacc-c6e9914f71e3} executeQuery: Code: 43. DB::Exception: The last argument of function widthBucket must be UInt8, UInt16, UInt32 or UInt64, found Int8.: While processing widthBucket(1, 2, 3, -1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42612) (comment: 02581_width_bucket.sql) (in query: SELECT WIDTH_BUCKET(1, 2, 3, -1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:205: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001281c5c0 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:18:44.011443 [ 1132 ] {4f48c99e-8ac8-4946-aacc-c6e9914f71e3} TCPHandler: Code: 43. DB::Exception: The last argument of function widthBucket must be UInt8, UInt16, UInt32 or UInt64, found Int8.: While processing widthBucket(1, 2, 3, -1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:205: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001281c5c0 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:18:44.019647 [ 1132 ] {22b0f432-b360-491e-9bec-0ec1c367ec5a} executeQuery: Code: 43. DB::Exception: The last argument of function widthBucket must be UInt8, UInt16, UInt32 or UInt64, found Float64.: While processing widthBucket(1, 2, 3, 1.3). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42612) (comment: 02581_width_bucket.sql) (in query: SELECT WIDTH_BUCKET(1, 2, 3, 1.3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:205: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001281c5c0 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:18:44.020454 [ 1132 ] {22b0f432-b360-491e-9bec-0ec1c367ec5a} TCPHandler: Code: 43. DB::Exception: The last argument of function widthBucket must be UInt8, UInt16, UInt32 or UInt64, found Float64.: While processing widthBucket(1, 2, 3, 1.3). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:205: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001281c5c0 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:18:44.158107 [ 1132 ] {9708c1d0-14b3-4df7-97ef-1d295c75f68c} executeQuery: Code: 43. DB::Exception: The first three arguments of function widthBucket must be a Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Float32 or Float64.: While processing widthBucket('a', 1, 2, 3). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42612) (comment: 02581_width_bucket.sql) (in query: SELECT WIDTH_BUCKET('a', 1, 2, 3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:196: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001281c41f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:18:44.159113 [ 1132 ] {9708c1d0-14b3-4df7-97ef-1d295c75f68c} TCPHandler: Code: 43. DB::Exception: The first three arguments of function widthBucket must be a Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Float32 or Float64.: While processing widthBucket('a', 1, 2, 3). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:196: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001281c41f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:18:44.167766 [ 1132 ] {803ddd5a-0e0a-4c86-9133-e583522a2b4b} executeQuery: Code: 43. DB::Exception: The first three arguments of function widthBucket must be a Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Float32 or Float64.: While processing widthBucket(1, toUInt128(42), 2, 3). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42612) (comment: 02581_width_bucket.sql) (in query: SELECT WIDTH_BUCKET(1, toUInt128(42), 2, 3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:196: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001281c41f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:18:44.168582 [ 1132 ] {803ddd5a-0e0a-4c86-9133-e583522a2b4b} TCPHandler: Code: 43. DB::Exception: The first three arguments of function widthBucket must be a Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Float32 or Float64.: While processing widthBucket(1, toUInt128(42), 2, 3). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:196: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001281c41f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:18:44.176808 [ 1132 ] {97cf2ddb-d328-4481-85e8-e0719178bf4d} executeQuery: Code: 43. DB::Exception: The first three arguments of function widthBucket must be a Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Float32 or Float64.: While processing widthBucket(1, 2, toInt128(42), 3). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42612) (comment: 02581_width_bucket.sql) (in query: SELECT WIDTH_BUCKET(1, 2, toInt128(42), 3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:196: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001281c41f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:18:44.177581 [ 1132 ] {97cf2ddb-d328-4481-85e8-e0719178bf4d} TCPHandler: Code: 43. DB::Exception: The first three arguments of function widthBucket must be a Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Float32 or Float64.: While processing widthBucket(1, 2, toInt128(42), 3). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:196: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001281c41f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:18:44.185875 [ 1132 ] {42b7de5e-288b-48f9-93f3-289e830ceab9} executeQuery: Code: 43. DB::Exception: The last argument of function widthBucket must be UInt8, UInt16, UInt32 or UInt64, found Int256.: While processing widthBucket(1, 2, 3, toInt256(42)). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42612) (comment: 02581_width_bucket.sql) (in query: SELECT WIDTH_BUCKET(1, 2, 3, toInt256(42));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:205: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001281c5c0 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:18:44.186648 [ 1132 ] {42b7de5e-288b-48f9-93f3-289e830ceab9} TCPHandler: Code: 43. DB::Exception: The last argument of function widthBucket must be UInt8, UInt16, UInt32 or UInt64, found Int256.: While processing widthBucket(1, 2, 3, toInt256(42)). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/widthBucket.cpp:205: DB::FunctionWidthBucket::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001281c5c0 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:18:45.024750 [ 6164 ] {fafa8142-1c47-459d-8755-a2efff1e1bfb} executeQuery: Code: 36. DB::Exception: Path in the 'format_schema' setting shouldn't go outside the 'format_schema_path' directory: /var/lib/clickhouse/format_schemas/ (../../schema.proto not in /var/lib/clickhouse/format_schemas/). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42658) (comment: 02817_structure_to_schema.sh) (in query: insert into function file('02817_structure_to_schema_test_2ehi048o-data', Protobuf) select * from numbers(10) settings output_format_schema='../../schema.proto'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Formats/FormatSchemaInfo.cpp:135: DB::MaybeAutogeneratedFormatSchemaInfo::MaybeAutogeneratedFormatSchemaInfo(DB::FormatSettings const&, String const&, DB::Block const&, bool) @ 0x000000001e821111 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp:63: DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001eab91c3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eab910d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eab90ad in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eab904d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::__call_impl (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eab8ff5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e61a30e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e61136d in /usr/bin/clickhouse 14. /build/src/Formats/FormatFactory.cpp:475: DB::FormatFactory::getOutputFormat(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e608473 in /usr/bin/clickhouse 15. /build/src/Formats/FormatFactory.cpp:451: DB::FormatFactory::getOutputFormatParallelIfPossible(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e607db8 in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1574: DB::StorageFileSink::initialize() @ 0x000000001d6a628d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFile.cpp:1553: DB::StorageFileSink::StorageFileSink(std::shared_ptr const&, String const&, std::unique_lock&&, int, bool, String, String const&, DB::CompressionMethod, std::optional const&, String, std::shared_ptr, int) @ 0x000000001d6a7b34 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFileSink* std::construct_at[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, DB::StorageFileSink*>(DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a7777 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void, void>(std::allocator&, DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a75c2 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&>(std::allocator, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a74b4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::allocator const&, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a731f in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d699f08 in /usr/bin/clickhouse 23. /build/src/Storages/StorageFile.cpp:1813: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691c52 in /usr/bin/clickhouse 24. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:18:45.026927 [ 6164 ] {fafa8142-1c47-459d-8755-a2efff1e1bfb} TCPHandler: Code: 36. DB::Exception: Path in the 'format_schema' setting shouldn't go outside the 'format_schema_path' directory: /var/lib/clickhouse/format_schemas/ (../../schema.proto not in /var/lib/clickhouse/format_schemas/). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Formats/FormatSchemaInfo.cpp:135: DB::MaybeAutogeneratedFormatSchemaInfo::MaybeAutogeneratedFormatSchemaInfo(DB::FormatSettings const&, String const&, DB::Block const&, bool) @ 0x000000001e821111 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp:63: DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001eab91c3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eab910d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerOutputFormatProtobuf(DB::FormatFactory&)::$_0&, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eab90ad in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eab904d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::__call_impl (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) @ 0x000000001eab8ff5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e61a30e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&)>::operator()(DB::WriteBuffer&, DB::Block const&, DB::FormatSettings const&) const @ 0x000000001e61136d in /usr/bin/clickhouse 14. /build/src/Formats/FormatFactory.cpp:475: DB::FormatFactory::getOutputFormat(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e608473 in /usr/bin/clickhouse 15. /build/src/Formats/FormatFactory.cpp:451: DB::FormatFactory::getOutputFormatParallelIfPossible(String const&, DB::WriteBuffer&, DB::Block const&, std::shared_ptr, std::optional const&) const @ 0x000000001e607db8 in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1574: DB::StorageFileSink::initialize() @ 0x000000001d6a628d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFile.cpp:1553: DB::StorageFileSink::StorageFileSink(std::shared_ptr const&, String const&, std::unique_lock&&, int, bool, String, String const&, DB::CompressionMethod, std::optional const&, String, std::shared_ptr, int) @ 0x000000001d6a7b34 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFileSink* std::construct_at[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, DB::StorageFileSink*>(DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a7777 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void, void>(std::allocator&, DB::StorageFileSink*, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a75c2 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&>(std::allocator, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a74b4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::allocator const&, std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d6a731f in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, String, std::unique_lock, int&, bool&, String&, String&, DB::CompressionMethod, std::optional&, String&, std::shared_ptr&, int&, void>(std::shared_ptr const&, String&&, std::unique_lock&&, int&, bool&, String&, String&, DB::CompressionMethod&&, std::optional&, String&, std::shared_ptr&, int&) @ 0x000000001d699f08 in /usr/bin/clickhouse 23. /build/src/Storages/StorageFile.cpp:1813: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691c52 in /usr/bin/clickhouse 24. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:18:49.024661 [ 1080 ] {a5e37eae-0bea-44a5-bc1c-68104a180cd9} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'json' of function JSONArrayLength, expected String, got UInt8: While processing JSONArrayLength(2). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55678) (comment: 02568_json_array_length.sql) (in query: select JSONArrayLength(2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/JSONArrayLength.cpp:51: DB::(anonymous namespace)::FunctionJSONArrayLength::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3d45f2 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:18:49.025625 [ 1080 ] {a5e37eae-0bea-44a5-bc1c-68104a180cd9} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'json' of function JSONArrayLength, expected String, got UInt8: While processing JSONArrayLength(2). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/JSONArrayLength.cpp:51: DB::(anonymous namespace)::FunctionJSONArrayLength::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3d45f2 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:18:49.033123 [ 1080 ] {c8ac53b7-94c6-4550-8930-ae500558368b} executeQuery: Code: 42. DB::Exception: Number of arguments for function JSONArrayLength doesn't match: passed 0, should be 1: While processing JSONArrayLength(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55678) (comment: 02568_json_array_length.sql) (in query: select JSONArrayLength();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:18:49.033961 [ 1080 ] {c8ac53b7-94c6-4550-8930-ae500558368b} TCPHandler: Code: 42. DB::Exception: Number of arguments for function JSONArrayLength doesn't match: passed 0, should be 1: While processing JSONArrayLength(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:19:04.160558 [ 1132 ] {6029c353-b4e6-46a4-a08b-512d34ea6656} executeQuery: Code: 497. DB::Exception: user_02561_temporary_table_grants_test_mx75efjw: Not enough privileges. To execute this query, it's necessary to have the grant CREATE TEMPORARY TABLE ON *.*. (ACCESS_DENIED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:57850) (comment: 02561_temporary_table_grants.sh) (in query: CREATE TEMPORARY TABLE table_memory_02561(name String)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:517: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04271e in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:557: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b0411d3 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:622: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b014cc2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:643: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessRightsElement const&) const @ 0x000000001b0500f3 in /usr/bin/clickhouse 10. /build/src/Access/ContextAccess.cpp:664: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElement const&) const @ 0x000000001b015192 in /usr/bin/clickhouse 11. /build/src/Access/ContextAccess.cpp:672: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001b01522e in /usr/bin/clickhouse 12. /build/src/Access/ContextAccess.cpp:702: DB::ContextAccess::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001b01061d in /usr/bin/clickhouse 13. /build/src/Interpreters/Context.cpp:1186: void DB::Context::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001bdda956 in /usr/bin/clickhouse 14. /build/src/Interpreters/Context.cpp:1200: DB::Context::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001bdbb21d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1692: DB::InterpreterCreateQuery::execute() @ 0x000000001c7eda38 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:04.162209 [ 1132 ] {6029c353-b4e6-46a4-a08b-512d34ea6656} TCPHandler: Code: 497. DB::Exception: user_02561_temporary_table_grants_test_mx75efjw: Not enough privileges. To execute this query, it's necessary to have the grant CREATE TEMPORARY TABLE ON *.*. (ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:517: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04271e in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:557: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b0411d3 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:622: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b014cc2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:643: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessRightsElement const&) const @ 0x000000001b0500f3 in /usr/bin/clickhouse 10. /build/src/Access/ContextAccess.cpp:664: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElement const&) const @ 0x000000001b015192 in /usr/bin/clickhouse 11. /build/src/Access/ContextAccess.cpp:672: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001b01522e in /usr/bin/clickhouse 12. /build/src/Access/ContextAccess.cpp:702: DB::ContextAccess::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001b01061d in /usr/bin/clickhouse 13. /build/src/Interpreters/Context.cpp:1186: void DB::Context::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001bdda956 in /usr/bin/clickhouse 14. /build/src/Interpreters/Context.cpp:1200: DB::Context::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001bdbb21d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1692: DB::InterpreterCreateQuery::execute() @ 0x000000001c7eda38 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:09.396819 [ 5964 ] {a9502567-3966-440d-a695-df6273ea3f7d} executeQuery: Code: 497. DB::Exception: user_02561_temporary_table_grants_test_mx75efjw: Not enough privileges. To execute this query, it's necessary to have the grant CREATE ARBITRARY TEMPORARY TABLE ON *.*. (ACCESS_DENIED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:57140) (comment: 02561_temporary_table_grants.sh) (in query: CREATE TEMPORARY TABLE table_merge_tree_02561 (`name` String) ENGINE = MergeTree ORDER BY name SETTINGS index_granularity = 52427, min_bytes_for_wide_part = 1073741824, ratio_of_defaults_for_sparse_serialization = 0.07332620769739151, merge_max_block_size = 18580, prefer_fetch_merged_part_size_threshold = 1269214685, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 1, index_granularity_bytes = 6444885, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 68854, primary_key_compress_block_size = 13899), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:517: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04271e in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:557: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b0411d3 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:622: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b014cc2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:643: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessRightsElement const&) const @ 0x000000001b0500f3 in /usr/bin/clickhouse 10. /build/src/Access/ContextAccess.cpp:664: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElement const&) const @ 0x000000001b015192 in /usr/bin/clickhouse 11. /build/src/Access/ContextAccess.cpp:672: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001b01522e in /usr/bin/clickhouse 12. /build/src/Access/ContextAccess.cpp:702: DB::ContextAccess::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001b01061d in /usr/bin/clickhouse 13. /build/src/Interpreters/Context.cpp:1186: void DB::Context::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001bdda956 in /usr/bin/clickhouse 14. /build/src/Interpreters/Context.cpp:1200: DB::Context::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001bdbb21d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1692: DB::InterpreterCreateQuery::execute() @ 0x000000001c7eda38 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:09.398701 [ 5964 ] {a9502567-3966-440d-a695-df6273ea3f7d} TCPHandler: Code: 497. DB::Exception: user_02561_temporary_table_grants_test_mx75efjw: Not enough privileges. To execute this query, it's necessary to have the grant CREATE ARBITRARY TEMPORARY TABLE ON *.*. (ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:517: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04271e in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:557: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b0411d3 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:622: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b014cc2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:643: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessRightsElement const&) const @ 0x000000001b0500f3 in /usr/bin/clickhouse 10. /build/src/Access/ContextAccess.cpp:664: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElement const&) const @ 0x000000001b015192 in /usr/bin/clickhouse 11. /build/src/Access/ContextAccess.cpp:672: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001b01522e in /usr/bin/clickhouse 12. /build/src/Access/ContextAccess.cpp:702: DB::ContextAccess::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001b01061d in /usr/bin/clickhouse 13. /build/src/Interpreters/Context.cpp:1186: void DB::Context::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001bdda956 in /usr/bin/clickhouse 14. /build/src/Interpreters/Context.cpp:1200: DB::Context::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001bdbb21d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1692: DB::InterpreterCreateQuery::execute() @ 0x000000001c7eda38 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:10.260896 [ 1191 ] {c0ec43c2-f32c-4fcc-93c7-abeeef8bb2db} AsynchronousInsertQueue: Failed parsing for query 'INSERT INTO test_gg6jlaex.t_async_insert_bad_data FORMAT Values' with query id 31317b08-434a-4c89-ac7e-2f61a47bb93f. DB::Exception: Cannot parse expression of type String here: 'bad'string') 2024.05.01 13:19:10.368725 [ 5698 ] {31317b08-434a-4c89-ac7e-2f61a47bb93f} executeQuery: Code: 62. DB::Exception: Cannot parse expression of type String here: 'bad'string'): While executing WaitForAsyncInsert. (SYNTAX_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:55570) (comment: 02563_async_insert_bad_data.sh) (in query: INSERT INTO t_async_insert_bad_data VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity>>::type>, String&&, std::basic_string_view>&&) @ 0x00000000126a46ac in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:433: DB::ValuesBlockInputFormat::parseExpression(DB::IColumn&, unsigned long) @ 0x000000001eaed3c6 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:319: DB::ValuesBlockInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long) @ 0x000000001eaeb739 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:122: DB::ValuesBlockInputFormat::generate() @ 0x000000001eaea9de in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 10. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 11. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:60: DB::StreamingFormatExecutor::execute() @ 0x000000001e693be1 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:44: DB::StreamingFormatExecutor::execute(DB::ReadBuffer&) @ 0x000000001e693772 in /usr/bin/clickhouse 13. /build/src/Interpreters/AsynchronousInsertQueue.cpp:582: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd7187c in /usr/bin/clickhouse 14. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd7400a in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f75 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f55 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd73f35 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd73f00 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 21. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 2024.05.01 13:19:10.370253 [ 5698 ] {31317b08-434a-4c89-ac7e-2f61a47bb93f} DynamicQueryHandler: Code: 62. DB::Exception: Cannot parse expression of type String here: 'bad'string'): While executing WaitForAsyncInsert. (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity>>::type>, String&&, std::basic_string_view>&&) @ 0x00000000126a46ac in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:433: DB::ValuesBlockInputFormat::parseExpression(DB::IColumn&, unsigned long) @ 0x000000001eaed3c6 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:319: DB::ValuesBlockInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long) @ 0x000000001eaeb739 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:122: DB::ValuesBlockInputFormat::generate() @ 0x000000001eaea9de in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 10. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 11. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:60: DB::StreamingFormatExecutor::execute() @ 0x000000001e693be1 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:44: DB::StreamingFormatExecutor::execute(DB::ReadBuffer&) @ 0x000000001e693772 in /usr/bin/clickhouse 13. /build/src/Interpreters/AsynchronousInsertQueue.cpp:582: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd7187c in /usr/bin/clickhouse 14. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd7400a in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f75 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f55 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd73f35 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd73f00 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 21. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:19:14.575820 [ 5964 ] {70cb857e-3873-46b5-91d1-1cdf466b859a} executeQuery: Code: 497. DB::Exception: user_02561_temporary_table_grants_test_mx75efjw: Not enough privileges. To execute this query, it's necessary to have the grant FILE ON *.*. (ACCESS_DENIED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:57298) (comment: 02561_temporary_table_grants.sh) (in query: CREATE TEMPORARY TABLE table_file_02561(name String) ENGINE = File(TabSeparated)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:517: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04271e in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:557: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b0411d3 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:622: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b014cc2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:643: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessRightsElement const&) const @ 0x000000001b0500f3 in /usr/bin/clickhouse 10. /build/src/Access/ContextAccess.cpp:664: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElement const&) const @ 0x000000001b015192 in /usr/bin/clickhouse 11. /build/src/Access/ContextAccess.cpp:672: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001b01522e in /usr/bin/clickhouse 12. /build/src/Access/ContextAccess.cpp:702: DB::ContextAccess::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001b01061d in /usr/bin/clickhouse 13. /build/src/Interpreters/Context.cpp:1186: void DB::Context::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001bdda956 in /usr/bin/clickhouse 14. /build/src/Interpreters/Context.cpp:1200: DB::Context::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001bdbb21d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1692: DB::InterpreterCreateQuery::execute() @ 0x000000001c7eda38 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:14.577331 [ 5964 ] {70cb857e-3873-46b5-91d1-1cdf466b859a} TCPHandler: Code: 497. DB::Exception: user_02561_temporary_table_grants_test_mx75efjw: Not enough privileges. To execute this query, it's necessary to have the grant FILE ON *.*. (ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:517: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04271e in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:557: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b0411d3 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:622: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b014cc2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:643: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessRightsElement const&) const @ 0x000000001b0500f3 in /usr/bin/clickhouse 10. /build/src/Access/ContextAccess.cpp:664: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElement const&) const @ 0x000000001b015192 in /usr/bin/clickhouse 11. /build/src/Access/ContextAccess.cpp:672: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001b01522e in /usr/bin/clickhouse 12. /build/src/Access/ContextAccess.cpp:702: DB::ContextAccess::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001b01061d in /usr/bin/clickhouse 13. /build/src/Interpreters/Context.cpp:1186: void DB::Context::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001bdda956 in /usr/bin/clickhouse 14. /build/src/Interpreters/Context.cpp:1200: DB::Context::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001bdbb21d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1692: DB::InterpreterCreateQuery::execute() @ 0x000000001c7eda38 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:19.727941 [ 5964 ] {25f51c2f-d7a4-4228-afb0-b9d24be03827} executeQuery: Code: 497. DB::Exception: user_02561_temporary_table_grants_test_mx75efjw: Not enough privileges. To execute this query, it's necessary to have the grant URL ON *.*. (ACCESS_DENIED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59444) (comment: 02561_temporary_table_grants.sh) (in query: CREATE TEMPORARY TABLE table_url_02561(name String) ENGINE = URL('http://127.0.0.1:8123?query=select+12', 'RawBLOB')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:517: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04271e in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:557: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b0411d3 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:622: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b014cc2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:643: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessRightsElement const&) const @ 0x000000001b0500f3 in /usr/bin/clickhouse 10. /build/src/Access/ContextAccess.cpp:664: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElement const&) const @ 0x000000001b015192 in /usr/bin/clickhouse 11. /build/src/Access/ContextAccess.cpp:672: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001b01522e in /usr/bin/clickhouse 12. /build/src/Access/ContextAccess.cpp:702: DB::ContextAccess::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001b01061d in /usr/bin/clickhouse 13. /build/src/Interpreters/Context.cpp:1186: void DB::Context::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001bdda956 in /usr/bin/clickhouse 14. /build/src/Interpreters/Context.cpp:1200: DB::Context::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001bdbb21d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1692: DB::InterpreterCreateQuery::execute() @ 0x000000001c7eda38 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:19.729688 [ 5964 ] {25f51c2f-d7a4-4228-afb0-b9d24be03827} TCPHandler: Code: 497. DB::Exception: user_02561_temporary_table_grants_test_mx75efjw: Not enough privileges. To execute this query, it's necessary to have the grant URL ON *.*. (ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:517: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04271e in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:557: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b0411d3 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:622: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b014cc2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:643: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessRightsElement const&) const @ 0x000000001b0500f3 in /usr/bin/clickhouse 10. /build/src/Access/ContextAccess.cpp:664: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElement const&) const @ 0x000000001b015192 in /usr/bin/clickhouse 11. /build/src/Access/ContextAccess.cpp:672: bool DB::ContextAccess::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001b01522e in /usr/bin/clickhouse 12. /build/src/Access/ContextAccess.cpp:702: DB::ContextAccess::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001b01061d in /usr/bin/clickhouse 13. /build/src/Interpreters/Context.cpp:1186: void DB::Context::checkAccessImpl(DB::AccessRightsElements const&) const @ 0x000000001bdda956 in /usr/bin/clickhouse 14. /build/src/Interpreters/Context.cpp:1200: DB::Context::checkAccess(DB::AccessRightsElements const&) const @ 0x000000001bdbb21d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1692: DB::InterpreterCreateQuery::execute() @ 0x000000001c7eda38 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:22.188757 [ 6164 ] {8e40bfee-0221-475f-851d-7041778758b8} executeQuery: Code: 471. DB::Exception: Could not specify `disk` and `storage_policy` at the same time for storage Log Family. (INVALID_SETTING_VALUE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59484) (comment: 02554_log_faminy_support_storage_policy.sql) (in query: CREATE TABLE test_2554_error (n UInt32) ENGINE = Log SETTINGS disk = 'default', storage_policy = 'default';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [86]) @ 0x000000000f1f51be in /usr/bin/clickhouse 6. /build/src/Storages/StorageLogSettings.cpp:27: DB::getDiskName(DB::ASTStorage&, std::shared_ptr) @ 0x000000001da0de11 in /usr/bin/clickhouse 7. /build/src/Storages/StorageLog.cpp:1113: DB::registerStorageLog(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d9f5a3e in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageLog(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d9f58dd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageLog(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d9f587d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d9f583d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d9f5805 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 14. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:22.189603 [ 6164 ] {8e40bfee-0221-475f-851d-7041778758b8} TCPHandler: Code: 471. DB::Exception: Could not specify `disk` and `storage_policy` at the same time for storage Log Family. (INVALID_SETTING_VALUE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [86]) @ 0x000000000f1f51be in /usr/bin/clickhouse 6. /build/src/Storages/StorageLogSettings.cpp:27: DB::getDiskName(DB::ASTStorage&, std::shared_ptr) @ 0x000000001da0de11 in /usr/bin/clickhouse 7. /build/src/Storages/StorageLog.cpp:1113: DB::registerStorageLog(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d9f5a3e in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageLog(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d9f58dd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageLog(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d9f587d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d9f583d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d9f5805 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 14. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:28.974132 [ 6164 ] {a04284ce-5fae-4291-9357-fb32e7d72563} executeQuery: Code: 36. DB::Exception: Primary key or secondary index contains a duplicate expression. To suppress this exception, rerun the command with setting 'allow_suspicious_indices = 1'. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48898) (comment: 02540_duplicate_primary_key2.sql) (in query: CREATE TABLE test (`timestamp` DateTime, `latitude` Nullable(Float32) CODEC(Gorilla, ZSTD(1)), `longitude` Nullable(Float32) CODEC(Gorilla, ZSTD(1)), `xxxx1` LowCardinality(UInt8), `xxxx2` LowCardinality(Nullable(Int16)), `xxxx3` LowCardinality(Nullable(Int16)), `xxxx4` Nullable(Int32), `xxxx5` LowCardinality(Nullable(Int32)), `xxxx6` Nullable(Int32), `xxxx7` Nullable(Int32), `xxxx8` LowCardinality(Int32), `xxxx9` LowCardinality(Nullable(Int16)), `xxxx10` LowCardinality(Nullable(Int16)), `xxxx11` LowCardinality(Nullable(Int16)), `xxxx12` LowCardinality(String), `xxxx13` Nullable(Float32), `xxxx14` LowCardinality(String), `xxxx15` LowCardinality(Nullable(String)), `xxxx16` LowCardinality(String), `xxxx17` LowCardinality(String), `xxxx18` FixedString(19), `xxxx19` FixedString(17), `xxxx20` LowCardinality(UInt8), `xxxx21` LowCardinality(Nullable(Int16)), `xxxx22` LowCardinality(Nullable(Int16)), `xxxx23` LowCardinality(Nullable(Int16)), `xxxx24` LowCardinality(Nullable(Int16)), `xxxx25` LowCardinality(Nullable(Int16)), `xxxx26` LowCardinality(Nullable(Int16)), `xxxx27` Nullable(Float32), `xxxx28` LowCardinality(Nullable(String)), `xxxx29` LowCardinality(String), `xxxx30` LowCardinality(String), `xxxx31` LowCardinality(Nullable(String)), `xxxx32` UInt64, PROJECTION cumsum_projection_simple (SELECT xxxx1, toStartOfInterval(timestamp, toIntervalMonth(1)), toStartOfWeek(timestamp, 8), toStartOfInterval(timestamp, toIntervalDay(1)), xxxx17, xxxx16, xxxx14, xxxx9, xxxx10, xxxx21, xxxx22, xxxx11, sum(multiIf(xxxx21 IS NULL, 0, 1)), sum(multiIf(xxxx22 IS NULL, 0, 1)), sum(multiIf(xxxx23 IS NULL, 0, 1)), max(toStartOfInterval(timestamp, toIntervalDay(1))), max(CAST(CAST(toStartOfInterval(timestamp, toIntervalDay(1)), 'Nullable(DATE)'), 'Nullable(TIMESTAMP)')), min(toStartOfInterval(timestamp, toIntervalDay(1))), min(CAST(CAST(toStartOfInterval(timestamp, toIntervalDay(1)), 'Nullable(DATE)'), 'Nullable(TIMESTAMP)')), count(), sum(1), COUNTDistinct(xxxx16), COUNTDistinct(xxxx31), COUNTDistinct(xxxx14), COUNTDistinct(CAST(toStartOfInterval(timestamp, toIntervalDay(1)), 'Nullable(DATE)')) GROUP BY xxxx1, toStartOfInterval(timestamp, toIntervalMonth(1)), toStartOfWeek(timestamp, 8), toStartOfInterval(timestamp, toIntervalDay(1)), xxxx1, toStartOfInterval(timestamp, toIntervalMonth(1)), toStartOfWeek(timestamp, 8), toStartOfInterval(timestamp, toIntervalDay(1)), xxxx17, xxxx16, xxxx14, xxxx9, xxxx10, xxxx21, xxxx22, xxxx11)) ENGINE = MergeTree PARTITION BY toYYYYMM(timestamp) ORDER BY (xxxx17, xxxx14, xxxx16, toStartOfDay(timestamp), left(xxxx19, 10), timestamp) SETTINGS index_granularity = 54683, min_bytes_for_wide_part = 180532585, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 24381, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 51, min_merge_bytes_to_use_direct_io = 8554938771, index_granularity_bytes = 26004797, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 28657, primary_key_compress_block_size = 61770), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [154]) @ 0x000000001de93e7e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:200: DB::checkSuspiciousIndices(DB::ASTFunction const*) @ 0x000000001de0047a in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:509: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddfeee7 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:606: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de00163 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 11. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 24. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:19:28.976571 [ 6164 ] {a04284ce-5fae-4291-9357-fb32e7d72563} TCPHandler: Code: 36. DB::Exception: Primary key or secondary index contains a duplicate expression. To suppress this exception, rerun the command with setting 'allow_suspicious_indices = 1'. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [154]) @ 0x000000001de93e7e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:200: DB::checkSuspiciousIndices(DB::ASTFunction const*) @ 0x000000001de0047a in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:509: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddfeee7 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:606: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001de00163 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 11. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 24. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:19:36.157059 [ 6164 ] {499c2117-e2be-4cff-ab31-d0c2bb33f34c} executeQuery: Code: 80. DB::Exception: Temporary tables cannot be created with Replicated or KeeperMap table engines. (INCORRECT_QUERY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49080) (comment: 02525_different_engines_in_temporary_tables.sql) (in query: CREATE TEMPORARY TABLE table_replicated_merge_tree_02525 (`id` UInt64, `info` String) ENGINE = ReplicatedMergeTree('/clickhouse/tables/{database}/test_02525/table_replicated_merge_tree_02525', 'r1') PRIMARY KEY id ORDER BY id SETTINGS index_granularity = 17617, min_bytes_for_wide_part = 908032608, ratio_of_defaults_for_sparse_serialization = 0.37923720479011536, merge_max_block_size = 8029, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 34, min_merge_bytes_to_use_direct_io = 10737418240, index_granularity_bytes = 18194786, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 67714, primary_key_compress_block_size = 30163), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [78]) @ 0x000000001396a8fe in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:892: DB::(anonymous namespace)::checkTemporaryTableEngineName(String const&) @ 0x000000001c7e1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:936: DB::InterpreterCreateQuery::setEngine(DB::ASTCreateQuery&) const @ 0x000000001c7e03bd in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:671: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ddfbc in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:36.157889 [ 6164 ] {499c2117-e2be-4cff-ab31-d0c2bb33f34c} TCPHandler: Code: 80. DB::Exception: Temporary tables cannot be created with Replicated or KeeperMap table engines. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [78]) @ 0x000000001396a8fe in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:892: DB::(anonymous namespace)::checkTemporaryTableEngineName(String const&) @ 0x000000001c7e1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:936: DB::InterpreterCreateQuery::setEngine(DB::ASTCreateQuery&) const @ 0x000000001c7e03bd in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:671: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ddfbc in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:36.172140 [ 6164 ] {10622007-d898-4fdb-8b62-b580c3581c92} executeQuery: Code: 80. DB::Exception: Temporary tables cannot be created with Replicated or KeeperMap table engines. (INCORRECT_QUERY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49080) (comment: 02525_different_engines_in_temporary_tables.sql) (in query: CREATE TEMPORARY TABLE table_keeper_map_02525 ( key String, value UInt32 ) Engine=KeeperMap('/' || currentDatabase() || '/test02525') PRIMARY KEY(key);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [78]) @ 0x000000001396a8fe in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:892: DB::(anonymous namespace)::checkTemporaryTableEngineName(String const&) @ 0x000000001c7e1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:936: DB::InterpreterCreateQuery::setEngine(DB::ASTCreateQuery&) const @ 0x000000001c7e03bd in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:671: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ddfbc in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:36.173044 [ 6164 ] {10622007-d898-4fdb-8b62-b580c3581c92} TCPHandler: Code: 80. DB::Exception: Temporary tables cannot be created with Replicated or KeeperMap table engines. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [78]) @ 0x000000001396a8fe in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:892: DB::(anonymous namespace)::checkTemporaryTableEngineName(String const&) @ 0x000000001c7e1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:936: DB::InterpreterCreateQuery::setEngine(DB::ASTCreateQuery&) const @ 0x000000001c7e03bd in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:671: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7ddfbc in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:45.393468 [ 1133 ] {dff43068-6e3e-46b1-96f5-7e27d10dbce1} executeQuery: Code: 59. DB::Exception: Illegal type UInt32 of column modulo(n, 143011) for filter. Must be UInt8 or Nullable(UInt8). (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34724) (comment: 02513_prewhere_combine_step_filters.sql) (in query: SELECT * FROM table_02513 WHERE n%143011;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/FilterTransform.cpp:48: DB::FilterTransform::transformHeader(DB::Block, DB::ActionsDAG const*, String const&, bool) @ 0x000000001eb6333b in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/FilterStep.cpp:43: DB::FilterStep::FilterStep(DB::DataStream const&, std::shared_ptr const&, String, bool) @ 0x000000001ede49e5 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, String, bool&>(DB::DataStream const&, std::shared_ptr const&, String&&, bool&) @ 0x000000001cabddf3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:2532: DB::InterpreterSelectQuery::executeWhere(DB::QueryPlan&, std::shared_ptr const&, bool) @ 0x000000001cab0d15 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:1683: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa940d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:45.394296 [ 1133 ] {dff43068-6e3e-46b1-96f5-7e27d10dbce1} TCPHandler: Code: 59. DB::Exception: Illegal type UInt32 of column modulo(n, 143011) for filter. Must be UInt8 or Nullable(UInt8). (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/FilterTransform.cpp:48: DB::FilterTransform::transformHeader(DB::Block, DB::ActionsDAG const*, String const&, bool) @ 0x000000001eb6333b in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/FilterStep.cpp:43: DB::FilterStep::FilterStep(DB::DataStream const&, std::shared_ptr const&, String, bool) @ 0x000000001ede49e5 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, String, bool&>(DB::DataStream const&, std::shared_ptr const&, String&&, bool&) @ 0x000000001cabddf3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:2532: DB::InterpreterSelectQuery::executeWhere(DB::QueryPlan&, std::shared_ptr const&, bool) @ 0x000000001cab0d15 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:1683: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa940d in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:45.561050 [ 1133 ] {45e807cc-b075-4557-a8df-92237d751455} executeQuery: Code: 59. DB::Exception: Illegal type UInt32 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.: While executing MergeTreeInOrder. (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34724) (comment: 02513_prewhere_combine_step_filters.sql) (in query: SELECT * FROM table_02513 PREWHERE n%143011;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x000000001d567ac6 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeRangeReader.h:70: DB::FilterWithCachedCount::FilterWithCachedCount(COW::immutable_ptr const&) @ 0x000000001e0e09e5 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1385: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x000000001e0dd64f in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1072: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0db5b8 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 2024.05.01 13:19:45.562550 [ 1133 ] {45e807cc-b075-4557-a8df-92237d751455} TCPHandler: Code: 59. DB::Exception: Illegal type UInt32 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.: While executing MergeTreeInOrder. (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x000000001d567ac6 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeRangeReader.h:70: DB::FilterWithCachedCount::FilterWithCachedCount(COW::immutable_ptr const&) @ 0x000000001e0e09e5 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1385: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x000000001e0dd64f in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1072: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0db5b8 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 2024.05.01 13:19:45.611013 [ 1133 ] {cb0c0f57-0d61-4510-bf37-eb19ce2587a9} executeQuery: Code: 59. DB::Exception: Illegal type UInt32 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.: While executing MergeTreeInOrder. (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34724) (comment: 02513_prewhere_combine_step_filters.sql) (in query: SELECT * FROM table_02513 PREWHERE n%143011 WHERE n%13;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x000000001d567ac6 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeRangeReader.h:70: DB::FilterWithCachedCount::FilterWithCachedCount(COW::immutable_ptr const&) @ 0x000000001e0e09e5 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1385: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x000000001e0dd64f in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1072: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0db5b8 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 2024.05.01 13:19:45.612319 [ 1133 ] {cb0c0f57-0d61-4510-bf37-eb19ce2587a9} TCPHandler: Code: 59. DB::Exception: Illegal type UInt32 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.: While executing MergeTreeInOrder. (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Columns/FilterDescription.cpp:97: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x000000001d567ac6 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeRangeReader.h:70: DB::FilterWithCachedCount::FilterWithCachedCount(COW::immutable_ptr const&) @ 0x000000001e0e09e5 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1385: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x000000001e0dd64f in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1072: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0db5b8 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 2024.05.01 13:19:47.390038 [ 5964 ] {33cfdbe9-f861-4bef-ad67-0ef1b797177b} executeQuery: Code: 407. DB::Exception: Convert overflow: While processing toUnixTimestamp(toDateTime64('1928-12-31 12:12:12.123', 3, 'UTC')). (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34780) (comment: 02507_to_unix_timestamp_overflow.sql) (in query: SELECT toUnixTimestamp(toDateTime64('1928-12-31 12:12:12.123', 3, 'UTC'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Core/DecimalFunctions.h:346: void DB::DecimalUtils::convertToImpl(DB::DateTime64 const&, unsigned int, unsigned int&) @ 0x000000000b2b4866 in /usr/bin/clickhouse 7. /build/src/DataTypes/DataTypesDecimal.h:182: void DB::convertFromDecimalImpl, void>(DB::DataTypeDateTime64::FieldType const&, unsigned int, DB::DataTypeNumber::FieldType&) @ 0x000000000b2b47e3 in /usr/bin/clickhouse 8. /build/src/DataTypes/DataTypesDecimal.h:193: DB::DataTypeNumber::FieldType DB::convertFromDecimal>(DB::DataTypeDateTime64::FieldType const&, unsigned int) @ 0x000000000b2b479f in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:268: COW::immutable_ptr DB::ConvertImpl, DB::NameToUnixTimestamp, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000baf1017 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2039: bool DB::FunctionConvert, DB::NameToUnixTimestamp, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baec398 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:202: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUnixTimestamp, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000badb859 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUnixTimestamp, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000badaba8 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUnixTimestamp, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bad9dbe in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 2024.05.01 13:19:47.395083 [ 5964 ] {33cfdbe9-f861-4bef-ad67-0ef1b797177b} TCPHandler: Code: 407. DB::Exception: Convert overflow: While processing toUnixTimestamp(toDateTime64('1928-12-31 12:12:12.123', 3, 'UTC')). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Core/DecimalFunctions.h:346: void DB::DecimalUtils::convertToImpl(DB::DateTime64 const&, unsigned int, unsigned int&) @ 0x000000000b2b4866 in /usr/bin/clickhouse 7. /build/src/DataTypes/DataTypesDecimal.h:182: void DB::convertFromDecimalImpl, void>(DB::DataTypeDateTime64::FieldType const&, unsigned int, DB::DataTypeNumber::FieldType&) @ 0x000000000b2b47e3 in /usr/bin/clickhouse 8. /build/src/DataTypes/DataTypesDecimal.h:193: DB::DataTypeNumber::FieldType DB::convertFromDecimal>(DB::DataTypeDateTime64::FieldType const&, unsigned int) @ 0x000000000b2b479f in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:268: COW::immutable_ptr DB::ConvertImpl, DB::NameToUnixTimestamp, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000baf1017 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2039: bool DB::FunctionConvert, DB::NameToUnixTimestamp, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baec398 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:202: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUnixTimestamp, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000badb859 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUnixTimestamp, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000badaba8 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUnixTimestamp, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bad9dbe in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 2024.05.01 13:19:47.816903 [ 1132 ] {b65db7cc-974d-432b-9d52-eba42fb1d8da} executeQuery: Code: 183. DB::Exception: arrayJoin is not allowed in mutations. (UNEXPECTED_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34792) (comment: 02504_disallow_arrayjoin_in_mutations.sql) (in query: ALTER TABLE test_02504 UPDATE b = 33 WHERE arrayJoin([1, 2]) = a;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f81ac7e in /usr/bin/clickhouse 6. /build/src/Interpreters/MutationsInterpreter.cpp:1243: DB::MutationsInterpreter::addStreamsForLaterStages(std::vector> const&, DB::QueryPlan&) const @ 0x000000001cc5eb71 in /usr/bin/clickhouse 7. /build/src/Interpreters/MutationsInterpreter.cpp:1298: DB::MutationsInterpreter::validate() @ 0x000000001cc6079a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:178: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caa23 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:47.817668 [ 1132 ] {b65db7cc-974d-432b-9d52-eba42fb1d8da} TCPHandler: Code: 183. DB::Exception: arrayJoin is not allowed in mutations. (UNEXPECTED_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f81ac7e in /usr/bin/clickhouse 6. /build/src/Interpreters/MutationsInterpreter.cpp:1243: DB::MutationsInterpreter::addStreamsForLaterStages(std::vector> const&, DB::QueryPlan&) const @ 0x000000001cc5eb71 in /usr/bin/clickhouse 7. /build/src/Interpreters/MutationsInterpreter.cpp:1298: DB::MutationsInterpreter::validate() @ 0x000000001cc6079a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:178: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caa23 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:51.240555 [ 6164 ] {34177e04-698f-4804-82bb-960b1eb95545} executeQuery: Code: 403. DB::Exception: Illegal expression '1' in JOIN ON section: While processing 1. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key3 = tj.key3 AND t1.key2 = tj.key2 AND 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:19:51.241611 [ 6164 ] {34177e04-698f-4804-82bb-960b1eb95545} TCPHandler: Code: 403. DB::Exception: Illegal expression '1' in JOIN ON section: While processing 1. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:19:51.256287 [ 6164 ] {8633ab43-ffbe-4620-9b19-59f7899caa0a} executeQuery: Code: 403. DB::Exception: Illegal expression '0' in JOIN ON section: While processing 0. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key3 = tj.key3 AND t1.key2 = tj.key2 AND 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:19:51.257253 [ 6164 ] {8633ab43-ffbe-4620-9b19-59f7899caa0a} TCPHandler: Code: 403. DB::Exception: Illegal expression '0' in JOIN ON section: While processing 0. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:19:51.400281 [ 6164 ] {c0dcf67f-391c-4ed4-97ce-4558f4d00eab} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '1 > 1': While processing 1 > 1. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key3 = tj.key3 AND t1.key2 = tj.key2 AND 1 > 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:19:51.401324 [ 6164 ] {c0dcf67f-391c-4ed4-97ce-4558f4d00eab} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '1 > 1': While processing 1 > 1. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:19:51.550452 [ 6164 ] {8f1ba61e-f200-45a3-bf19-c49616028ecb} executeQuery: Code: 403. DB::Exception: Illegal expression '1' in JOIN ON section: While processing 1. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 11. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:51.551360 [ 6164 ] {8f1ba61e-f200-45a3-bf19-c49616028ecb} TCPHandler: Code: 403. DB::Exception: Illegal expression '1' in JOIN ON section: While processing 1. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 11. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:51.559914 [ 6164 ] {d7661628-0016-4c8e-8fd2-7b2f0be5f576} executeQuery: Code: 403. DB::Exception: Illegal expression '0' in JOIN ON section: While processing 0. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 11. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:51.560596 [ 6164 ] {d7661628-0016-4c8e-8fd2-7b2f0be5f576} TCPHandler: Code: 403. DB::Exception: Illegal expression '0' in JOIN ON section: While processing 0. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 11. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:51.568596 [ 6164 ] {255f8c5c-729d-42a7-936f-1ca8ffa5ad9e} executeQuery: Code: 403. DB::Exception: Illegal expression 'NULL' in JOIN ON section: While processing NULL. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON NULL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 11. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:51.569440 [ 6164 ] {255f8c5c-729d-42a7-936f-1ca8ffa5ad9e} TCPHandler: Code: 403. DB::Exception: Illegal expression 'NULL' in JOIN ON section: While processing NULL. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 11. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:51.709922 [ 6164 ] {b08619c6-4f0d-45b1-bcaa-d31eaa4f1244} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '1 != 1': While processing 1 != 1. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 1 != 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:19:51.710852 [ 6164 ] {b08619c6-4f0d-45b1-bcaa-d31eaa4f1244} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '1 != 1': While processing 1 != 1. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:19:51.854286 [ 6164 ] {64a1eb0c-eaf7-48ce-ad04-2ea14807f5c4} executeQuery: Code: 352. DB::Exception: Ambiguous columns in expression '1 = 1' in JOIN ON section: While processing 1 = 1. (AMBIGUOUS_COLUMN_NAME) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: -- Here is another error code because equality is handled differently in CollectJoinOnKeysVisitor. -- We can change the error code, but it will become inconsistent for other cases -- where we actually expect AMBIGUOUS_COLUMN_NAME instead of INVALID_JOIN_ON_EXPRESSION/INCOMPATIBLE_TYPE_OF_JOIN. -- These checks are more reliable after switching to a new analyzer, they return INCOMPATIBLE_TYPE_OF_JOIN consistent with cases above SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key3 = tj.key3 AND t1.key2 = tj.key2 AND 1 == 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:115: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d007fb0 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:19:51.855236 [ 6164 ] {64a1eb0c-eaf7-48ce-ad04-2ea14807f5c4} TCPHandler: Code: 352. DB::Exception: Ambiguous columns in expression '1 = 1' in JOIN ON section: While processing 1 = 1. (AMBIGUOUS_COLUMN_NAME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:115: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d007fb0 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:19:52.046167 [ 6164 ] {cef31f9f-ee24-4c33-869a-ca43e35a3ec3} executeQuery: Code: 352. DB::Exception: Ambiguous columns in expression '1 = 1' in JOIN ON section: While processing 1 = 1. (AMBIGUOUS_COLUMN_NAME) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 1 == 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:115: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d007fb0 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:19:52.047428 [ 6164 ] {cef31f9f-ee24-4c33-869a-ca43e35a3ec3} TCPHandler: Code: 352. DB::Exception: Ambiguous columns in expression '1 = 1' in JOIN ON section: While processing 1 = 1. (AMBIGUOUS_COLUMN_NAME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:115: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d007fb0 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:19:52.058825 [ 6164 ] {da435cb3-41f9-4f89-baf5-eb4a8e65d539} executeQuery: Code: 352. DB::Exception: Ambiguous columns in expression '1 = 2' in JOIN ON section: While processing 1 = 2. (AMBIGUOUS_COLUMN_NAME) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 1 == 2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:115: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d007fb0 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:19:52.059762 [ 6164 ] {da435cb3-41f9-4f89-baf5-eb4a8e65d539} TCPHandler: Code: 352. DB::Exception: Ambiguous columns in expression '1 = 2' in JOIN ON section: While processing 1 = 2. (AMBIGUOUS_COLUMN_NAME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:115: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d007fb0 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 13. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:19:52.194004 [ 6164 ] {b836b1ee-03ac-4b53-b04d-f3dfc84f32e2} executeQuery: Code: 264. DB::Exception: Key 'key3' not found in JOIN ON section. Join engine keys 'key3, key2, key1' have to be used. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj USING (key1, key2, attr);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, char const*&&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c7088 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:229: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4989 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5750 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:52.324375 [ 6164 ] {b836b1ee-03ac-4b53-b04d-f3dfc84f32e2} TCPHandler: Code: 264. DB::Exception: Key 'key3' not found in JOIN ON section. Join engine keys 'key3, key2, key1' have to be used. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, char const*&&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c7088 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:229: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4989 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5750 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:52.324423 [ 5964 ] {a78695f7-f2b9-48e5-832d-3f13e629a0e2} executeQuery: Code: 44. DB::Exception: Illegal column String of first argument of function concatWithSeparator. Must be a constant String. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52784) (comment: 02495_concat_with_separator.sql) (in query: select concatWithSeparator(materialize('|'), 'a', 'b');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/concatWithSeparator.cpp:77: DB::(anonymous namespace)::ConcatWithSeparatorImpl::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000d917dd6 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc7fb68 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc7f568 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001eb604e7 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001edc6286 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cabd031 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cab1882 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa9645 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:19:52.325312 [ 5964 ] {a78695f7-f2b9-48e5-832d-3f13e629a0e2} TCPHandler: Code: 44. DB::Exception: Illegal column String of first argument of function concatWithSeparator. Must be a constant String. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/concatWithSeparator.cpp:77: DB::(anonymous namespace)::ConcatWithSeparatorImpl::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000d917dd6 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc7fb68 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc7f568 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001eb604e7 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001edc6286 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cabd031 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cab1882 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa9645 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:19:52.445351 [ 5964 ] {d83a4043-7012-47d0-b392-19241f26133e} executeQuery: Code: 42. DB::Exception: Number of arguments for function concatWithSeparator doesn't match: passed 0, should be at least 1: While processing concatWithSeparator(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52784) (comment: 02495_concat_with_separator.sql) (in query: select concatWithSeparator();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x000000000b22a7ac in /usr/bin/clickhouse 6. /build/src/Functions/concatWithSeparator.cpp:46: DB::(anonymous namespace)::ConcatWithSeparatorImpl::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000d918709 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:19:52.583555 [ 6164 ] {359f9dc5-0583-4139-a511-4269a558918c} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (4) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj USING (key1, key2, key3, attr);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5750 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:52.583578 [ 5964 ] {d83a4043-7012-47d0-b392-19241f26133e} TCPHandler: Code: 42. DB::Exception: Number of arguments for function concatWithSeparator doesn't match: passed 0, should be at least 1: While processing concatWithSeparator(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x000000000b22a7ac in /usr/bin/clickhouse 6. /build/src/Functions/concatWithSeparator.cpp:46: DB::(anonymous namespace)::ConcatWithSeparatorImpl::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000d918709 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:19:52.584476 [ 6164 ] {359f9dc5-0583-4139-a511-4269a558918c} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (4) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5750 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:52.708545 [ 5964 ] {0d3645ee-0d4e-47b9-a50a-b3a00752b7cd} executeQuery: Code: 43. DB::Exception: Illegal type UInt8 of argument 3 of function concatWithSeparator: While processing concatWithSeparator('|', 'a', 100). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52784) (comment: 02495_concat_with_separator.sql) (in query: select concatWithSeparator('|', 'a', 100);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x000000000b8f5da8 in /usr/bin/clickhouse 6. /build/src/Functions/concatWithSeparator.cpp:56: DB::(anonymous namespace)::ConcatWithSeparatorImpl::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000d918911 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:19:52.708642 [ 6164 ] {a9ea3571-a47b-471a-8b10-1ba0f4195441} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (2) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj USING (key2, key3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5750 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:52.709484 [ 5964 ] {0d3645ee-0d4e-47b9-a50a-b3a00752b7cd} TCPHandler: Code: 43. DB::Exception: Illegal type UInt8 of argument 3 of function concatWithSeparator: While processing concatWithSeparator('|', 'a', 100). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x000000000b8f5da8 in /usr/bin/clickhouse 6. /build/src/Functions/concatWithSeparator.cpp:56: DB::(anonymous namespace)::ConcatWithSeparatorImpl::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000d918911 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:19:52.709711 [ 6164 ] {a9ea3571-a47b-471a-8b10-1ba0f4195441} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (2) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5750 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:52.725519 [ 6164 ] {be74818b-b54e-41ef-9353-9115762959e9} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (1) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.attr;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5750 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:52.726486 [ 6164 ] {be74818b-b54e-41ef-9353-9115762959e9} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (1) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5750 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:52.741575 [ 6164 ] {57d20914-f6d4-4e58-a6cf-e9a7d3ec88a7} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (1) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5750 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:52.742560 [ 6164 ] {57d20914-f6d4-4e58-a6cf-e9a7d3ec88a7} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (1) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5750 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:52.761620 [ 6164 ] {39edfd19-cb73-43df-bd10-b458a264e250} executeQuery: Code: 264. DB::Exception: Key 'key3' not found in JOIN ON section. Join engine keys 'key3, key2, key1' have to be used. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key2 = tj.key2 AND t1.key3 = tj.attr;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, char const*&&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c7088 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:229: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4989 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5750 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:52.762656 [ 6164 ] {39edfd19-cb73-43df-bd10-b458a264e250} TCPHandler: Code: 264. DB::Exception: Key 'key3' not found in JOIN ON section. Join engine keys 'key3, key2, key1' have to be used. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, char const*&&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c7088 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:229: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4989 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5750 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:52.783358 [ 6164 ] {e757b86c-de64-4a13-a7fe-66768ee1c6fd} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (4) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key2 = tj.key2 AND t1.key3 = tj.key3 AND t1.key1 = tj.key1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5750 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:52.784481 [ 6164 ] {e757b86c-de64-4a13-a7fe-66768ee1c6fd} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (4) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5750 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:53.642246 [ 6164 ] {03d0cbd9-f416-4319-ae7b-22081f6b3cac} executeQuery: Code: 264. DB::Exception: JOIN with 'Join' table engine should be performed by storage keys [key3, key2, key1], but column '1_UInt8' was found. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key3 = tj.key3 AND t1.key2 = tj.key2 AND 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>, String const&>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type, std::type_identity::type>, fmt::v8::join_view, std::__wrap_iter, char>&&, String const&) @ 0x000000001cb9dc6c in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:643: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ac4f in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 9. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:53.643151 [ 6164 ] {03d0cbd9-f416-4319-ae7b-22081f6b3cac} TCPHandler: Code: 264. DB::Exception: JOIN with 'Join' table engine should be performed by storage keys [key3, key2, key1], but column '1_UInt8' was found. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>, String const&>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type, std::type_identity::type>, fmt::v8::join_view, std::__wrap_iter, char>&&, String const&) @ 0x000000001cb9dc6c in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:643: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ac4f in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 9. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:53.764699 [ 6164 ] {40df8406-c901-4054-bf0e-115e887eb4e6} executeQuery: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key3 = tj.key3 AND t1.key2 = tj.key2 AND 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4463 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:53.765589 [ 6164 ] {40df8406-c901-4054-bf0e-115e887eb4e6} TCPHandler: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4463 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:53.785355 [ 6164 ] {deb7dd85-a0d4-4c3a-8b54-a778ad04cba3} executeQuery: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key3 = tj.key3 AND t1.key2 = tj.key2 AND 1 > 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4463 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:53.786224 [ 6164 ] {deb7dd85-a0d4-4c3a-8b54-a778ad04cba3} TCPHandler: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4463 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:53.922604 [ 6164 ] {79a370b1-ce5e-4fc1-ada9-70f0fd85ed7e} executeQuery: Code: 264. DB::Exception: Table 'test_csb9sbmd.tj (0d3c3768-3206-40eb-ba4a-6211a3f7c819)' has incompatible type of JOIN. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:185: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4056 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:53.923451 [ 6164 ] {79a370b1-ce5e-4fc1-ada9-70f0fd85ed7e} TCPHandler: Code: 264. DB::Exception: Table 'test_csb9sbmd.tj (0d3c3768-3206-40eb-ba4a-6211a3f7c819)' has incompatible type of JOIN. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:185: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4056 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:53.936983 [ 6164 ] {829ef7fe-9b41-4004-9fce-dca908f497a3} executeQuery: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4463 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:53.937842 [ 6164 ] {829ef7fe-9b41-4004-9fce-dca908f497a3} TCPHandler: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4463 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:53.950484 [ 6164 ] {7c56364c-3be8-473c-89ae-187a57cf6790} executeQuery: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON NULL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4463 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:53.951177 [ 6164 ] {7c56364c-3be8-473c-89ae-187a57cf6790} TCPHandler: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4463 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:53.965561 [ 6164 ] {ef7d9674-a704-4973-86c3-e172e8c6165f} executeQuery: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 1 != 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4463 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:53.966404 [ 6164 ] {ef7d9674-a704-4973-86c3-e172e8c6165f} TCPHandler: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4463 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:53.990343 [ 6164 ] {040e7e55-85ca-4650-b444-2c6c52a94da9} executeQuery: Code: 264. DB::Exception: JOIN with 'Join' table engine should be performed by storage keys [key3, key2, key1], but column '1_UInt8' was found. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: -- Here is another error code because equality is handled differently in CollectJoinOnKeysVisitor. -- We can change the error code, but it will become inconsistent for other cases -- where we actually expect AMBIGUOUS_COLUMN_NAME instead of INVALID_JOIN_ON_EXPRESSION/INCOMPATIBLE_TYPE_OF_JOIN. -- These checks are more reliable after switching to a new analyzer, they return INCOMPATIBLE_TYPE_OF_JOIN consistent with cases above SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key3 = tj.key3 AND t1.key2 = tj.key2 AND 1 == 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>, String const&>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type, std::type_identity::type>, fmt::v8::join_view, std::__wrap_iter, char>&&, String const&) @ 0x000000001cb9dc6c in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:643: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ac4f in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 9. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:53.991471 [ 6164 ] {040e7e55-85ca-4650-b444-2c6c52a94da9} TCPHandler: Code: 264. DB::Exception: JOIN with 'Join' table engine should be performed by storage keys [key3, key2, key1], but column '1_UInt8' was found. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>, String const&>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type, std::type_identity::type>, fmt::v8::join_view, std::__wrap_iter, char>&&, String const&) @ 0x000000001cb9dc6c in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:643: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ac4f in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 9. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.009634 [ 6164 ] {bcd46a5e-6889-4f01-8458-1ab08484ba5a} executeQuery: Code: 264. DB::Exception: Table 'test_csb9sbmd.tj (0d3c3768-3206-40eb-ba4a-6211a3f7c819)' has incompatible type of JOIN. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 1 == 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:185: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4056 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.010644 [ 6164 ] {bcd46a5e-6889-4f01-8458-1ab08484ba5a} TCPHandler: Code: 264. DB::Exception: Table 'test_csb9sbmd.tj (0d3c3768-3206-40eb-ba4a-6211a3f7c819)' has incompatible type of JOIN. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:185: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4056 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.025920 [ 6164 ] {b4134cf0-ac51-4640-ad57-738df1de4f2c} executeQuery: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON 1 == 2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4463 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.026633 [ 6164 ] {b4134cf0-ac51-4640-ad57-738df1de4f2c} TCPHandler: Code: 264. DB::Exception: JOIN keys should match to the Join engine keys [key3, key2, key1]. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:195: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4463 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.170813 [ 6164 ] {eced89cb-2a92-4128-bb6b-ec931b37ef44} executeQuery: Code: 47. DB::Exception: JOIN test_csb9sbmd.t1 ALL INNER JOIN test_csb9sbmd.tj USING (key1, key2, attr) using identifier 'attr' cannot be resolved from left table expression. In scope SELECT * FROM t1 ALL INNER JOIN tj USING (key1, key2, attr). (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj USING (key1, key2, attr);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6633: DB::(anonymous namespace)::QueryAnalyzer::resolveJoin(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c93a4dd in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6714: DB::(anonymous namespace)::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c91ae3d in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6941: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90eb82 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 11. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.171681 [ 6164 ] {eced89cb-2a92-4128-bb6b-ec931b37ef44} TCPHandler: Code: 47. DB::Exception: JOIN test_csb9sbmd.t1 ALL INNER JOIN test_csb9sbmd.tj USING (key1, key2, attr) using identifier 'attr' cannot be resolved from left table expression. In scope SELECT * FROM t1 ALL INNER JOIN tj USING (key1, key2, attr). (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6633: DB::(anonymous namespace)::QueryAnalyzer::resolveJoin(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c93a4dd in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6714: DB::(anonymous namespace)::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c91ae3d in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6941: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90eb82 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 11. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.181531 [ 6164 ] {c13a04c8-e783-4c60-afc8-6d82415ea008} executeQuery: Code: 47. DB::Exception: JOIN test_csb9sbmd.t1 ALL INNER JOIN test_csb9sbmd.tj USING (key1, key2, key3, attr) using identifier 'attr' cannot be resolved from left table expression. In scope SELECT * FROM t1 ALL INNER JOIN tj USING (key1, key2, key3, attr). (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj USING (key1, key2, key3, attr);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6633: DB::(anonymous namespace)::QueryAnalyzer::resolveJoin(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c93a4dd in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6714: DB::(anonymous namespace)::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c91ae3d in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6941: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90eb82 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 11. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.182264 [ 6164 ] {c13a04c8-e783-4c60-afc8-6d82415ea008} TCPHandler: Code: 47. DB::Exception: JOIN test_csb9sbmd.t1 ALL INNER JOIN test_csb9sbmd.tj USING (key1, key2, key3, attr) using identifier 'attr' cannot be resolved from left table expression. In scope SELECT * FROM t1 ALL INNER JOIN tj USING (key1, key2, key3, attr). (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6633: DB::(anonymous namespace)::QueryAnalyzer::resolveJoin(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c93a4dd in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6714: DB::(anonymous namespace)::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c91ae3d in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6941: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90eb82 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 11. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.305053 [ 6164 ] {9f6328bd-06f1-46c1-a413-0ae0850e4c59} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (2) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj USING (key2, key3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.306044 [ 6164 ] {9f6328bd-06f1-46c1-a413-0ae0850e4c59} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (2) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.327300 [ 6164 ] {547d6646-04a5-4b06-95d7-f9ab7c18bb1e} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (1) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.attr;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.328084 [ 6164 ] {547d6646-04a5-4b06-95d7-f9ab7c18bb1e} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (1) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.346678 [ 6164 ] {8ec6c587-f5a0-4563-ab70-85216084177f} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (1) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.347659 [ 6164 ] {8ec6c587-f5a0-4563-ab70-85216084177f} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (1) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.475985 [ 6164 ] {7d68d796-e222-4158-ae93-ac2f3b1d1542} executeQuery: Code: 264. DB::Exception: Key 'key3' not found in JOIN ON section. Join engine keys 'key3, key2, key1' have to be used. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key2 = tj.key2 AND t1.key3 = tj.attr;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, char const*&&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c7088 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:229: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4989 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.625373 [ 6164 ] {7d68d796-e222-4158-ae93-ac2f3b1d1542} TCPHandler: Code: 264. DB::Exception: Key 'key3' not found in JOIN ON section. Join engine keys 'key3, key2, key1' have to be used. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, char const*&&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c7088 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:229: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4989 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.625424 [ 5964 ] {2c94b52e-ecbf-4f85-abad-7d7f72cf4d43} executeQuery: Code: 47. DB::Exception: Identifier 'fields.value' cannot be resolved from subquery. In scope SELECT fields.name, fields.value FROM (SELECT fields.name FROM test_table). Maybe you meant: ['fields.name']. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52798) (comment: 02494_analyzer_compound_expression_crash_fix.sql) (in query: SELECT fields.name, fields.value FROM (SELECT fields.name FROM test_table);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&, String&&, String&&) @ 0x000000001c96a9a4 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2932: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromTableExpression(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&)::$_0::operator()(unsigned long) const @ 0x000000001c934059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2979: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromTableExpression(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c931f83 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3309: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f973 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 17. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:19:54.626344 [ 5964 ] {2c94b52e-ecbf-4f85-abad-7d7f72cf4d43} TCPHandler: Code: 47. DB::Exception: Identifier 'fields.value' cannot be resolved from subquery. In scope SELECT fields.name, fields.value FROM (SELECT fields.name FROM test_table). Maybe you meant: ['fields.name']. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&, String&&, String&&) @ 0x000000001c96a9a4 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2932: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromTableExpression(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&)::$_0::operator()(unsigned long) const @ 0x000000001c934059 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2979: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromTableExpression(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c931f83 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3309: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f973 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 17. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:19:54.655783 [ 6164 ] {266f3092-cc52-4990-917f-fc51bd5fc6d5} executeQuery: Code: 264. DB::Exception: Number of keys in JOIN ON section (4) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52762) (comment: 02498_storage_join_key_positions.gen.sql) (in query: SELECT * FROM t1 ALL INNER JOIN tj ON t1.key1 = tj.key1 AND t1.key2 = tj.key2 AND t1.key3 = tj.key3 AND t1.key1 = tj.key1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:54.657088 [ 6164 ] {266f3092-cc52-4990-917f-fc51bd5fc6d5} TCPHandler: Code: 264. DB::Exception: Number of keys in JOIN ON section (4) doesn't match number of keys in Join engine (3). (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:205: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c46c3 in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:650: DB::chooseJoinAlgorithm(std::shared_ptr&, std::shared_ptr const&, DB::Block const&, DB::Block const&, std::shared_ptr const&) @ 0x000000001cb9ad91 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:1193: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb835c1 in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:59.323648 [ 1080 ] {140cad20-c5be-4cf0-9aec-4a6919be5085} executeQuery: Code: 47. DB::Exception: Missing columns: '0b' while processing query: 'SELECT `0b`', required columns: '0b'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37418) (comment: 02493_inconsistent_hex_and_binary_number.expect) (in query: select 0b), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:19:59.325367 [ 1080 ] {140cad20-c5be-4cf0-9aec-4a6919be5085} TCPHandler: Code: 47. DB::Exception: Missing columns: '0b' while processing query: 'SELECT `0b`', required columns: '0b'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:01.220502 [ 6164 ] {f7fc260e-3a7c-4eff-b56f-5582b16dc1ec} executeQuery: Code: 47. DB::Exception: Missing columns: '0b' while processing query: 'SELECT `0b`', required columns: '0b'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37452) (comment: 02493_inconsistent_hex_and_binary_number.expect) (in query: select 0b;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:01.221989 [ 6164 ] {f7fc260e-3a7c-4eff-b56f-5582b16dc1ec} TCPHandler: Code: 47. DB::Exception: Missing columns: '0b' while processing query: 'SELECT `0b`', required columns: '0b'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:01.784054 [ 1133 ] {e3219b74-e95f-4665-a41b-33cb4a4d325f} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 136. Bytes expected: 1919379265.: While processing finalizeAggregation(CAST('AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)', 'AggregateFunction(min, String)')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37456) (comment: 02481_i43247_ubsan_in_minmaxany.sql) (in query: -- https://github.com/ClickHouse/ClickHouse/issues/43247 SELECT finalizeAggregation(CAST('AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)', 'AggregateFunction(min, String)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:0: DB::SingleValueDataString::read(DB::ReadBuffer&, DB::ISerialization const&, DB::Arena*) @ 0x0000000014fbf785 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:1431: DB::AggregateFunctionsSingleValue>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014fbcb40 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:01.785401 [ 1133 ] {e3219b74-e95f-4665-a41b-33cb4a4d325f} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 136. Bytes expected: 1919379265.: While processing finalizeAggregation(CAST('AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)', 'AggregateFunction(min, String)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:0: DB::SingleValueDataString::read(DB::ReadBuffer&, DB::ISerialization const&, DB::Arena*) @ 0x0000000014fbf785 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:1431: DB::AggregateFunctionsSingleValue>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014fbcb40 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:01.925008 [ 6164 ] {36a00fee-a319-49b7-b016-8047e0e084c5} executeQuery: Code: 47. DB::Exception: Unknown expression identifier 'x'. In scope SELECT min(b), x AS b FROM (SELECT max(number) FROM numbers(1)). Maybe you meant: ['b']. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37472) (comment: 02480_analyzer_alias_nullptr.sql) (in query: SELECT min(b), x AS b FROM (SELECT max(number) FROM numbers(1));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String const&, String&&, String&&) @ 0x000000001c96dc84 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2613: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c920571 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3536: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91ef7f in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c926498 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5547: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9142b6 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 17. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:20:01.925930 [ 6164 ] {36a00fee-a319-49b7-b016-8047e0e084c5} TCPHandler: Code: 47. DB::Exception: Unknown expression identifier 'x'. In scope SELECT min(b), x AS b FROM (SELECT max(number) FROM numbers(1)). Maybe you meant: ['b']. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String const&, String&&, String&&) @ 0x000000001c96dc84 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2613: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c920571 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3536: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91ef7f in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c926498 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5547: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9142b6 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 17. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:20:03.081965 [ 1080 ] {327a2936-6f69-4ddb-9dab-63f01b681207} executeQuery: Code: 47. DB::Exception: Missing columns: '0b' while processing query: 'SELECT `0b`', required columns: '0b'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37496) (comment: 02493_inconsistent_hex_and_binary_number.expect) (in query: select 0b ;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:03.083909 [ 1080 ] {327a2936-6f69-4ddb-9dab-63f01b681207} TCPHandler: Code: 47. DB::Exception: Missing columns: '0b' while processing query: 'SELECT `0b`', required columns: '0b'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:05.146594 [ 5964 ] {d00061b5-6e73-47d4-b2b4-a08120ce4886} executeQuery: Code: 36. DB::Exception: Connection pool cannot have zero size. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37484) (comment: 02479_mysql_connect_to_self.sql) (in query: SELECT count() FROM mysql('127.0.0.1:9004', currentDatabase(), foo, 'default', '[HIDDEN]', SETTINGS connection_pool_size = 0)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f81ac7e in /usr/bin/clickhouse 6. /build/src/Storages/MySQL/MySQLHelpers.cpp:30: DB::createMySQLPoolWithFailover(String const&, std::vector, std::allocator>> const&, String const&, String const&, DB::MySQLSettings const&) @ 0x000000001dc64e33 in /usr/bin/clickhouse 7. /build/src/Storages/MySQL/MySQLHelpers.cpp:17: DB::createMySQLPoolWithFailover(DB::StorageMySQL::Configuration const&, DB::MySQLSettings const&) @ 0x000000001dc64da7 in /usr/bin/clickhouse 8. /build/src/TableFunctions/TableFunctionMySQL.cpp:57: DB::TableFunctionMySQL::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a9c3131 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6454: DB::(anonymous namespace)::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&, bool) @ 0x000000001c9169af in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6701: DB::(anonymous namespace)::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c91adf8 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6941: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90eb82 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 14. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:05.146709 [ 1132 ] {37ace929-0b83-4d27-86c1-23454c7c5395} executeQuery: Code: 47. DB::Exception: Missing columns: '0x' while processing query: 'SELECT `0x`', required columns: '0x'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37544) (comment: 02493_inconsistent_hex_and_binary_number.expect) (in query: select 0x), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:05.147528 [ 5964 ] {d00061b5-6e73-47d4-b2b4-a08120ce4886} TCPHandler: Code: 36. DB::Exception: Connection pool cannot have zero size. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f81ac7e in /usr/bin/clickhouse 6. /build/src/Storages/MySQL/MySQLHelpers.cpp:30: DB::createMySQLPoolWithFailover(String const&, std::vector, std::allocator>> const&, String const&, String const&, DB::MySQLSettings const&) @ 0x000000001dc64e33 in /usr/bin/clickhouse 7. /build/src/Storages/MySQL/MySQLHelpers.cpp:17: DB::createMySQLPoolWithFailover(DB::StorageMySQL::Configuration const&, DB::MySQLSettings const&) @ 0x000000001dc64da7 in /usr/bin/clickhouse 8. /build/src/TableFunctions/TableFunctionMySQL.cpp:57: DB::TableFunctionMySQL::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a9c3131 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6454: DB::(anonymous namespace)::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&, bool) @ 0x000000001c9169af in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6701: DB::(anonymous namespace)::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::QueryExpressionsAliasVisitor&) @ 0x000000001c91adf8 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6941: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90eb82 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 14. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:05.148676 [ 1132 ] {37ace929-0b83-4d27-86c1-23454c7c5395} TCPHandler: Code: 47. DB::Exception: Missing columns: '0x' while processing query: 'SELECT `0x`', required columns: '0x'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:07.105371 [ 5964 ] {7fa15e33-c5e2-4476-875e-09a281871108} executeQuery: Code: 47. DB::Exception: Missing columns: '0x' while processing query: 'SELECT `0x`', required columns: '0x'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37628) (comment: 02493_inconsistent_hex_and_binary_number.expect) (in query: select 0x;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:07.107060 [ 5964 ] {7fa15e33-c5e2-4476-875e-09a281871108} TCPHandler: Code: 47. DB::Exception: Missing columns: '0x' while processing query: 'SELECT `0x`', required columns: '0x'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:08.318326 [ 5967 ] {86d1d24c-c137-4a3f-be38-3d8f913eeede} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 1. Bytes expected: 15.: While processing finalizeAggregation(CAST(unhex('0F00000030'), 'AggregateFunction(min, String)')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: -- MIN, MAX AND FAMILY should check for errors in its input SELECT finalizeAggregation(CAST(unhex('0F00000030'), 'AggregateFunction(min, String)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:591: DB::SingleValueDataString::read(DB::ReadBuffer&, DB::ISerialization const&, DB::Arena*) @ 0x0000000014fbf753 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:1431: DB::AggregateFunctionsSingleValue>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014fbcb40 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:08.319367 [ 5967 ] {86d1d24c-c137-4a3f-be38-3d8f913eeede} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 1. Bytes expected: 15.: While processing finalizeAggregation(CAST(unhex('0F00000030'), 'AggregateFunction(min, String)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:591: DB::SingleValueDataString::read(DB::ReadBuffer&, DB::ISerialization const&, DB::Arena*) @ 0x0000000014fbf753 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:1431: DB::AggregateFunctionsSingleValue>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014fbcb40 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:08.331209 [ 5967 ] {13d14989-af73-427a-9186-c55aa97f14c0} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 1. Bytes expected: 65535.: While processing finalizeAggregation(CAST(unhex('FFFF000030'), 'AggregateFunction(min, String)')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: SELECT finalizeAggregation(CAST(unhex('FFFF000030'), 'AggregateFunction(min, String)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:0: DB::SingleValueDataString::read(DB::ReadBuffer&, DB::ISerialization const&, DB::Arena*) @ 0x0000000014fbf785 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:1431: DB::AggregateFunctionsSingleValue>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014fbcb40 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:08.332700 [ 5967 ] {13d14989-af73-427a-9186-c55aa97f14c0} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 1. Bytes expected: 65535.: While processing finalizeAggregation(CAST(unhex('FFFF000030'), 'AggregateFunction(min, String)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:0: DB::SingleValueDataString::read(DB::ReadBuffer&, DB::ISerialization const&, DB::Arena*) @ 0x0000000014fbf785 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:1431: DB::AggregateFunctionsSingleValue>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014fbcb40 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:08.750896 [ 5967 ] {c409e03b-6360-43a1-b0da-ba45a844e9aa} executeQuery: Code: 32. DB::Exception: Attempt to read after eof: While processing finalizeAggregation(CAST('', 'AggregateFunction(aggThrow(0.), UInt8)')). (ATTEMPT_TO_READ_AFTER_EOF) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: -- aggThrow should check for errors in its input SELECT finalizeAggregation(CAST('', 'AggregateFunction(aggThrow(0.), UInt8)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5d97de in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:262: DB::ReadBuffer::throwReadAfterEOF() @ 0x000000000b5d9751 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionAggThrow.cpp:101: DB::(anonymous namespace)::AggregateFunctionThrow::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017813e6b in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 2024.05.01 13:20:08.751817 [ 5967 ] {c409e03b-6360-43a1-b0da-ba45a844e9aa} TCPHandler: Code: 32. DB::Exception: Attempt to read after eof: While processing finalizeAggregation(CAST('', 'AggregateFunction(aggThrow(0.), UInt8)')). (ATTEMPT_TO_READ_AFTER_EOF), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5d97de in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:262: DB::ReadBuffer::throwReadAfterEOF() @ 0x000000000b5d9751 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionAggThrow.cpp:101: DB::(anonymous namespace)::AggregateFunctionThrow::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017813e6b in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 2024.05.01 13:20:08.859802 [ 5967 ] {a5bf9853-d58d-401c-a1b0-3eabd2468266} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 16. Bytes expected: 32.: While processing finalizeAggregation(CAST(unhex('01000000000000000100000000000000'), 'AggregateFunction(categoricalInformationValue, UInt8, UInt8)')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: -- categoricalInformationValue should check for errors in its input SELECT finalizeAggregation(CAST(unhex('01000000000000000100000000000000'), 'AggregateFunction(categoricalInformationValue, UInt8, UInt8)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionCategoricalInformationValue.cpp:122: DB::AggregateFunctionCategoricalIV::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000178115cb in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 2024.05.01 13:20:08.861049 [ 5967 ] {a5bf9853-d58d-401c-a1b0-3eabd2468266} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 16. Bytes expected: 32.: While processing finalizeAggregation(CAST(unhex('01000000000000000100000000000000'), 'AggregateFunction(categoricalInformationValue, UInt8, UInt8)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionCategoricalInformationValue.cpp:122: DB::AggregateFunctionCategoricalIV::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000178115cb in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 2024.05.01 13:20:08.974725 [ 5967 ] {e54f1134-23a2-421e-b5d1-badb5bd14ce2} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 31. Bytes expected: 32.: While processing finalizeAggregation(CAST(unhex('0101000000000000000100000000000000020000000000000001000000000000'), 'AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: SELECT finalizeAggregation(CAST(unhex('0101000000000000000100000000000000020000000000000001000000000000'), 'AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionCategoricalInformationValue.cpp:122: DB::AggregateFunctionCategoricalIV::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000178115cb in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ae6fa1 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:08.975728 [ 5967 ] {e54f1134-23a2-421e-b5d1-badb5bd14ce2} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 31. Bytes expected: 32.: While processing finalizeAggregation(CAST(unhex('0101000000000000000100000000000000020000000000000001000000000000'), 'AggregateFunction(categoricalInformationValue, Nullable(UInt8), UInt8)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionCategoricalInformationValue.cpp:122: DB::AggregateFunctionCategoricalIV::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000178115cb in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ae6fa1 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:09.084665 [ 1080 ] {6a3fbcad-f189-4d4f-b234-2d63adea1319} executeQuery: Code: 47. DB::Exception: Missing columns: '0x' while processing query: 'SELECT `0x`', required columns: '0x'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56582) (comment: 02493_inconsistent_hex_and_binary_number.expect) (in query: select 0x ;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:09.084692 [ 5967 ] {c366a005-4121-4e94-8fee-c48a0318b2d2} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 4. Bytes expected: 6271.: While processing finalizeAggregation(CAST(unhex('5FF3001310132'), 'AggregateFunction(groupArray, String)')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: -- groupArray should check for errors in its input SELECT finalizeAggregation(CAST(unhex('5FF3001310132'), 'AggregateFunction(groupArray, String)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionGroupArray.h:387: DB::GroupArrayNodeBase::read(DB::ReadBuffer&, DB::Arena*) @ 0x0000000014587c51 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionGroupArray.h:650: DB::GroupArrayGeneralImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000145afbeb in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:09.098983 [ 5967 ] {c366a005-4121-4e94-8fee-c48a0318b2d2} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 4. Bytes expected: 6271.: While processing finalizeAggregation(CAST(unhex('5FF3001310132'), 'AggregateFunction(groupArray, String)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionGroupArray.h:387: DB::GroupArrayNodeBase::read(DB::ReadBuffer&, DB::Arena*) @ 0x0000000014587c51 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionGroupArray.h:650: DB::GroupArrayGeneralImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000145afbeb in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:09.099534 [ 1080 ] {6a3fbcad-f189-4d4f-b234-2d63adea1319} TCPHandler: Code: 47. DB::Exception: Missing columns: '0x' while processing query: 'SELECT `0x`', required columns: '0x'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:09.205852 [ 5967 ] {2c7a626c-8c91-42cc-97a8-f20b5e5d2865} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 7. Bytes expected: 8.: While processing finalizeAggregation(CAST(unhex('FF000000000000000001000000000000000200000000000000'), 'AggregateFunction(groupArray, UInt64)')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: SELECT finalizeAggregation(CAST(unhex('FF000000000000000001000000000000000200000000000000'), 'AggregateFunction(groupArray, UInt64)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:117: void DB::readPODBinary(unsigned long&, DB::ReadBuffer&) @ 0x0000000013c66882 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:1099: void DB::readBinary(unsigned long&, DB::ReadBuffer&) @ 0x0000000013c479dd in /usr/bin/clickhouse 9. /build/src/IO/ReadHelpers.h:1136: void DB::readBinaryEndian<(std::endian)57005, unsigned long>(unsigned long&, DB::ReadBuffer&) @ 0x0000000013da21fd in /usr/bin/clickhouse 10. /build/src/IO/ReadHelpers.h:1143: void DB::readBinaryLittleEndian(unsigned long&, DB::ReadBuffer&) @ 0x0000000013da21bd in /usr/bin/clickhouse 11. /build/src/AggregateFunctions/AggregateFunctionGroupArray.h:303: DB::GroupArrayNumericImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001459785f in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 22. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:20:09.206944 [ 5967 ] {2c7a626c-8c91-42cc-97a8-f20b5e5d2865} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 7. Bytes expected: 8.: While processing finalizeAggregation(CAST(unhex('FF000000000000000001000000000000000200000000000000'), 'AggregateFunction(groupArray, UInt64)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:117: void DB::readPODBinary(unsigned long&, DB::ReadBuffer&) @ 0x0000000013c66882 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:1099: void DB::readBinary(unsigned long&, DB::ReadBuffer&) @ 0x0000000013c479dd in /usr/bin/clickhouse 9. /build/src/IO/ReadHelpers.h:1136: void DB::readBinaryEndian<(std::endian)57005, unsigned long>(unsigned long&, DB::ReadBuffer&) @ 0x0000000013da21fd in /usr/bin/clickhouse 10. /build/src/IO/ReadHelpers.h:1143: void DB::readBinaryLittleEndian(unsigned long&, DB::ReadBuffer&) @ 0x0000000013da21bd in /usr/bin/clickhouse 11. /build/src/AggregateFunctions/AggregateFunctionGroupArray.h:303: DB::GroupArrayNumericImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001459785f in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 22. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:20:09.318676 [ 5967 ] {06ad0a70-12b4-4fe8-9ed4-75fe5e2b7ada} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 24. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0FF00000000000000001000000000000000300000000000000'), 'AggregateFunction(groupArrayMovingSum, UInt64)')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: -- Same for groupArrayMovingXXXX SELECT finalizeAggregation(CAST(unhex('0FF00000000000000001000000000000000300000000000000'), 'AggregateFunction(groupArrayMovingSum, UInt64)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:160: DB::MovingImpl, DB::MovingSumData>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001778993e in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 2024.05.01 13:20:09.319712 [ 5967 ] {06ad0a70-12b4-4fe8-9ed4-75fe5e2b7ada} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 24. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0FF00000000000000001000000000000000300000000000000'), 'AggregateFunction(groupArrayMovingSum, UInt64)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:160: DB::MovingImpl, DB::MovingSumData>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001778993e in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 2024.05.01 13:20:09.442751 [ 5967 ] {24d57a22-8854-49ca-a7c1-b8c50f79acc6} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 24. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0FF00000000000000001000000000000000300000000000000'), 'AggregateFunction(groupArrayMovingAvg, UInt64)')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: SELECT finalizeAggregation(CAST(unhex('0FF00000000000000001000000000000000300000000000000'), 'AggregateFunction(groupArrayMovingAvg, UInt64)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:160: DB::MovingImpl, DB::MovingAvgData>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000177d76de in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 2024.05.01 13:20:09.443744 [ 5967 ] {24d57a22-8854-49ca-a7c1-b8c50f79acc6} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 24. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0FF00000000000000001000000000000000300000000000000'), 'AggregateFunction(groupArrayMovingAvg, UInt64)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:160: DB::MovingImpl, DB::MovingAvgData>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000177d76de in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 2024.05.01 13:20:09.551728 [ 5967 ] {4a9e988c-de7b-4823-b64a-ea461ffd5e3a} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 46. Bytes expected: 80.: While processing finalizeAggregation(CAST(unhex('00000000000024C000000000000018C00500000000000024C0000000000000F03F00000000000022C0000000000000F03F00000000000020C0000000000000'), 'AggregateFunction(histogram(5), Int64)')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: -- Histogram SELECT finalizeAggregation(CAST(unhex('00000000000024C000000000000018C00500000000000024C0000000000000F03F00000000000022C0000000000000F03F00000000000020C0000000000000'), 'AggregateFunction(histogram(5), Int64)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionHistogram.h:301: DB::AggregateFunctionHistogramData::read(DB::ReadBuffer&, unsigned int) @ 0x00000000175fb1ba in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionHistogram.h:361: DB::AggregateFunctionHistogram::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001760a2a6 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:09.552817 [ 5967 ] {4a9e988c-de7b-4823-b64a-ea461ffd5e3a} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 46. Bytes expected: 80.: While processing finalizeAggregation(CAST(unhex('00000000000024C000000000000018C00500000000000024C0000000000000F03F00000000000022C0000000000000F03F00000000000020C0000000000000'), 'AggregateFunction(histogram(5), Int64)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionHistogram.h:301: DB::AggregateFunctionHistogramData::read(DB::ReadBuffer&, unsigned int) @ 0x00000000175fb1ba in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionHistogram.h:361: DB::AggregateFunctionHistogram::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001760a2a6 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:09.676180 [ 5967 ] {b6b0e583-4fc7-4fdc-8781-9036e41f2e60} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 56. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0F01000000000000244000000000000026400000000000002840000000000000244000000000000026400000000000002840000000000000F03F'), 'AggregateFunction(mannWhitneyUTest, Float64, UInt8)')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: -- StatisticalSample SELECT finalizeAggregation(CAST(unhex('0F01000000000000244000000000000026400000000000002840000000000000244000000000000026400000000000002840000000000000F03F'), 'AggregateFunction(mannWhitneyUTest, Float64, UInt8)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/StatCommon.h:115: DB::StatisticalSample::read(DB::ReadBuffer&, DB::Arena*) @ 0x00000000178183ec in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMannWhitney.h:227: DB::AggregateFunctionMannWhitney::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001781d19b in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:09.677506 [ 5967 ] {b6b0e583-4fc7-4fdc-8781-9036e41f2e60} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 56. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0F01000000000000244000000000000026400000000000002840000000000000244000000000000026400000000000002840000000000000F03F'), 'AggregateFunction(mannWhitneyUTest, Float64, UInt8)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/StatCommon.h:115: DB::StatisticalSample::read(DB::ReadBuffer&, DB::Arena*) @ 0x00000000178183ec in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMannWhitney.h:227: DB::AggregateFunctionMannWhitney::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x000000001781d19b in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:09.796872 [ 5967 ] {1b467392-76a8-4c25-a9eb-0068629424e8} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 64. Bytes expected: 240.: While processing finalizeAggregation(CAST(unhex('0F010000000000000001000000000000000300000000000000FFFFFFFFFFFFFFFF03340B9B047F000001000000000000000500000065000000FFFFFFFFFFFFFFFF'), 'AggregateFunction(maxIntersections, UInt8, UInt8)')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: -- maxIntersections SELECT finalizeAggregation(CAST(unhex('0F010000000000000001000000000000000300000000000000FFFFFFFFFFFFFFFF03340B9B047F000001000000000000000500000065000000FFFFFFFFFFFFFFFF'), 'AggregateFunction(maxIntersections, UInt8, UInt8)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionMaxIntersections.h:149: DB::AggregateFunctionIntersectionsMax::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000175ca673 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 2024.05.01 13:20:09.797930 [ 5967 ] {1b467392-76a8-4c25-a9eb-0068629424e8} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 64. Bytes expected: 240.: While processing finalizeAggregation(CAST(unhex('0F010000000000000001000000000000000300000000000000FFFFFFFFFFFFFFFF03340B9B047F000001000000000000000500000065000000FFFFFFFFFFFFFFFF'), 'AggregateFunction(maxIntersections, UInt8, UInt8)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionMaxIntersections.h:149: DB::AggregateFunctionIntersectionsMax::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000175ca673 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 2024.05.01 13:20:09.917848 [ 5967 ] {629f8e2a-ea95-4755-bb9f-da7da8c04dc3} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 44. Bytes expected: 65.: While processing finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(\'forward\', \'head\'), DateTime, Nullable(String), UInt8, Nullable(UInt8))')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: -- sequenceNextNode (This was fine because it would fail in the next readBinary call, but better to add a test) SELECT finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(''forward'', ''head''), DateTime, Nullable(String), UInt8, Nullable(UInt8))')) SETTINGS allow_experimental_funnel_functions=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:96: DB::NodeBase, 64ul>::read(DB::ReadBuffer&, DB::Arena*) @ 0x000000001783157e in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:334: DB::SequenceNextNodeImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017836b3e in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ae6fa1 in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 2024.05.01 13:20:09.918866 [ 5967 ] {629f8e2a-ea95-4755-bb9f-da7da8c04dc3} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 44. Bytes expected: 65.: While processing finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(\'forward\', \'head\'), DateTime, Nullable(String), UInt8, Nullable(UInt8))')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:96: DB::NodeBase, 64ul>::read(DB::ReadBuffer&, DB::Arena*) @ 0x000000001783157e in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:334: DB::SequenceNextNodeImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017836b3e in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ae6fa1 in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 2024.05.01 13:20:10.030156 [ 5967 ] {0af89d7e-0a1e-4b21-9489-35ca33343b5f} executeQuery: Code: 128. DB::Exception: Too large node state size: While processing finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(\'forward\', \'head\'), DateTime, Nullable(String), UInt8, Nullable(UInt8))')). (TOO_LARGE_ARRAY_SIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: -- Fuzzer (ALL) SELECT finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(\'forward\', \'head\'), DateTime, Nullable(String), UInt8, Nullable(UInt8))')) SETTINGS allow_experimental_funnel_functions = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5d97de in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:90: DB::NodeBase, 64ul>::read(DB::ReadBuffer&, DB::Arena*) @ 0x0000000017831502 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:334: DB::SequenceNextNodeImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017836b3e in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ae6fa1 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:10.031609 [ 5967 ] {0af89d7e-0a1e-4b21-9489-35ca33343b5f} TCPHandler: Code: 128. DB::Exception: Too large node state size: While processing finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(\'forward\', \'head\'), DateTime, Nullable(String), UInt8, Nullable(UInt8))')). (TOO_LARGE_ARRAY_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5d97de in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:90: DB::NodeBase, 64ul>::read(DB::ReadBuffer&, DB::Arena*) @ 0x0000000017831502 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:334: DB::SequenceNextNodeImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017836b3e in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ae6fa1 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:10.045441 [ 5967 ] {cd171b32-174c-4da2-9687-148988174edc} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 44. Bytes expected: 65.: While processing finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(\'forward\', \'head\'), DateTime, Nullable(String), UInt8, Nullable(UInt8))')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: -- Fuzzer 2 (UBSAN) SELECT finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(\'forward\', \'head\'), DateTime, Nullable(String), UInt8, Nullable(UInt8))')) SETTINGS allow_experimental_funnel_functions = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:96: DB::NodeBase, 64ul>::read(DB::ReadBuffer&, DB::Arena*) @ 0x000000001783157e in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:334: DB::SequenceNextNodeImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017836b3e in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ae6fa1 in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 2024.05.01 13:20:10.046580 [ 5967 ] {cd171b32-174c-4da2-9687-148988174edc} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 44. Bytes expected: 65.: While processing finalizeAggregation(CAST(unhex('FFFFFFF014181056F38010000000000000001FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'), 'AggregateFunction(sequenceNextNode(\'forward\', \'head\'), DateTime, Nullable(String), UInt8, Nullable(UInt8))')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:96: DB::NodeBase, 64ul>::read(DB::ReadBuffer&, DB::Arena*) @ 0x000000001783157e in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSequenceNextNode.h:334: DB::SequenceNextNodeImpl>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017836b3e in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionNull.h:177: DB::AggregateFunctionNullBase>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000017ae6fa1 in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 2024.05.01 13:20:10.167653 [ 5967 ] {12841ec2-07d2-417a-ac00-cf684ec60fef} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 8. Bytes expected: 32.: While processing finalizeAggregation(CAST(unhex('04128345AA2BC97190'), 'AggregateFunction(uniqUpTo(10), String)')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: -- uniqUpTo SELECT finalizeAggregation(CAST(unhex('04128345AA2BC97190'), 'AggregateFunction(uniqUpTo(10), String)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionUniqUpTo.h:112: DB::AggregateFunctionUniqUpToData::read(DB::ReadBuffer&, char8_t) @ 0x00000000173d2b56 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionUniqUpTo.h:210: DB::AggregateFunctionUniqUpTo::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000173fbdc7 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:10.168714 [ 5967 ] {12841ec2-07d2-417a-ac00-cf684ec60fef} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 8. Bytes expected: 32.: While processing finalizeAggregation(CAST(unhex('04128345AA2BC97190'), 'AggregateFunction(uniqUpTo(10), String)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionUniqUpTo.h:112: DB::AggregateFunctionUniqUpToData::read(DB::ReadBuffer&, char8_t) @ 0x00000000173d2b56 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionUniqUpTo.h:210: DB::AggregateFunctionUniqUpTo::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000173fbdc7 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:10.278083 [ 5967 ] {c153ec23-11fd-464a-86b3-391b740b11d3} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 8. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0F0000000000000000'), 'AggregateFunction(quantileExact, UInt64)')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: -- quantiles SELECT finalizeAggregation(CAST(unhex('0F0000000000000000'), 'AggregateFunction(quantileExact, UInt64)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileExact.h:65: DB::QuantileExactBase>::deserialize(DB::ReadBuffer&) @ 0x0000000014801ad7 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:193: DB::AggregateFunctionQuantile, DB::NameQuantileExact, false, void, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000147ff717 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:10.279071 [ 5967 ] {c153ec23-11fd-464a-86b3-391b740b11d3} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 8. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0F0000000000000000'), 'AggregateFunction(quantileExact, UInt64)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileExact.h:65: DB::QuantileExactBase>::deserialize(DB::ReadBuffer&) @ 0x0000000014801ad7 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:193: DB::AggregateFunctionQuantile, DB::NameQuantileExact, false, void, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x00000000147ff717 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:10.386683 [ 5967 ] {817419ca-e3ce-464e-9790-2875fa98edb8} executeQuery: Code: 33. DB::Exception: Cannot read all data. Bytes read: 8. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0F000000000000803F'), 'AggregateFunction(quantileTDigest, UInt64)')). (CANNOT_READ_ALL_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37664) (comment: 02477_invalid_reads.sql) (in query: SELECT finalizeAggregation(CAST(unhex('0F000000000000803F'), 'AggregateFunction(quantileTDigest, UInt64)'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileTDigest.h:319: DB::QuantileTDigest::deserialize(DB::ReadBuffer&) @ 0x0000000014c90a5c in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:193: DB::AggregateFunctionQuantile, DB::NameQuantileTDigest, false, float, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014c8deb7 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:10.387738 [ 5967 ] {817419ca-e3ce-464e-9790-2875fa98edb8} TCPHandler: Code: 33. DB::Exception: Cannot read all data. Bytes read: 8. Bytes expected: 120.: While processing finalizeAggregation(CAST(unhex('0F000000000000803F'), 'AggregateFunction(quantileTDigest, UInt64)')). (CANNOT_READ_ALL_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x000000000b5d8c8c in /usr/bin/clickhouse 6. /build/src/IO/ReadBuffer.h:198: DB::ReadBuffer::readStrict(char*, unsigned long) @ 0x000000000b5d8aaf in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileTDigest.h:319: DB::QuantileTDigest::deserialize(DB::ReadBuffer&) @ 0x0000000014c90a5c in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:193: DB::AggregateFunctionQuantile, DB::NameQuantileTDigest, false, float, false>::deserialize(char*, DB::ReadBuffer&, std::optional, DB::Arena*) const @ 0x0000000014c8deb7 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:132: DB::deserializeFromString(std::shared_ptr const&, DB::IColumn&, String const&, unsigned long) @ 0x000000001ba205ea in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationAggregateFunction.cpp:181: DB::SerializationAggregateFunction::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2081b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1601: DB::ConvertImplGenericFromString::executeImpl(DB::IColumn const&, DB::IColumn&, DB::ISerialization const&, unsigned long, DB::PODArray, 63ul, 64ul> const*, DB::IDataType const*) @ 0x000000000b20edf3 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1571: DB::ConvertImplGenericFromString::execute(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b20eb6b in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212066 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(COW::immutable_ptr (*&)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b212000 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b211fa0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (*)(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b211f48 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:20:15.607667 [ 6164 ] {6282b8ad-8a14-437e-a9f6-830bd0818b6e} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00, current rows: 30.00: While executing Numbers. (TOO_MANY_ROWS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56680) (comment: 02465_limit_trivial_max_rows_to_read.sql) (in query: SELECT number FROM numbers(30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b86de24 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683891 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:20:15.608764 [ 6164 ] {6282b8ad-8a14-437e-a9f6-830bd0818b6e} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00, current rows: 30.00: While executing Numbers. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b86de24 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683891 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:20:15.622149 [ 6164 ] {6464a452-c1e3-49fc-8e5c-2ec5cf1b94f0} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00, current rows: 30.00: While executing Numbers. (TOO_MANY_ROWS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56680) (comment: 02465_limit_trivial_max_rows_to_read.sql) (in query: SELECT number FROM numbers(30) LIMIT 21;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b86de24 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683891 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:20:15.623248 [ 6164 ] {6464a452-c1e3-49fc-8e5c-2ec5cf1b94f0} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 20.00, current rows: 30.00: While executing Numbers. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b86de24 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683891 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:20:15.783995 [ 6164 ] {7593696f-af1b-402f-8c98-66cb583f4d26} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 20.00, current rows: 100.00. (TOO_MANY_ROWS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56680) (comment: 02465_limit_trivial_max_rows_to_read.sql) (in query: SELECT a FROM t_max_rows_to_read LIMIT 11 offset 11;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:15.784781 [ 6164 ] {7593696f-af1b-402f-8c98-66cb583f4d26} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 20.00, current rows: 100.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:15.800986 [ 6164 ] {5fca4b2e-9a47-4501-89d9-37c429eea6a2} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 20.00, current rows: 52.00. (TOO_MANY_ROWS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56680) (comment: 02465_limit_trivial_max_rows_to_read.sql) (in query: SELECT a FROM t_max_rows_to_read WHERE a > 50 LIMIT 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:15.802279 [ 6164 ] {5fca4b2e-9a47-4501-89d9-37c429eea6a2} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 20.00, current rows: 52.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:22.084948 [ 12038 ] {10d49597-d38e-4a89-960b-32de0021cadf} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:44642) (comment: 02461_cancel_finish_race.sh) (in query: KILL QUERY WHERE current_database = 'test_7jyt2uss' SYNC FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:22.085023 [ 12036 ] {b68e8187-a2c7-4b85-9494-d4fec1072c7f} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:44628) (comment: 02461_cancel_finish_race.sh) (in query: KILL QUERY WHERE current_database = 'test_7jyt2uss' SYNC FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:22.086453 [ 12038 ] {10d49597-d38e-4a89-960b-32de0021cadf} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:22.086719 [ 12036 ] {b68e8187-a2c7-4b85-9494-d4fec1072c7f} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:26.667986 [ 12028 ] {b3db58c3-060b-4912-bcad-cc214d7b0c49} executeQuery: Code: 36. DB::Exception: Bad hdfs url: . It should have structure 'hdfs://:/'. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:44872) (comment: 02458_empty_hdfs_url.sql) (in query: SELECT * FROM hdfsCluster('test_shard_localhost', '', 'TSV');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/HDFS/HDFSCommon.cpp:199: DB::checkHDFSURL(String const&) @ 0x000000001ae8aab9 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFSCluster.cpp:53: DB::StorageHDFSCluster::StorageHDFSCluster(std::shared_ptr, String const&, String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, bool) @ 0x000000001ae8ccdc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFSCluster* std::construct_at[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, DB::StorageHDFSCluster*>(DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b69ff in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void, void>(std::allocator&, DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b6755 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool>(std::allocator, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b63e3 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::allocator const&, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b61f5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b54bb in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionHDFSCluster.cpp:40: DB::TableFunctionHDFSCluster::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a9b50b5 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a974147 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 16. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 17. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:20:26.669076 [ 12028 ] {b3db58c3-060b-4912-bcad-cc214d7b0c49} TCPHandler: Code: 36. DB::Exception: Bad hdfs url: . It should have structure 'hdfs://:/'. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/HDFS/HDFSCommon.cpp:199: DB::checkHDFSURL(String const&) @ 0x000000001ae8aab9 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFSCluster.cpp:53: DB::StorageHDFSCluster::StorageHDFSCluster(std::shared_ptr, String const&, String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, bool) @ 0x000000001ae8ccdc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFSCluster* std::construct_at[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, DB::StorageHDFSCluster*>(DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b69ff in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void, void>(std::allocator&, DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b6755 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool>(std::allocator, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b63e3 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::allocator const&, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b61f5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b54bb in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionHDFSCluster.cpp:40: DB::TableFunctionHDFSCluster::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a9b50b5 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a974147 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 16. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 17. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:20:26.694987 [ 12028 ] {1e695a52-a83e-485d-9f5b-79164929da80} executeQuery: Code: 36. DB::Exception: Bad hdfs url: . It should have structure 'hdfs://:/'. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:44872) (comment: 02458_empty_hdfs_url.sql) (in query: SELECT * FROM hdfsCluster('test_shard_localhost', ' ', 'TSV');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/HDFS/HDFSCommon.cpp:199: DB::checkHDFSURL(String const&) @ 0x000000001ae8aab9 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFSCluster.cpp:53: DB::StorageHDFSCluster::StorageHDFSCluster(std::shared_ptr, String const&, String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, bool) @ 0x000000001ae8ccdc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFSCluster* std::construct_at[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, DB::StorageHDFSCluster*>(DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b69ff in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void, void>(std::allocator&, DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b6755 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool>(std::allocator, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b63e3 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::allocator const&, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b61f5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b54bb in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionHDFSCluster.cpp:40: DB::TableFunctionHDFSCluster::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a9b50b5 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a974147 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 16. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 17. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:20:26.696135 [ 12028 ] {1e695a52-a83e-485d-9f5b-79164929da80} TCPHandler: Code: 36. DB::Exception: Bad hdfs url: . It should have structure 'hdfs://:/'. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/HDFS/HDFSCommon.cpp:199: DB::checkHDFSURL(String const&) @ 0x000000001ae8aab9 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFSCluster.cpp:53: DB::StorageHDFSCluster::StorageHDFSCluster(std::shared_ptr, String const&, String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, bool) @ 0x000000001ae8ccdc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFSCluster* std::construct_at[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, DB::StorageHDFSCluster*>(DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b69ff in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void, void>(std::allocator&, DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b6755 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool>(std::allocator, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b63e3 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::allocator const&, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b61f5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b54bb in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionHDFSCluster.cpp:40: DB::TableFunctionHDFSCluster::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a9b50b5 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a974147 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 16. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 17. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:20:26.703781 [ 12028 ] {3de120fd-2ee3-40de-9b93-23e1aa44dee6} executeQuery: Code: 36. DB::Exception: Bad hdfs url: /. It should have structure 'hdfs://:/'. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:44872) (comment: 02458_empty_hdfs_url.sql) (in query: SELECT * FROM hdfsCluster('test_shard_localhost', '/', 'TSV');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/HDFS/HDFSCommon.cpp:199: DB::checkHDFSURL(String const&) @ 0x000000001ae8aab9 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFSCluster.cpp:53: DB::StorageHDFSCluster::StorageHDFSCluster(std::shared_ptr, String const&, String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, bool) @ 0x000000001ae8ccdc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFSCluster* std::construct_at[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, DB::StorageHDFSCluster*>(DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b69ff in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void, void>(std::allocator&, DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b6755 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool>(std::allocator, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b63e3 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::allocator const&, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b61f5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b54bb in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionHDFSCluster.cpp:40: DB::TableFunctionHDFSCluster::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a9b50b5 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a974147 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 16. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 17. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:20:26.704706 [ 12028 ] {3de120fd-2ee3-40de-9b93-23e1aa44dee6} TCPHandler: Code: 36. DB::Exception: Bad hdfs url: /. It should have structure 'hdfs://:/'. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/HDFS/HDFSCommon.cpp:199: DB::checkHDFSURL(String const&) @ 0x000000001ae8aab9 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFSCluster.cpp:53: DB::StorageHDFSCluster::StorageHDFSCluster(std::shared_ptr, String const&, String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, bool) @ 0x000000001ae8ccdc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFSCluster* std::construct_at[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, DB::StorageHDFSCluster*>(DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b69ff in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void, void>(std::allocator&, DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b6755 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool>(std::allocator, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b63e3 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::allocator const&, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b61f5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b54bb in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionHDFSCluster.cpp:40: DB::TableFunctionHDFSCluster::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a9b50b5 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a974147 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 16. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 17. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:20:26.726516 [ 12028 ] {9ac0d05b-89f8-415e-871b-6f16c4b02ba0} executeQuery: Code: 36. DB::Exception: Bad hdfs url: http/. It should have structure 'hdfs://:/'. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:44872) (comment: 02458_empty_hdfs_url.sql) (in query: SELECT * FROM hdfsCluster('test_shard_localhost', 'http/', 'TSV');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/HDFS/HDFSCommon.cpp:199: DB::checkHDFSURL(String const&) @ 0x000000001ae8aab9 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFSCluster.cpp:53: DB::StorageHDFSCluster::StorageHDFSCluster(std::shared_ptr, String const&, String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, bool) @ 0x000000001ae8ccdc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFSCluster* std::construct_at[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, DB::StorageHDFSCluster*>(DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b69ff in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void, void>(std::allocator&, DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b6755 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool>(std::allocator, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b63e3 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::allocator const&, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b61f5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b54bb in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionHDFSCluster.cpp:40: DB::TableFunctionHDFSCluster::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a9b50b5 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a974147 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 16. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 17. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:20:26.727573 [ 12028 ] {9ac0d05b-89f8-415e-871b-6f16c4b02ba0} TCPHandler: Code: 36. DB::Exception: Bad hdfs url: http/. It should have structure 'hdfs://:/'. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/HDFS/HDFSCommon.cpp:199: DB::checkHDFSURL(String const&) @ 0x000000001ae8aab9 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFSCluster.cpp:53: DB::StorageHDFSCluster::StorageHDFSCluster(std::shared_ptr, String const&, String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, bool) @ 0x000000001ae8ccdc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFSCluster* std::construct_at[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, DB::StorageHDFSCluster*>(DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b69ff in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void, void>(std::allocator&, DB::StorageHDFSCluster*, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b6755 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool>(std::allocator, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b63e3 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::allocator const&, std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b61f5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String const&, String const&, DB::StorageID, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription, String const&, bool, void>(std::shared_ptr&, String const&, String const&, DB::StorageID&&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription&&, String const&, bool&&) @ 0x000000001a9b54bb in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionHDFSCluster.cpp:40: DB::TableFunctionHDFSCluster::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a9b50b5 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a974147 in /usr/bin/clickhouse 15. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 16. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 17. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:20:29.235071 [ 12036 ] {813c3217-f50c-42ba-ae31-c8ae5a742024} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45310) (comment: 02461_cancel_finish_race.sh) (in query: KILL QUERY WHERE current_database = 'test_7jyt2uss' SYNC FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:29.236638 [ 12036 ] {813c3217-f50c-42ba-ae31-c8ae5a742024} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:31.745365 [ 12030 ] {f56bc77b-b5cf-431f-bf54-b286ffab97fb} executeQuery: Code: 41. DB::ParsingException: Cannot read DateTime: unexpected word after Date: While processing parseDateTimeBestEffort('01/12/2017,'). (CANNOT_PARSE_DATETIME) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45426) (comment: 02457_parse_date_time_best_effort.sql) (in query: select parseDateTimeBestEffort('01/12/2017,');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b25d437 in /usr/bin/clickhouse 6. /build/src/IO/parseDateTimeBestEffort.cpp:98: auto void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*)::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x00000000139a9c58 in /usr/bin/clickhouse 7. /build/src/IO/parseDateTimeBestEffort.cpp:575: void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*) @ 0x00000000139a2d80 in /usr/bin/clickhouse 8. /build/src/IO/parseDateTimeBestEffort.cpp:686: DB::parseDateTimeBestEffort(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&) @ 0x00000000139a0f72 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1380: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbe5dc6 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbe52f4 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbe407c in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:20:31.762316 [ 12030 ] {f56bc77b-b5cf-431f-bf54-b286ffab97fb} TCPHandler: Code: 41. DB::ParsingException: Cannot read DateTime: unexpected word after Date: While processing parseDateTimeBestEffort('01/12/2017,'). (CANNOT_PARSE_DATETIME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b25d437 in /usr/bin/clickhouse 6. /build/src/IO/parseDateTimeBestEffort.cpp:98: auto void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*)::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x00000000139a9c58 in /usr/bin/clickhouse 7. /build/src/IO/parseDateTimeBestEffort.cpp:575: void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*) @ 0x00000000139a2d80 in /usr/bin/clickhouse 8. /build/src/IO/parseDateTimeBestEffort.cpp:686: DB::parseDateTimeBestEffort(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&) @ 0x00000000139a0f72 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1380: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbe5dc6 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbe52f4 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbe407c in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:20:32.015815 [ 12030 ] {6c85f4e5-d62f-4240-868e-ab2b88aa2a57} executeQuery: Code: 41. DB::ParsingException: Cannot read DateTime: unexpected word after Date: While processing parseDateTimeBestEffortUS('18:31:44,,,, 31/12/2015'). (CANNOT_PARSE_DATETIME) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45426) (comment: 02457_parse_date_time_best_effort.sql) (in query: select parseDateTimeBestEffortUS('18:31:44,,,, 31/12/2015');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b25d437 in /usr/bin/clickhouse 6. /build/src/IO/parseDateTimeBestEffort.cpp:98: auto void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*)::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x00000000139ab498 in /usr/bin/clickhouse 7. /build/src/IO/parseDateTimeBestEffort.cpp:575: void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*) @ 0x00000000139a4de0 in /usr/bin/clickhouse 8. /build/src/IO/parseDateTimeBestEffort.cpp:691: DB::parseDateTimeBestEffortUS(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&) @ 0x00000000139a3172 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1395: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbf58e6 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbf4e14 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbf3b1c in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:20:32.017127 [ 12030 ] {6c85f4e5-d62f-4240-868e-ab2b88aa2a57} TCPHandler: Code: 41. DB::ParsingException: Cannot read DateTime: unexpected word after Date: While processing parseDateTimeBestEffortUS('18:31:44,,,, 31/12/2015'). (CANNOT_PARSE_DATETIME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b25d437 in /usr/bin/clickhouse 6. /build/src/IO/parseDateTimeBestEffort.cpp:98: auto void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*)::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x00000000139ab498 in /usr/bin/clickhouse 7. /build/src/IO/parseDateTimeBestEffort.cpp:575: void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*) @ 0x00000000139a4de0 in /usr/bin/clickhouse 8. /build/src/IO/parseDateTimeBestEffort.cpp:691: DB::parseDateTimeBestEffortUS(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&) @ 0x00000000139a3172 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1395: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbf58e6 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbf4e14 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbf3b1c in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:20:32.222226 [ 12030 ] {2b023f48-7001-4043-914d-f83661cef7c9} executeQuery: Code: 6. DB::Exception: Cannot parse string '18:31:44, 31/12/2015,' as DateTime: syntax error at position 20 (parsed just '18:31:44, 31/12/2015'): While processing parseDateTimeBestEffortUS('18:31:44, 31/12/2015,'). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45426) (comment: 02457_parse_date_time_best_effort.sql) (in query: select parseDateTimeBestEffortUS('18:31:44, 31/12/2015,');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbf5968 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbf4e14 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbf3b1c in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:20:32.223626 [ 12030 ] {2b023f48-7001-4043-914d-f83661cef7c9} TCPHandler: Code: 6. DB::Exception: Cannot parse string '18:31:44, 31/12/2015,' as DateTime: syntax error at position 20 (parsed just '18:31:44, 31/12/2015'): While processing parseDateTimeBestEffortUS('18:31:44, 31/12/2015,'). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbf5968 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbf4e14 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbf3b1c in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:20:32.554043 [ 12030 ] {e0714173-2cff-4b9f-9816-e11858034da2} executeQuery: Code: 6. DB::Exception: Cannot parse string '01/12/2017, 18:31:44,' as DateTime: syntax error at position 20 (parsed just '01/12/2017, 18:31:44'): While processing parseDateTimeBestEffort('01/12/2017, 18:31:44,'). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45426) (comment: 02457_parse_date_time_best_effort.sql) (in query: select parseDateTimeBestEffort('01/12/2017, 18:31:44,');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbe5e48 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbe52f4 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbe407c in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:20:32.555057 [ 12030 ] {e0714173-2cff-4b9f-9816-e11858034da2} TCPHandler: Code: 6. DB::Exception: Cannot parse string '01/12/2017, 18:31:44,' as DateTime: syntax error at position 20 (parsed just '01/12/2017, 18:31:44'): While processing parseDateTimeBestEffort('01/12/2017, 18:31:44,'). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbe5e48 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbe52f4 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbe407c in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:20:32.561909 [ 1132 ] {c9f580b0-ec60-47a1-a6f8-2b05819f43fe} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45516) (comment: 02461_cancel_finish_race.sh) (in query: SELECT count() FROM numbers_mt(10000) WHERE rand() = 0 FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:32.563133 [ 12030 ] {4e6d0f93-5b00-47e9-8559-a9f7e93ceead} executeQuery: Code: 41. DB::ParsingException: Cannot read DateTime: unexpected word after Date: While processing parseDateTimeBestEffort('01/12/2017, ,,,18:31:44'). (CANNOT_PARSE_DATETIME) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45426) (comment: 02457_parse_date_time_best_effort.sql) (in query: select parseDateTimeBestEffort('01/12/2017, ,,,18:31:44');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b25d437 in /usr/bin/clickhouse 6. /build/src/IO/parseDateTimeBestEffort.cpp:98: auto void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*)::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x00000000139a9c58 in /usr/bin/clickhouse 7. /build/src/IO/parseDateTimeBestEffort.cpp:575: void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*) @ 0x00000000139a2d80 in /usr/bin/clickhouse 8. /build/src/IO/parseDateTimeBestEffort.cpp:686: DB::parseDateTimeBestEffort(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&) @ 0x00000000139a0f72 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1380: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbe5dc6 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbe52f4 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbe407c in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:20:32.563990 [ 12030 ] {4e6d0f93-5b00-47e9-8559-a9f7e93ceead} TCPHandler: Code: 41. DB::ParsingException: Cannot read DateTime: unexpected word after Date: While processing parseDateTimeBestEffort('01/12/2017, ,,,18:31:44'). (CANNOT_PARSE_DATETIME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b25d437 in /usr/bin/clickhouse 6. /build/src/IO/parseDateTimeBestEffort.cpp:98: auto void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*)::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x00000000139a9c58 in /usr/bin/clickhouse 7. /build/src/IO/parseDateTimeBestEffort.cpp:575: void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*) @ 0x00000000139a2d80 in /usr/bin/clickhouse 8. /build/src/IO/parseDateTimeBestEffort.cpp:686: DB::parseDateTimeBestEffort(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&) @ 0x00000000139a0f72 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1380: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbe5dc6 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbe52f4 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbe407c in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:20:32.567117 [ 1132 ] {c9f580b0-ec60-47a1-a6f8-2b05819f43fe} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:32.571734 [ 12030 ] {ec2928da-78a8-477a-96f5-1b3818b806ab} executeQuery: Code: 41. DB::ParsingException: Cannot read DateTime: unexpected word after Date: While processing parseDateTimeBestEffort('18:31:44 ,,,,, 31/12/2015'). (CANNOT_PARSE_DATETIME) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45426) (comment: 02457_parse_date_time_best_effort.sql) (in query: select parseDateTimeBestEffort('18:31:44 ,,,,, 31/12/2015');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b25d437 in /usr/bin/clickhouse 6. /build/src/IO/parseDateTimeBestEffort.cpp:98: auto void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*)::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x00000000139a9c58 in /usr/bin/clickhouse 7. /build/src/IO/parseDateTimeBestEffort.cpp:575: void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*) @ 0x00000000139a2d80 in /usr/bin/clickhouse 8. /build/src/IO/parseDateTimeBestEffort.cpp:686: DB::parseDateTimeBestEffort(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&) @ 0x00000000139a0f72 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1380: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbe5dc6 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbe52f4 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbe407c in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:20:32.572887 [ 12030 ] {ec2928da-78a8-477a-96f5-1b3818b806ab} TCPHandler: Code: 41. DB::ParsingException: Cannot read DateTime: unexpected word after Date: While processing parseDateTimeBestEffort('18:31:44 ,,,,, 31/12/2015'). (CANNOT_PARSE_DATETIME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b25d437 in /usr/bin/clickhouse 6. /build/src/IO/parseDateTimeBestEffort.cpp:98: auto void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*)::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x00000000139a9c58 in /usr/bin/clickhouse 7. /build/src/IO/parseDateTimeBestEffort.cpp:575: void DB::(anonymous namespace)::parseDateTimeBestEffortImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&, DB::(anonymous namespace)::DateTimeSubsecondPart*) @ 0x00000000139a2d80 in /usr/bin/clickhouse 8. /build/src/IO/parseDateTimeBestEffort.cpp:686: DB::parseDateTimeBestEffort(long&, DB::ReadBuffer&, DateLUTImpl const&, DateLUTImpl const&) @ 0x00000000139a0f72 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1380: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000bbe5dc6 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2244: COW::immutable_ptr DB::FunctionConvertFromString::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) const @ 0x000000000bbe52f4 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2280: DB::FunctionConvertFromString::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bbe407c in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:20:33.872454 [ 5967 ] {70bfb221-8a8f-4e8b-a386-8dbd179d83ea} executeQuery: Code: 252. DB::Exception: Too many parts (5 with average size of 117.00 B) in table 'test_jl4jt395.test_02521_insert_delay (bcfce103-c948-4336-81cf-3d6221260acd)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45598) (comment: 02521_incorrect_dealy_for_insert_bug_44902.sh) (in query: INSERT INTO test_02521_insert_delay VALUES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001de8eae8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001de40fa4 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e34042c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001eb5fc99 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fc35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fbfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f015 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:93: DB::PushingPipelineExecutor::start() @ 0x000000001e6920b6 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:841: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3c2a in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:20:33.894460 [ 5967 ] {70bfb221-8a8f-4e8b-a386-8dbd179d83ea} TCPHandler: Code: 252. DB::Exception: Too many parts (5 with average size of 117.00 B) in table 'test_jl4jt395.test_02521_insert_delay (bcfce103-c948-4336-81cf-3d6221260acd)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001de8eae8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001de40fa4 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e34042c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001eb5fc99 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fc35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fbfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f015 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:93: DB::PushingPipelineExecutor::start() @ 0x000000001e6920b6 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:841: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3c2a in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:20:35.898805 [ 5967 ] {28fdac16-a1c0-4f0b-945c-b142e258ef85} executeQuery: Code: 479. DB::Exception: Unknown disk name __un_exists_disk while execute function filesystemCapacity: While processing filesystemCapacity('__un_exists_disk'). (UNKNOWN_DISK) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45644) (comment: 02457_filesystem_function.sql) (in query: select filesystemCapacity('__un_exists_disk');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&&) @ 0x000000000d9f342c in /usr/bin/clickhouse 6. /build/src/Functions/filesystem.cpp:100: DB::(anonymous namespace)::FilesystemImpl::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1cb6e5 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:20:35.899875 [ 5967 ] {28fdac16-a1c0-4f0b-945c-b142e258ef85} TCPHandler: Code: 479. DB::Exception: Unknown disk name __un_exists_disk while execute function filesystemCapacity: While processing filesystemCapacity('__un_exists_disk'). (UNKNOWN_DISK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&&) @ 0x000000000d9f342c in /usr/bin/clickhouse 6. /build/src/Functions/filesystem.cpp:100: DB::(anonymous namespace)::FilesystemImpl::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1cb6e5 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:20:36.089257 [ 12026 ] {02726dda-353c-4bfa-b98b-e161efce7725} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45714) (comment: 02461_cancel_finish_race.sh) (in query: KILL QUERY WHERE current_database = 'test_7jyt2uss' SYNC FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:36.090987 [ 12026 ] {02726dda-353c-4bfa-b98b-e161efce7725} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:36.152279 [ 12025 ] {60ec6839-1132-4652-a4b2-b56adf5ca96b} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45720) (comment: 02461_cancel_finish_race.sh) (in query: KILL QUERY WHERE current_database = 'test_7jyt2uss' SYNC FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:36.154143 [ 12025 ] {60ec6839-1132-4652-a4b2-b56adf5ca96b} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:36.252113 [ 12030 ] {74c9f273-0e96-449c-88b1-de7ca8da654a} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45738) (comment: 02461_cancel_finish_race.sh) (in query: SELECT count() FROM numbers_mt(10000) WHERE rand() = 0 FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:36.274502 [ 12030 ] {74c9f273-0e96-449c-88b1-de7ca8da654a} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:37.253565 [ 12029 ] {53387f45-81f8-4d74-ad90-e4490951e424} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45786) (comment: 02461_cancel_finish_race.sh) (in query: KILL QUERY WHERE current_database = 'test_7jyt2uss' SYNC FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:37.255096 [ 12029 ] {53387f45-81f8-4d74-ad90-e4490951e424} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:42.174212 [ 12040 ] {394dff92-96cf-4c50-9783-bf0be19a8e3a} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48254) (comment: 02461_cancel_finish_race.sh) (in query: SELECT count() FROM numbers_mt(10000) WHERE rand() = 0 FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:437: DB::QueryStatus::addPipelineExecutor(DB::PipelineExecutor*) @ 0x000000001cc99e3f in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:63: DB::PipelineExecutor::PipelineExecutor(std::shared_ptr, std::allocator>>>&, std::shared_ptr) @ 0x000000001e6667dd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::PipelineExecutor* std::construct_at[abi:v15000], std::allocator>>>&, std::shared_ptr&, DB::PipelineExecutor*>(DB::PipelineExecutor*, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b863c67 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], std::allocator>>>&, std::shared_ptr&, void, void>(std::allocator&, DB::PipelineExecutor*, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b863a09 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], std::allocator>>>&, std::shared_ptr&>(std::allocator, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b86370f in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr, std::allocator>>>&, std::shared_ptr&, void>(std::allocator const&, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b863582 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], std::allocator>>>&, std::shared_ptr&, void>(std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b85760e in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:106: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long) @ 0x000000001e688e2a in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:153: DB::PullingAsyncPipelineExecutor::pull(DB::Block&, unsigned long) @ 0x000000001e689329 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:914: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e1e7f in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:42.210594 [ 12040 ] {394dff92-96cf-4c50-9783-bf0be19a8e3a} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:437: DB::QueryStatus::addPipelineExecutor(DB::PipelineExecutor*) @ 0x000000001cc99e3f in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:63: DB::PipelineExecutor::PipelineExecutor(std::shared_ptr, std::allocator>>>&, std::shared_ptr) @ 0x000000001e6667dd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::PipelineExecutor* std::construct_at[abi:v15000], std::allocator>>>&, std::shared_ptr&, DB::PipelineExecutor*>(DB::PipelineExecutor*, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b863c67 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], std::allocator>>>&, std::shared_ptr&, void, void>(std::allocator&, DB::PipelineExecutor*, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b863a09 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], std::allocator>>>&, std::shared_ptr&>(std::allocator, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b86370f in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr, std::allocator>>>&, std::shared_ptr&, void>(std::allocator const&, std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b863582 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], std::allocator>>>&, std::shared_ptr&, void>(std::shared_ptr, std::allocator>>>&, std::shared_ptr&) @ 0x000000001b85760e in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:106: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long) @ 0x000000001e688e2a in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:153: DB::PullingAsyncPipelineExecutor::pull(DB::Block&, unsigned long) @ 0x000000001e689329 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:914: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e1e7f in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:43.680543 [ 12028 ] {b6417d1e-0a6e-4682-9451-9febcf7cc43a} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48404) (comment: 02461_cancel_finish_race.sh) (in query: SELECT count() FROM numbers_mt(10000) WHERE rand() = 0 FORMAT Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:43.703429 [ 12028 ] {b6417d1e-0a6e-4682-9451-9febcf7cc43a} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:45.587215 [ 12026 ] {d6f707e4-2f84-49f0-a42b-f877f5bf4e0c} executeQuery: Code: 277. DB::Exception: Index `ix1` is not used and setting 'force_data_skipping_indices' contains it. (INDEX_NOT_USED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48388) (comment: 02456_bloom_filter_assert.gen.sql) (in query: SELECT count() FROM bftest__fuzz_21 WHERE hasAll(x, [42, -42]) SETTINGS use_skip_indexes=1, force_data_skipping_indices='ix1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:929: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001df4cdeb in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1498: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee37b04 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1375: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee34f81 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001ee34c98 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1682: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001ee39f6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1790: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3afdb in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:45.602607 [ 12026 ] {d6f707e4-2f84-49f0-a42b-f877f5bf4e0c} TCPHandler: Code: 277. DB::Exception: Index `ix1` is not used and setting 'force_data_skipping_indices' contains it. (INDEX_NOT_USED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:929: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001df4cdeb in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1498: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee37b04 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1375: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee34f81 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001ee34c98 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1682: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001ee39f6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1790: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3afdb in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:45.871183 [ 12026 ] {a2a1ea8a-72a4-4fa3-97f2-06d9d7975001} executeQuery: Code: 277. DB::Exception: Index `ix1` is not used and setting 'force_data_skipping_indices' contains it. (INDEX_NOT_USED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48388) (comment: 02456_bloom_filter_assert.gen.sql) (in query: SELECT count() FROM bftest__fuzz_21 WHERE hasAll(x, [42, -42]) SETTINGS use_skip_indexes=1, force_data_skipping_indices='ix1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:929: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001df4cdeb in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1498: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee37b04 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1375: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee34f81 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001ee34c98 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1682: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001ee39f6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1790: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3afdb in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:45.872222 [ 12026 ] {a2a1ea8a-72a4-4fa3-97f2-06d9d7975001} TCPHandler: Code: 277. DB::Exception: Index `ix1` is not used and setting 'force_data_skipping_indices' contains it. (INDEX_NOT_USED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:929: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001df4cdeb in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1498: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee37b04 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1375: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee34f81 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001ee34c98 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1682: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001ee39f6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1790: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3afdb in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:46.189588 [ 12026 ] {dce6a804-9064-4fde-a401-15535aef401d} executeQuery: Code: 277. DB::Exception: Index `ix1` is not used and setting 'force_data_skipping_indices' contains it. (INDEX_NOT_USED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48388) (comment: 02456_bloom_filter_assert.gen.sql) (in query: SELECT count() FROM bftest__fuzz_21 WHERE hasAll(x, [42, -42]) SETTINGS use_skip_indexes=1, force_data_skipping_indices='ix1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:929: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001df4cdeb in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1498: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee37b04 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1375: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee34f81 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001ee34c98 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1682: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001ee39f6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1790: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3afdb in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:46.190355 [ 12026 ] {dce6a804-9064-4fde-a401-15535aef401d} TCPHandler: Code: 277. DB::Exception: Index `ix1` is not used and setting 'force_data_skipping_indices' contains it. (INDEX_NOT_USED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:929: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001df4cdeb in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1498: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee37b04 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1375: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee34f81 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001ee34c98 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1682: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001ee39f6c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1790: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3afdb in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:48.704472 [ 12028 ] {} ServerErrorHandler: Code: 210. DB::NetException: Connection reset by peer, while reading from socket ([::1]:48646). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000013ce5a0c in /usr/bin/clickhouse 6. /build/src/IO/ReadBufferFromPocoSocket.cpp:86: DB::ReadBufferFromPocoSocket::nextImpl() @ 0x0000000013ce4c80 in /usr/bin/clickhouse 7. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21033c in /usr/bin/clickhouse 8. /build/src/IO/ReadBuffer.h:105: DB::TCPHandler::runImpl() @ 0x000000001e5d8fa1 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 15. ? @ 0x00007fcde32fbac3 in ? 16. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:20:49.356493 [ 12035 ] {6e0dd013-cf52-4425-a463-f6b67008aaf7} executeQuery: Code: 44. DB::Exception: Cannot create table with column '_row_exists' for *MergeTree engines because it is reserved for lightweight delete feature. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56654) (comment: 02454_disable_mergetree_with_lightweight_delete_column.sql) (in query: CREATE TABLE t_row_exists (`a` int, `_row_exists` int) ENGINE = MergeTree ORDER BY a SETTINGS index_granularity = 52224, min_bytes_for_wide_part = 782574318, ratio_of_defaults_for_sparse_serialization = 0., merge_max_block_size = 13313, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 1, index_granularity_bytes = 31276900, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 95679, primary_key_compress_block_size = 59272), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:830: DB::InterpreterCreateQuery::validateTableStructure(DB::ASTCreateQuery const&, DB::InterpreterCreateQuery::TableProperties const&) const @ 0x000000001c7e1287 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:805: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7dff10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:49.357367 [ 12035 ] {6e0dd013-cf52-4425-a463-f6b67008aaf7} TCPHandler: Code: 44. DB::Exception: Cannot create table with column '_row_exists' for *MergeTree engines because it is reserved for lightweight delete feature. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:830: DB::InterpreterCreateQuery::validateTableStructure(DB::ASTCreateQuery const&, DB::InterpreterCreateQuery::TableProperties const&) const @ 0x000000001c7e1287 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:805: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7dff10 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:49.469927 [ 12035 ] {f65b5ded-724f-43b4-ad81-0bb86619611a} executeQuery: Code: 44. DB::Exception: Cannot add column `_row_exists`: this column name is reserved for lightweight delete feature. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56654) (comment: 02454_disable_mergetree_with_lightweight_delete_column.sql) (in query: alter table t_row_exists add column _row_exists int;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1100: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d57d516 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:49.470722 [ 12035 ] {f65b5ded-724f-43b4-ad81-0bb86619611a} TCPHandler: Code: 44. DB::Exception: Cannot add column `_row_exists`: this column name is reserved for lightweight delete feature. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1100: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d57d516 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:49.563507 [ 12035 ] {8597678a-e7c1-423d-af22-842e0b023f4b} executeQuery: Code: 44. DB::Exception: Cannot rename to `_row_exists`: this column name is reserved for lightweight delete feature. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56654) (comment: 02454_disable_mergetree_with_lightweight_delete_column.sql) (in query: alter table t_row_exists rename column b to _row_exists;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1309: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d58058e in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:49.564279 [ 12035 ] {8597678a-e7c1-423d-af22-842e0b023f4b} TCPHandler: Code: 44. DB::Exception: Cannot rename to `_row_exists`: this column name is reserved for lightweight delete feature. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1309: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d58058e in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:49.660218 [ 12035 ] {cba60b37-e55c-453d-8173-109101da38e3} executeQuery: Code: 10. DB::Exception: Wrong column name. Cannot find column `_row_exists` to rename. (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56654) (comment: 02454_disable_mergetree_with_lightweight_delete_column.sql) (in query: alter table t_row_exists rename column _row_exists to c;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1298: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d580211 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:49.661009 [ 12035 ] {cba60b37-e55c-453d-8173-109101da38e3} TCPHandler: Code: 10. DB::Exception: Wrong column name. Cannot find column `_row_exists` to rename. (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1298: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d580211 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:49.752187 [ 12035 ] {347a6a47-696f-43b5-97ba-0a61a11ff6fc} executeQuery: Code: 10. DB::Exception: Wrong column name. Cannot find column `_row_exists` to drop. (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56654) (comment: 02454_disable_mergetree_with_lightweight_delete_column.sql) (in query: alter table t_row_exists drop column _row_exists;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1249: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d57f9f9 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:49.752919 [ 12035 ] {347a6a47-696f-43b5-97ba-0a61a11ff6fc} TCPHandler: Code: 10. DB::Exception: Wrong column name. Cannot find column `_row_exists` to drop. (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1249: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d57f9f9 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:49.759739 [ 12035 ] {5f11188f-d763-48d3-9ccf-f3399a4ccc97} executeQuery: Code: 10. DB::Exception: Wrong column name. Cannot find column `unknown_column` to drop. (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56654) (comment: 02454_disable_mergetree_with_lightweight_delete_column.sql) (in query: alter table t_row_exists drop column unknown_column;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1249: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d57f9f9 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:49.760301 [ 12035 ] {5f11188f-d763-48d3-9ccf-f3399a4ccc97} TCPHandler: Code: 10. DB::Exception: Wrong column name. Cannot find column `unknown_column` to drop. (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1249: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d57f9f9 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:50.226804 [ 12035 ] {31e02e4c-5529-46ce-99b8-825d6fdbee69} executeQuery: Code: 48. DB::Exception: Alter of type 'ADD_COLUMN' is not supported by storage Memory. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56654) (comment: 02454_disable_mergetree_with_lightweight_delete_column.sql) (in query: alter table t_row_exists add column _row_exists int;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af3de8c in /usr/bin/clickhouse 6. /build/src/Storages/IStorage.cpp:203: DB::IStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d5dc13c in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:50.227547 [ 12035 ] {31e02e4c-5529-46ce-99b8-825d6fdbee69} TCPHandler: Code: 48. DB::Exception: Alter of type 'ADD_COLUMN' is not supported by storage Memory. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af3de8c in /usr/bin/clickhouse 6. /build/src/Storages/IStorage.cpp:203: DB::IStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d5dc13c in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:50.233966 [ 12035 ] {1c67a9bc-b6d3-4002-8c19-519e6b2ad63b} executeQuery: Code: 48. DB::Exception: Alter of type 'RENAME_COLUMN' is not supported by storage Memory. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56654) (comment: 02454_disable_mergetree_with_lightweight_delete_column.sql) (in query: alter table t_row_exists rename column b to _row_exists;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af3de8c in /usr/bin/clickhouse 6. /build/src/Storages/IStorage.cpp:203: DB::IStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d5dc13c in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:50.234687 [ 12035 ] {1c67a9bc-b6d3-4002-8c19-519e6b2ad63b} TCPHandler: Code: 48. DB::Exception: Alter of type 'RENAME_COLUMN' is not supported by storage Memory. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af3de8c in /usr/bin/clickhouse 6. /build/src/Storages/IStorage.cpp:203: DB::IStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d5dc13c in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:50.273916 [ 5967 ] {9a01a94d-87bf-4da0-aff2-e6de13f50a1f} DiskLocal: Cannot create the root directory of disk __tmp_internal_96338278750696980453966033776619367191 (/local/). 2024.05.01 13:20:50.274281 [ 5967 ] {9a01a94d-87bf-4da0-aff2-e6de13f50a1f} DiskLocal: Cannot gain read access of the disk directory: /local/ 2024.05.01 13:20:50.416641 [ 5967 ] {9a01a94d-87bf-4da0-aff2-e6de13f50a1f} DiskLocal: Disk __tmp_internal_96338278750696980453966033776619367191 is marked as broken during startup: Code: 481. DB::ErrnoException: Cannot check read access to file: /local/, errno: 2, strerror: No such file or directory. (PATH_ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:169: DB::ErrnoException::ErrnoException(String const&, int, int, std::optional const&) @ 0x00000000138db5f0 in /usr/bin/clickhouse 6. /build/src/Common/Exception.cpp:224: DB::throwFromErrnoWithPath(String const&, String const&, int, int) @ 0x00000000138d6d9b in /usr/bin/clickhouse 7. /build/src/Common/filesystemHelpers.cpp:320: FS::canRead(String const&) @ 0x000000001395fc9f in /usr/bin/clickhouse 8. /build/src/Disks/DiskLocal.cpp:615: DB::DiskLocal::setup() @ 0x000000001bb75dac in /usr/bin/clickhouse 9. /build/src/Disks/DiskLocal.cpp:686: DB::DiskLocal::startupImpl(std::shared_ptr) @ 0x000000001bb773da in /usr/bin/clickhouse 10. /build/src/Disks/IDisk.cpp:174: DB::IDisk::startup(std::shared_ptr, bool) @ 0x000000001bb87de3 in /usr/bin/clickhouse 11. /build/src/Disks/DiskLocal.cpp:736: DB::registerDiskLocal(DB::DiskFactory&, bool)::$_0::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb78223 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval>(), std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000], std::map, std::less, std::allocator>>> const&>(DB::registerDiskLocal(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bb77df7 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call, std::map, std::less, std::allocator>>> const&>(DB::registerDiskLocal(DB::DiskFactory&, bool)::$_0&, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bb77d5d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bb77cfd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::__call_impl (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) @ 0x000000001bb77ca5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb82c1e in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&)>::operator()(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb80361 in /usr/bin/clickhouse 18. /build/src/Disks/DiskFactory.cpp:37: DB::DiskFactory::create(String const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::map, std::less, std::allocator>>> const&) const @ 0x000000001bb800bd in /usr/bin/clickhouse 19. /build/src/Disks/getOrCreateDiskFromAST.cpp:49: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001e14ec64 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_0&>()(std::declval, std::less, std::allocator>>> const&>())) std::__invoke[abi:v15000])::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb9d in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call)::$_0&, std::map, std::less, std::allocator>>> const&>(DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr)::$_0&, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb5d in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eb1d in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (std::map, std::less, std::allocator>>> const&)>::__call_impl)::$_0, std::shared_ptr (std::map, std::less, std::allocator>>> const&)>>(std::__function::__policy_storage const*, std::map, std::less, std::allocator>>> const&) @ 0x000000001e14eae8 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (std::map, std::less, std::allocator>>> const&)>::operator()[abi:v15000](std::map, std::less, std::allocator>>> const&) const @ 0x000000001be43fde in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (std::map, std::less, std::allocator>>> const&)>::operator()(std::map, std::less, std::allocator>>> const&) const @ 0x000000001bddf6dd in /usr/bin/clickhouse 26. /build/src/Interpreters/Context.cpp:3505: DB::Context::getOrCreateDisk(String const&, std::function (std::map, std::less, std::allocator>>> const&)>) const @ 0x000000001bdcd858 in /usr/bin/clickhouse 27. /build/src/Disks/getOrCreateDiskFromAST.cpp:48: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e14e263 in /usr/bin/clickhouse 28. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e14de1b in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e14dc80 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e14ef2e in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e14d32a in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:20:50.558651 [ 5967 ] {9a01a94d-87bf-4da0-aff2-e6de13f50a1f} executeQuery: Code: 36. DB::Exception: Path of the custom local disk must be inside `/var/lib/clickhouse/disks/` directory: While processing disk(type = local, path = '/local/'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56656) (comment: 02454_create_table_with_custom_disk.sql) (in query: CREATE TABLE test (a Int32) ENGINE = MergeTree() order by tuple() SETTINGS disk = disk(type=local, path='/local/');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Disks/getOrCreateDiskFromAST.cpp:70: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e14e65c in /usr/bin/clickhouse 7. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e14de1b in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e14dc80 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e14ef2e in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e14d32a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001e14d1e5 in /usr/bin/clickhouse 12. /build/src/Disks/getOrCreateDiskFromAST.cpp:112: DB::getOrCreateDiskFromDiskAST(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e14ca78 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:67: DB::MergeTreeSettings::loadFromQuery(DB::ASTStorage&, std::shared_ptr) @ 0x000000001e0f2e39 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:602: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f2021 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:20:50.559576 [ 5967 ] {9a01a94d-87bf-4da0-aff2-e6de13f50a1f} TCPHandler: Code: 36. DB::Exception: Path of the custom local disk must be inside `/var/lib/clickhouse/disks/` directory: While processing disk(type = local, path = '/local/'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Disks/getOrCreateDiskFromAST.cpp:70: DB::(anonymous namespace)::getOrCreateDiskFromDiskAST(DB::ASTFunction const&, std::shared_ptr) @ 0x000000001e14e65c in /usr/bin/clickhouse 7. /build/src/Disks/getOrCreateDiskFromAST.cpp:93: DB::(anonymous namespace)::DiskConfigurationFlattener::visit(std::shared_ptr&, DB::(anonymous namespace)::DiskConfigurationFlattener::Data&) @ 0x000000001e14de1b in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001e14dc80 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001e14ef2e in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001e14d32a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001e14d1e5 in /usr/bin/clickhouse 12. /build/src/Disks/getOrCreateDiskFromAST.cpp:112: DB::getOrCreateDiskFromDiskAST(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e14ca78 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:67: DB::MergeTreeSettings::loadFromQuery(DB::ASTStorage&, std::shared_ptr) @ 0x000000001e0f2e39 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:602: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f2021 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:20:54.779474 [ 6164 ] {58b89f2e-bea0-4424-8c8d-c01dc2573616} test_v7yfg94c.rmt (ReplicatedMergeTreeQueue): Partition id '123' was provided as a hint, but there's not such partition in ZooKeeper 2024.05.01 13:20:54.886521 [ 6164 ] {47077853-ef05-4572-a0c9-0ed447b65de6} executeQuery: Code: 388. DB::Exception: Cannot select parts for optimization: there are no parts in partition 123. (CANNOT_ASSIGN_OPTIMIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56692) (comment: 02439_merge_selecting_partitions.sql) (in query: optimize table rmt partition tuple(123);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:5436: auto DB::StorageReplicatedMergeTree::optimize(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&, bool, bool, std::vector> const&, bool, std::shared_ptr)::$_0::operator()(FormatStringHelperImpl::type>, String const&) const @ 0x000000001d86f741 in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:5463: DB::StorageReplicatedMergeTree::optimize(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&, bool, bool, std::vector> const&, bool, std::shared_ptr)::$_1::operator()(String const&) const @ 0x000000001d813b9f in /usr/bin/clickhouse 8. /build/src/Storages/StorageReplicatedMergeTree.cpp:5559: DB::StorageReplicatedMergeTree::optimize(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&, bool, bool, std::vector> const&, bool, std::shared_ptr) @ 0x000000001d8137bf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:82: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca87a05 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:54.887303 [ 6164 ] {47077853-ef05-4572-a0c9-0ed447b65de6} TCPHandler: Code: 388. DB::Exception: Cannot select parts for optimization: there are no parts in partition 123. (CANNOT_ASSIGN_OPTIMIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:5436: auto DB::StorageReplicatedMergeTree::optimize(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&, bool, bool, std::vector> const&, bool, std::shared_ptr)::$_0::operator()(FormatStringHelperImpl::type>, String const&) const @ 0x000000001d86f741 in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:5463: DB::StorageReplicatedMergeTree::optimize(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&, bool, bool, std::vector> const&, bool, std::shared_ptr)::$_1::operator()(String const&) const @ 0x000000001d813b9f in /usr/bin/clickhouse 8. /build/src/Storages/StorageReplicatedMergeTree.cpp:5559: DB::StorageReplicatedMergeTree::optimize(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&, bool, bool, std::vector> const&, bool, std::shared_ptr) @ 0x000000001d8137bf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:82: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca87a05 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:20:55.255419 [ 12022 ] {fa1014c5-138c-4595-9bdf-a1f43432c2e3} executeQuery: Code: 53. DB::Exception: Cannot convert string default.table_name to type Int32: While processing n IN ('default.table_name') AS m: default expression and column type are incompatible. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56722) (comment: 02433_default_expression_operator_in.sql) (in query: -- Ensure that a table name cannot be passed to IN as string literal create table test (n int, m default n in 'default.table_name') engine=Memory;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/convertFieldToType.cpp:508: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05dec2 in /usr/bin/clickhouse 7. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05a5fd in /usr/bin/clickhouse 8. /build/src/Interpreters/convertFieldToType.cpp:582: DB::convertFieldToTypeStrict(DB::Field const&, DB::IDataType const&) @ 0x000000001d05e7bd in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:117: DB::Block DB::createBlockFromCollection(DB::Array const&, std::vector, std::allocator>> const&, bool) @ 0x000000001bfe43af in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:317: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfd933a in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfd895d in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bfe2a2e in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdccc1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:1696: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x000000001bfada78 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:1729: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x000000001bfadde3 in /usr/bin/clickhouse 22. /build/src/Storages/ColumnsDescription.cpp:847: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d598825 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:20:55.256198 [ 12022 ] {fa1014c5-138c-4595-9bdf-a1f43432c2e3} TCPHandler: Code: 53. DB::Exception: Cannot convert string default.table_name to type Int32: While processing n IN ('default.table_name') AS m: default expression and column type are incompatible. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/convertFieldToType.cpp:508: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05dec2 in /usr/bin/clickhouse 7. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05a5fd in /usr/bin/clickhouse 8. /build/src/Interpreters/convertFieldToType.cpp:582: DB::convertFieldToTypeStrict(DB::Field const&, DB::IDataType const&) @ 0x000000001d05e7bd in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:117: DB::Block DB::createBlockFromCollection(DB::Array const&, std::vector, std::allocator>> const&, bool) @ 0x000000001bfe43af in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:317: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfd933a in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfd895d in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bfe2a2e in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdccc1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:1696: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x000000001bfada78 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:1729: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x000000001bfadde3 in /usr/bin/clickhouse 22. /build/src/Storages/ColumnsDescription.cpp:847: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d598825 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:20:55.258487 [ 1191 ] {a2fb2ca5-23ac-4f11-81a3-2da90ba5b8d5} AsynchronousInsertQueue: Failed parsing for query 'INSERT INTO test_8xzu1p9q.t_async_inserts_logs FORMAT JSONEachRow' with query id d666107a-d990-4ce3-b198-43d178897653. DB::ParsingException: Cannot parse input: expected '{' before: 'qqqqqq': (at row 1) 2024.05.01 13:20:55.263137 [ 3985 ] {2e65e033-8fc6-4afe-9ed7-3df255f91f74} AsynchronousInsertQueue: Failed parsing for query 'INSERT INTO test_8xzu1p9q.t_async_inserts_logs FORMAT Values' with query id 763dbfee-691d-470f-a82f-0bb883266dbd. DB::ParsingException: Cannot parse input: expected '(' before: 'qqqqqq': at row 0 2024.05.01 13:20:55.373564 [ 12038 ] {d666107a-d990-4ce3-b198-43d178897653} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected '{' before: 'qqqqqq': While executing WaitForAsyncInsert: (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:42462) (comment: 02456_async_inserts_logs.sh) (in query: INSERT INTO t_async_inserts_logs FORMAT JSONEachRow ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/JSONEachRowRowInputFormat.cpp:161: DB::JSONEachRowRowInputFormat::readJSONObject(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&) @ 0x000000001e85574f in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/JSONEachRowRowInputFormat.cpp:219: DB::JSONEachRowRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e855b34 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:60: DB::StreamingFormatExecutor::execute() @ 0x000000001e693be1 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:44: DB::StreamingFormatExecutor::execute(DB::ReadBuffer&) @ 0x000000001e693772 in /usr/bin/clickhouse 15. /build/src/Interpreters/AsynchronousInsertQueue.cpp:582: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd7187c in /usr/bin/clickhouse 16. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd7400a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f75 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f55 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd73f35 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd73f00 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 2024.05.01 13:20:55.482129 [ 12022 ] {2e5cdba1-f333-4f15-b59b-e050dadd664f} executeQuery: Code: 53. DB::Exception: Cannot convert string default.table_name to type Int32: While processing n IN ('default.table_name') AS m: default expression and column type are incompatible. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56722) (comment: 02433_default_expression_operator_in.sql) (in query: create table test (n int, m default in(n, 'default.table_name')) engine=Memory;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/convertFieldToType.cpp:508: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05dec2 in /usr/bin/clickhouse 7. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05a5fd in /usr/bin/clickhouse 8. /build/src/Interpreters/convertFieldToType.cpp:582: DB::convertFieldToTypeStrict(DB::Field const&, DB::IDataType const&) @ 0x000000001d05e7bd in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:117: DB::Block DB::createBlockFromCollection(DB::Array const&, std::vector, std::allocator>> const&, bool) @ 0x000000001bfe43af in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:317: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfd933a in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfd895d in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bfe2a2e in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdccc1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:1696: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x000000001bfada78 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:1729: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x000000001bfadde3 in /usr/bin/clickhouse 22. /build/src/Storages/ColumnsDescription.cpp:847: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d598825 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:20:55.482219 [ 12028 ] {763dbfee-691d-470f-a82f-0bb883266dbd} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected '(' before: 'qqqqqq': at row 0: While executing WaitForAsyncInsert. (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:42440) (comment: 02456_async_inserts_logs.sh) (in query: INSERT INTO t_async_inserts_logs VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:217: DB::ValuesBlockInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long) @ 0x000000001eaeb1cd in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:122: DB::ValuesBlockInputFormat::generate() @ 0x000000001eaea9de in /usr/bin/clickhouse 10. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 12. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:60: DB::StreamingFormatExecutor::execute() @ 0x000000001e693be1 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:44: DB::StreamingFormatExecutor::execute(DB::ReadBuffer&) @ 0x000000001e693772 in /usr/bin/clickhouse 14. /build/src/Interpreters/AsynchronousInsertQueue.cpp:582: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd7187c in /usr/bin/clickhouse 15. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd7400a in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f75 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f55 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd73f35 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd73f00 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 2024.05.01 13:20:55.482453 [ 12038 ] {d666107a-d990-4ce3-b198-43d178897653} DynamicQueryHandler: Code: 27. DB::ParsingException: Cannot parse input: expected '{' before: 'qqqqqq': While executing WaitForAsyncInsert: (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/JSONEachRowRowInputFormat.cpp:161: DB::JSONEachRowRowInputFormat::readJSONObject(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&) @ 0x000000001e85574f in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/JSONEachRowRowInputFormat.cpp:219: DB::JSONEachRowRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e855b34 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:60: DB::StreamingFormatExecutor::execute() @ 0x000000001e693be1 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:44: DB::StreamingFormatExecutor::execute(DB::ReadBuffer&) @ 0x000000001e693772 in /usr/bin/clickhouse 15. /build/src/Interpreters/AsynchronousInsertQueue.cpp:582: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd7187c in /usr/bin/clickhouse 16. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd7400a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f75 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f55 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd73f35 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd73f00 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:20:55.483174 [ 12022 ] {2e5cdba1-f333-4f15-b59b-e050dadd664f} TCPHandler: Code: 53. DB::Exception: Cannot convert string default.table_name to type Int32: While processing n IN ('default.table_name') AS m: default expression and column type are incompatible. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/convertFieldToType.cpp:508: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05dec2 in /usr/bin/clickhouse 7. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05a5fd in /usr/bin/clickhouse 8. /build/src/Interpreters/convertFieldToType.cpp:582: DB::convertFieldToTypeStrict(DB::Field const&, DB::IDataType const&) @ 0x000000001d05e7bd in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:117: DB::Block DB::createBlockFromCollection(DB::Array const&, std::vector, std::allocator>> const&, bool) @ 0x000000001bfe43af in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:317: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfd933a in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfd895d in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bfe2a2e in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdccc1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:1696: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x000000001bfada78 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:1729: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x000000001bfadde3 in /usr/bin/clickhouse 22. /build/src/Storages/ColumnsDescription.cpp:847: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d598825 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:20:55.484951 [ 12028 ] {763dbfee-691d-470f-a82f-0bb883266dbd} DynamicQueryHandler: Code: 27. DB::ParsingException: Cannot parse input: expected '(' before: 'qqqqqq': at row 0: While executing WaitForAsyncInsert. (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:217: DB::ValuesBlockInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long) @ 0x000000001eaeb1cd in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp:122: DB::ValuesBlockInputFormat::generate() @ 0x000000001eaea9de in /usr/bin/clickhouse 10. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 12. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:60: DB::StreamingFormatExecutor::execute() @ 0x000000001e693be1 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:44: DB::StreamingFormatExecutor::execute(DB::ReadBuffer&) @ 0x000000001e693772 in /usr/bin/clickhouse 14. /build/src/Interpreters/AsynchronousInsertQueue.cpp:582: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd7187c in /usr/bin/clickhouse 15. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd7400a in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f75 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f55 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd73f35 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd73f00 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:20:58.619167 [ 12023 ] {be1c9e5b-2775-4dbb-abce-29069a63a282} executeQuery: Code: 48. DB::Exception: Method getDataAt is not supported for Array(ColumnLowCardinality): While executing RawBLOBRowOutputFormat. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:58668) (comment: 02429_low_cardinality_trash.sh) (in query: SELECT rand64(1) % 10 AS k, groupArray(toString(64 - floor(log2(rand64(2) + 1))))::Array(LowCardinality(String)) FROM numbers(100) GROUP BY k FORMAT RawBLOB), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Columns/ColumnArray.cpp:163: DB::ColumnArray::getDataAt(unsigned long) const @ 0x000000001d1eda5a in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/RawBLOBRowOutputFormat.cpp:21: DB::RawBLOBRowOutputFormat::writeField(DB::IColumn const&, DB::ISerialization const&, unsigned long) @ 0x000000001eabc587 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/IRowOutputFormat.cpp:73: DB::IRowOutputFormat::write(std::vector::immutable_ptr, std::allocator::immutable_ptr>> const&, unsigned long) @ 0x000000001e698672 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/IRowOutputFormat.cpp:31: DB::IRowOutputFormat::consume(DB::Chunk) @ 0x000000001e6982ef in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:86: DB::IOutputFormat::work() @ 0x000000001e6978b2 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 2024.05.01 13:20:58.622390 [ 12023 ] {be1c9e5b-2775-4dbb-abce-29069a63a282} DynamicQueryHandler: Code: 48. DB::Exception: Method getDataAt is not supported for Array(ColumnLowCardinality): While executing RawBLOBRowOutputFormat. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Columns/ColumnArray.cpp:163: DB::ColumnArray::getDataAt(unsigned long) const @ 0x000000001d1eda5a in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/RawBLOBRowOutputFormat.cpp:21: DB::RawBLOBRowOutputFormat::writeField(DB::IColumn const&, DB::ISerialization const&, unsigned long) @ 0x000000001eabc587 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/IRowOutputFormat.cpp:73: DB::IRowOutputFormat::write(std::vector::immutable_ptr, std::allocator::immutable_ptr>> const&, unsigned long) @ 0x000000001e698672 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/IRowOutputFormat.cpp:31: DB::IRowOutputFormat::consume(DB::Chunk) @ 0x000000001e6982ef in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:86: DB::IOutputFormat::work() @ 0x000000001e6978b2 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:00.571251 [ 12026 ] {9d7621d8-a25d-4889-b946-1e0b81f0ef75} executeQuery: Code: 128. DB::Exception: Array sizes are too large: 13830481612736626689: Cannot extract table structure from Native format file. You can specify the structure manually. (TOO_LARGE_ARRAY_SIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53758) (comment: 02426_pod_array_overflow_3.sql) (in query: SELECT * FROM format(Native, '\x01\x01\x01x\x0CArray(UInt8)\x01\x00\xBD\xEF\xBF\xBD\xEF\xBF\xBD\xEF');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/DataTypes/Serializations/SerializationArray.cpp:380: DB::SerializationArray::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba238c5 in /usr/bin/clickhouse 7. /build/src/Formats/NativeReader.cpp:97: DB::NativeReader::readData(DB::ISerialization const&, COW::immutable_ptr&, DB::ReadBuffer&, unsigned long, double) @ 0x000000001e626fd4 in /usr/bin/clickhouse 8. /build/src/Formats/NativeReader.cpp:206: DB::NativeReader::read() @ 0x000000001e627e6a in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/NativeFormat.cpp:111: DB::NativeSchemaReader::readSchema() @ 0x000000001e898a76 in /usr/bin/clickhouse 10. /build/src/Formats/ReadSchemaUtils.cpp:124: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&, std::unique_ptr>&) @ 0x000000001e62db23 in /usr/bin/clickhouse 11. /build/src/Formats/ReadSchemaUtils.cpp:239: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&) @ 0x000000001e62f0a8 in /usr/bin/clickhouse 12. /build/src/TableFunctions/TableFunctionFormat.cpp:60: DB::TableFunctionFormat::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000001a9cef98 in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionFormat.cpp:100: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9cf930 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 15. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 16. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:21:00.572289 [ 12026 ] {9d7621d8-a25d-4889-b946-1e0b81f0ef75} TCPHandler: Code: 128. DB::Exception: Array sizes are too large: 13830481612736626689: Cannot extract table structure from Native format file. You can specify the structure manually. (TOO_LARGE_ARRAY_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/DataTypes/Serializations/SerializationArray.cpp:380: DB::SerializationArray::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba238c5 in /usr/bin/clickhouse 7. /build/src/Formats/NativeReader.cpp:97: DB::NativeReader::readData(DB::ISerialization const&, COW::immutable_ptr&, DB::ReadBuffer&, unsigned long, double) @ 0x000000001e626fd4 in /usr/bin/clickhouse 8. /build/src/Formats/NativeReader.cpp:206: DB::NativeReader::read() @ 0x000000001e627e6a in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/NativeFormat.cpp:111: DB::NativeSchemaReader::readSchema() @ 0x000000001e898a76 in /usr/bin/clickhouse 10. /build/src/Formats/ReadSchemaUtils.cpp:124: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&, std::unique_ptr>&) @ 0x000000001e62db23 in /usr/bin/clickhouse 11. /build/src/Formats/ReadSchemaUtils.cpp:239: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&) @ 0x000000001e62f0a8 in /usr/bin/clickhouse 12. /build/src/TableFunctions/TableFunctionFormat.cpp:60: DB::TableFunctionFormat::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000001a9cef98 in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionFormat.cpp:100: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9cf930 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 15. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 16. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:21:03.824607 [ 12022 ] {7733b104-02a1-45e8-8a69-8ea1fea755a4} executeQuery: Code: 128. DB::Exception: Array sizes are too large: 13830481612736675823: Cannot extract table structure from Native format file. You can specify the structure manually. (TOO_LARGE_ARRAY_SIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53824) (comment: 02426_pod_array_overflow_2.sql) (in query: SELECT * FROM format(Native, 'k0\x23Array(Tuple(FixedString(1), Int64))\0\0\0\0\0\0\0�����\0����������������\0�\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0d\0\0\0\0\0\0\0\0\0\0\0\0\0�1?Vi�%');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/DataTypes/Serializations/SerializationArray.cpp:380: DB::SerializationArray::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba238c5 in /usr/bin/clickhouse 7. /build/src/Formats/NativeReader.cpp:97: DB::NativeReader::readData(DB::ISerialization const&, COW::immutable_ptr&, DB::ReadBuffer&, unsigned long, double) @ 0x000000001e626fd4 in /usr/bin/clickhouse 8. /build/src/Formats/NativeReader.cpp:206: DB::NativeReader::read() @ 0x000000001e627e6a in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/NativeFormat.cpp:111: DB::NativeSchemaReader::readSchema() @ 0x000000001e898a76 in /usr/bin/clickhouse 10. /build/src/Formats/ReadSchemaUtils.cpp:124: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&, std::unique_ptr>&) @ 0x000000001e62db23 in /usr/bin/clickhouse 11. /build/src/Formats/ReadSchemaUtils.cpp:239: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&) @ 0x000000001e62f0a8 in /usr/bin/clickhouse 12. /build/src/TableFunctions/TableFunctionFormat.cpp:60: DB::TableFunctionFormat::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000001a9cef98 in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionFormat.cpp:100: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9cf930 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 15. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 16. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:21:03.825336 [ 12022 ] {7733b104-02a1-45e8-8a69-8ea1fea755a4} TCPHandler: Code: 128. DB::Exception: Array sizes are too large: 13830481612736675823: Cannot extract table structure from Native format file. You can specify the structure manually. (TOO_LARGE_ARRAY_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/DataTypes/Serializations/SerializationArray.cpp:380: DB::SerializationArray::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba238c5 in /usr/bin/clickhouse 7. /build/src/Formats/NativeReader.cpp:97: DB::NativeReader::readData(DB::ISerialization const&, COW::immutable_ptr&, DB::ReadBuffer&, unsigned long, double) @ 0x000000001e626fd4 in /usr/bin/clickhouse 8. /build/src/Formats/NativeReader.cpp:206: DB::NativeReader::read() @ 0x000000001e627e6a in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/NativeFormat.cpp:111: DB::NativeSchemaReader::readSchema() @ 0x000000001e898a76 in /usr/bin/clickhouse 10. /build/src/Formats/ReadSchemaUtils.cpp:124: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&, std::unique_ptr>&) @ 0x000000001e62db23 in /usr/bin/clickhouse 11. /build/src/Formats/ReadSchemaUtils.cpp:239: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&) @ 0x000000001e62f0a8 in /usr/bin/clickhouse 12. /build/src/TableFunctions/TableFunctionFormat.cpp:60: DB::TableFunctionFormat::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000001a9cef98 in /usr/bin/clickhouse 13. /build/src/TableFunctions/TableFunctionFormat.cpp:100: DB::TableFunctionFormat::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a9cf930 in /usr/bin/clickhouse 14. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 15. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 16. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:21:05.403443 [ 1191 ] {acffc8ff-dcf0-4b0c-9108-a7a81f6b768c} executeQuery: Code: 252. DB::Exception: Too many parts (1 with average size of 222.00 B) in table 'test_8xzu1p9q.t_async_inserts_logs (1aaefed6-2f9d-408d-98c1-1625cc5c23df)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS) (version 23.8.11.29.altinitystable (altinity build)) (from 0.0.0.0:0) (comment: 02456_async_inserts_logs.sh) (in query: INSERT INTO test_8xzu1p9q.t_async_inserts_logs FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001de8eae8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001de40fa4 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e34042c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001eb5fc99 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fc35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fbfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f015 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:110: DB::CompletedPipelineExecutor::execute() @ 0x000000001e664b88 in /usr/bin/clickhouse 24. /build/src/Interpreters/AsynchronousInsertQueue.cpp:650: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd71e5d in /usr/bin/clickhouse 25. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd7400a in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f75 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f55 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd73f35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd73f00 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:21:05.405341 [ 1191 ] {} AsynchronousInsertQueue: Failed insertion for query 'INSERT INTO test_8xzu1p9q.t_async_inserts_logs FORMAT Values': Code: 252. DB::Exception: Too many parts (1 with average size of 222.00 B) in table 'test_8xzu1p9q.t_async_inserts_logs (1aaefed6-2f9d-408d-98c1-1625cc5c23df)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001de8eae8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001de40fa4 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e34042c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001eb5fc99 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fc35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fbfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f015 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:110: DB::CompletedPipelineExecutor::execute() @ 0x000000001e664b88 in /usr/bin/clickhouse 24. /build/src/Interpreters/AsynchronousInsertQueue.cpp:650: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd71e5d in /usr/bin/clickhouse 25. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd7400a in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f75 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f55 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd73f35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd73f00 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:05.407595 [ 1132 ] {334bc7d5-1e53-4cfe-a4d2-95deec156f73} executeQuery: Code: 252. DB::Exception: Too many parts (1 with average size of 222.00 B) in table 'test_8xzu1p9q.t_async_inserts_logs (1aaefed6-2f9d-408d-98c1-1625cc5c23df)'. Merges are processing significantly slower than inserts: While executing WaitForAsyncInsert. (TOO_MANY_PARTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:58670) (comment: 02456_async_inserts_logs.sh) (in query: INSERT INTO t_async_inserts_logs VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001de8eae8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001de40fa4 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e34042c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001eb5fc99 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fc35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fbfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f015 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:110: DB::CompletedPipelineExecutor::execute() @ 0x000000001e664b88 in /usr/bin/clickhouse 24. /build/src/Interpreters/AsynchronousInsertQueue.cpp:650: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd71e5d in /usr/bin/clickhouse 25. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd7400a in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f75 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f55 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd73f35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd73f00 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:21:05.409349 [ 1132 ] {334bc7d5-1e53-4cfe-a4d2-95deec156f73} DynamicQueryHandler: Code: 252. DB::Exception: Too many parts (1 with average size of 222.00 B) in table 'test_8xzu1p9q.t_async_inserts_logs (1aaefed6-2f9d-408d-98c1-1625cc5c23df)'. Merges are processing significantly slower than inserts: While executing WaitForAsyncInsert. (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001de8eae8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001de40fa4 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e34042c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001eb5fc99 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fc35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fbfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f015 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:110: DB::CompletedPipelineExecutor::execute() @ 0x000000001e664b88 in /usr/bin/clickhouse 24. /build/src/Interpreters/AsynchronousInsertQueue.cpp:650: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd71e5d in /usr/bin/clickhouse 25. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd7400a in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f75 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f55 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd73f35 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd73f00 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:19.499462 [ 12029 ] {200d8f34-7d52-46f8-a6f7-16b088fbf1c2} executeQuery: Code: 290. DB::Exception: Limit would be exceeded by inserting 2 new key(s). Limit is 3, while the number of keys would be 4. (LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55374) (comment: 02418_keeper_map_keys_limit.sql) (in query: INSERT INTO 02418_test VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&, unsigned long&) @ 0x0000000017c60348 in /usr/bin/clickhouse 6. /build/src/Storages/StorageKeeperMap.cpp:211: void DB::StorageKeeperMapSink::finalize(bool) @ 0x000000001d713ba1 in /usr/bin/clickhouse 7. /build/src/Storages/StorageKeeperMap.cpp:145: DB::StorageKeeperMapSink::onFinish() @ 0x000000001d711b4a in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work()::$_3::operator()() const @ 0x000000001eb603bc in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001eb60395 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001eb60375 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb60355 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb6031d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f522 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:21:19.500420 [ 12029 ] {200d8f34-7d52-46f8-a6f7-16b088fbf1c2} TCPHandler: Code: 290. DB::Exception: Limit would be exceeded by inserting 2 new key(s). Limit is 3, while the number of keys would be 4. (LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&, unsigned long&) @ 0x0000000017c60348 in /usr/bin/clickhouse 6. /build/src/Storages/StorageKeeperMap.cpp:211: void DB::StorageKeeperMapSink::finalize(bool) @ 0x000000001d713ba1 in /usr/bin/clickhouse 7. /build/src/Storages/StorageKeeperMap.cpp:145: DB::StorageKeeperMapSink::onFinish() @ 0x000000001d711b4a in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work()::$_3::operator()() const @ 0x000000001eb603bc in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001eb60395 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001eb60375 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb60355 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb6031d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f522 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:21:19.593299 [ 12029 ] {433b40f9-7869-43ed-a5aa-937181f616fc} executeQuery: Code: 290. DB::Exception: Limit would be exceeded by inserting 1 new key(s). Limit is 3, while the number of keys would be 4. (LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55374) (comment: 02418_keeper_map_keys_limit.sql) (in query: INSERT INTO 02418_test VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&, unsigned long&) @ 0x0000000017c60348 in /usr/bin/clickhouse 6. /build/src/Storages/StorageKeeperMap.cpp:211: void DB::StorageKeeperMapSink::finalize(bool) @ 0x000000001d713ba1 in /usr/bin/clickhouse 7. /build/src/Storages/StorageKeeperMap.cpp:145: DB::StorageKeeperMapSink::onFinish() @ 0x000000001d711b4a in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work()::$_3::operator()() const @ 0x000000001eb603bc in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001eb60395 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001eb60375 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb60355 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb6031d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f522 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:21:19.594194 [ 12029 ] {433b40f9-7869-43ed-a5aa-937181f616fc} TCPHandler: Code: 290. DB::Exception: Limit would be exceeded by inserting 1 new key(s). Limit is 3, while the number of keys would be 4. (LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&, unsigned long&) @ 0x0000000017c60348 in /usr/bin/clickhouse 6. /build/src/Storages/StorageKeeperMap.cpp:211: void DB::StorageKeeperMapSink::finalize(bool) @ 0x000000001d713ba1 in /usr/bin/clickhouse 7. /build/src/Storages/StorageKeeperMap.cpp:145: DB::StorageKeeperMapSink::onFinish() @ 0x000000001d711b4a in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work()::$_3::operator()() const @ 0x000000001eb603bc in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001eb60395 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001eb60375 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb60355 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb6031d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f522 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:21:19.740465 [ 12029 ] {57d6a70b-1ba2-4c84-9e26-40b86dd663b4} executeQuery: Code: 290. DB::Exception: Limit would be exceeded by inserting 1 new key(s). Limit is 3, while the number of keys would be 4. (LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55374) (comment: 02418_keeper_map_keys_limit.sql) (in query: INSERT INTO 02418_test VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&, unsigned long&) @ 0x0000000017c60348 in /usr/bin/clickhouse 6. /build/src/Storages/StorageKeeperMap.cpp:211: void DB::StorageKeeperMapSink::finalize(bool) @ 0x000000001d713ba1 in /usr/bin/clickhouse 7. /build/src/Storages/StorageKeeperMap.cpp:145: DB::StorageKeeperMapSink::onFinish() @ 0x000000001d711b4a in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work()::$_3::operator()() const @ 0x000000001eb603bc in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001eb60395 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001eb60375 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb60355 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb6031d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f522 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:21:19.741680 [ 12029 ] {57d6a70b-1ba2-4c84-9e26-40b86dd663b4} TCPHandler: Code: 290. DB::Exception: Limit would be exceeded by inserting 1 new key(s). Limit is 3, while the number of keys would be 4. (LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&, unsigned long&) @ 0x0000000017c60348 in /usr/bin/clickhouse 6. /build/src/Storages/StorageKeeperMap.cpp:211: void DB::StorageKeeperMapSink::finalize(bool) @ 0x000000001d713ba1 in /usr/bin/clickhouse 7. /build/src/Storages/StorageKeeperMap.cpp:145: DB::StorageKeeperMapSink::onFinish() @ 0x000000001d711b4a in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work()::$_3::operator()() const @ 0x000000001eb603bc in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001eb60395 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_3&) @ 0x000000001eb60375 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb60355 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb6031d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:186: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f522 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:21:22.327477 [ 12022 ] {41168150-2a9b-4e82-851b-3b545af043ed} executeQuery: Code: 36. DB::Exception: Primary key cannot be updated (cannot update column key). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55446) (comment: 02416_rocksdb_delete_update.sql) (in query: ALTER TABLE 02416_rocksdb UPDATE key = key * 10 WHERE 1 = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:282: DB::StorageEmbeddedRocksDB::mutate(DB::MutationCommands const&, std::shared_ptr) @ 0x000000001adf8474 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:179: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caaba in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:22.328537 [ 12022 ] {41168150-2a9b-4e82-851b-3b545af043ed} TCPHandler: Code: 36. DB::Exception: Primary key cannot be updated (cannot update column key). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:282: DB::StorageEmbeddedRocksDB::mutate(DB::MutationCommands const&, std::shared_ptr) @ 0x000000001adf8474 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:179: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caaba in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:24.324617 [ 12030 ] {ca816f32-66dc-4b85-994f-b21a1a25cc0a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 64.00 GiB (attempt to allocate chunk of 68720001848 bytes), maximum: 1.00 GiB.: While executing GenerateRandom. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55524) (comment: 02400_memory_accounting_on_error.sql) (in query: -- max_block_size to avoid randomization SELECT * FROM generateRandom('i Array(Int8)', 1, 1, 1048577) LIMIT 65536 SETTINGS max_memory_usage='1Gi', max_block_size=65505, log_queries=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001386fdce in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b1f8ba5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1f8a39 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b1f8826 in /usr/bin/clickhouse 14. /build/src/Storages/StorageGenerateRandom.cpp:369: DB::(anonymous namespace)::fillColumnWithRandomData(std::shared_ptr, unsigned long, unsigned long, unsigned long, pcg_detail::engine, false, pcg_detail::specific_stream, pcg_detail::default_multiplier>&, std::shared_ptr) @ 0x000000001d6affa9 in /usr/bin/clickhouse 15. /build/src/Storages/StorageGenerateRandom.cpp:257: DB::(anonymous namespace)::fillColumnWithRandomData(std::shared_ptr, unsigned long, unsigned long, unsigned long, pcg_detail::engine, false, pcg_detail::specific_stream, pcg_detail::default_multiplier>&, std::shared_ptr) @ 0x000000001d6aeef9 in /usr/bin/clickhouse 16. /build/src/Storages/StorageGenerateRandom.cpp:548: DB::(anonymous namespace)::GenerateSource::generate() @ 0x000000001d6ae3a1 in /usr/bin/clickhouse 17. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 18. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 2024.05.01 13:21:24.331614 [ 12030 ] {ca816f32-66dc-4b85-994f-b21a1a25cc0a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 64.00 GiB (attempt to allocate chunk of 68720001848 bytes), maximum: 1.00 GiB.: While executing GenerateRandom. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001386fdce in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b1f8ba5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1f8a39 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b1f8826 in /usr/bin/clickhouse 14. /build/src/Storages/StorageGenerateRandom.cpp:369: DB::(anonymous namespace)::fillColumnWithRandomData(std::shared_ptr, unsigned long, unsigned long, unsigned long, pcg_detail::engine, false, pcg_detail::specific_stream, pcg_detail::default_multiplier>&, std::shared_ptr) @ 0x000000001d6affa9 in /usr/bin/clickhouse 15. /build/src/Storages/StorageGenerateRandom.cpp:257: DB::(anonymous namespace)::fillColumnWithRandomData(std::shared_ptr, unsigned long, unsigned long, unsigned long, pcg_detail::engine, false, pcg_detail::specific_stream, pcg_detail::default_multiplier>&, std::shared_ptr) @ 0x000000001d6aeef9 in /usr/bin/clickhouse 16. /build/src/Storages/StorageGenerateRandom.cpp:548: DB::(anonymous namespace)::GenerateSource::generate() @ 0x000000001d6ae3a1 in /usr/bin/clickhouse 17. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 18. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 2024.05.01 13:21:27.160337 [ 12028 ] {570a76b5-d61e-4866-83ab-8cc4e1c3fe00} executeQuery: Code: 36. DB::Exception: Dictionary (`invalid_dictionary`) not found: In scope WITH 'invalid_dictionary' AS dictionary SELECT dictGet(dictionary, 'value', toUInt64(0)). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55564) (comment: 02384_analyzer_dict_get_join_get.sql) (in query: WITH 'invalid_dictionary' AS dictionary SELECT dictGet(dictionary, 'value', toUInt64(0));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExternalDictionariesLoader.cpp:127: DB::ExternalDictionariesLoader::resolveDictionaryName(String const&, String const&) const @ 0x000000001c527b92 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExternalDictionariesLoader.cpp:72: DB::ExternalDictionariesLoader::getDictionaryStructure(String const&, std::shared_ptr) const @ 0x000000001c528020 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsExternalDictionaries.h:135: DB::FunctionDictHelper::getDictionaryStructure(String const&) const @ 0x000000000bc5ae18 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsExternalDictionaries.h:361: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bc537ca in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5247: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b390 in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5547: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9142b6 in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 17. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 18. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 19. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 20. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 21. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:21:27.161226 [ 12028 ] {570a76b5-d61e-4866-83ab-8cc4e1c3fe00} TCPHandler: Code: 36. DB::Exception: Dictionary (`invalid_dictionary`) not found: In scope WITH 'invalid_dictionary' AS dictionary SELECT dictGet(dictionary, 'value', toUInt64(0)). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExternalDictionariesLoader.cpp:127: DB::ExternalDictionariesLoader::resolveDictionaryName(String const&, String const&) const @ 0x000000001c527b92 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExternalDictionariesLoader.cpp:72: DB::ExternalDictionariesLoader::getDictionaryStructure(String const&, std::shared_ptr) const @ 0x000000001c528020 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsExternalDictionaries.h:135: DB::FunctionDictHelper::getDictionaryStructure(String const&) const @ 0x000000000bc5ae18 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsExternalDictionaries.h:361: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bc537ca in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5247: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b390 in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5547: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9142b6 in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 17. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 18. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 19. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 20. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 21. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:21:27.422988 [ 12028 ] {871b0b2b-f526-4cd8-9f8e-4c763915e2a6} executeQuery: Code: 60. DB::Exception: Table test_6glmdkft.invalid_test_table_join does not exist: In scope WITH 'invalid_test_table_join' AS join_table SELECT joinGet(join_table, 'value', toUInt64(0)). (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55564) (comment: 02384_analyzer_dict_get_join_get.sql) (in query: WITH 'invalid_test_table_join' AS join_table SELECT joinGet(join_table, 'value', toUInt64(0));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionJoinGet.cpp:55: DB::getJoin(std::vector> const&, std::shared_ptr) @ 0x000000000b8fc530 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionJoinGet.cpp:80: DB::JoinGetOverloadResolver::buildImpl(std::vector> const&, std::shared_ptr const&) const @ 0x000000000b902727 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:451: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e7e in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5247: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b390 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5547: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9142b6 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 17. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 18. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 19. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:21:27.424014 [ 12028 ] {871b0b2b-f526-4cd8-9f8e-4c763915e2a6} TCPHandler: Code: 60. DB::Exception: Table test_6glmdkft.invalid_test_table_join does not exist: In scope WITH 'invalid_test_table_join' AS join_table SELECT joinGet(join_table, 'value', toUInt64(0)). (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionJoinGet.cpp:55: DB::getJoin(std::vector> const&, std::shared_ptr) @ 0x000000000b8fc530 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionJoinGet.cpp:80: DB::JoinGetOverloadResolver::buildImpl(std::vector> const&, std::shared_ptr const&) const @ 0x000000000b902727 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:451: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e7e in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5247: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b390 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5547: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9142b6 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 17. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 18. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 19. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:21:31.865360 [ 12022 ] {19b598f9-51d9-46d2-b3b3-9c051c9e89ef} executeQuery: Code: 390. DB::Exception: Table `mv` doesn't exist. (CANNOT_GET_CREATE_TABLE_QUERY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45772) (comment: 02380_insert_mv_race.sh) (in query: ATTACH TABLE mv), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseOnDisk.cpp:479: DB::DatabaseOnDisk::getCreateTableQueryImpl(String const&, std::shared_ptr, bool) const @ 0x000000001bac1596 in /usr/bin/clickhouse 7. /build/src/Databases/IDatabase.h:275: DB::IDatabase::getCreateTableQuery(String const&, std::shared_ptr) const @ 0x000000001b326fb7 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:1084: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e2ebb in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:31.867615 [ 12022 ] {19b598f9-51d9-46d2-b3b3-9c051c9e89ef} TCPHandler: Code: 390. DB::Exception: Table `mv` doesn't exist. (CANNOT_GET_CREATE_TABLE_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseOnDisk.cpp:479: DB::DatabaseOnDisk::getCreateTableQueryImpl(String const&, std::shared_ptr, bool) const @ 0x000000001bac1596 in /usr/bin/clickhouse 7. /build/src/Databases/IDatabase.h:275: DB::IDatabase::getCreateTableQuery(String const&, std::shared_ptr) const @ 0x000000001b326fb7 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:1084: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e2ebb in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:32.182081 [ 5481 ] {09a02d15-0efb-471b-a22e-a2be8f8f9d1a} ExternalDictionariesLoader: Could not load external dictionary '88005e2e-dbff-4ee6-b755-e056ae1c4134', next update is scheduled at 2024-05-01 13:21:38: Code: 60. DB::Exception: Table test_fjj607s3.data does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:171: DB::ClickHouseDictionarySource::createStreamForQuery(String const&) @ 0x0000000017c1a7b1 in /usr/bin/clickhouse 20. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:113: DB::ClickHouseDictionarySource::loadAll() @ 0x0000000017c1a68a in /usr/bin/clickhouse 21. /build/src/Dictionaries/HashedDictionary.cpp:935: DB::HashedDictionary<(DB::DictionaryKeyType)0, false, false>::loadData() @ 0x0000000017dc5b88 in /usr/bin/clickhouse 22. /build/src/Dictionaries/HashedDictionary.cpp:214: DB::HashedDictionary<(DB::DictionaryKeyType)0, false, false>::HashedDictionary(DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr, DB::HashedDictionaryConfiguration const&, std::shared_ptr) @ 0x0000000017dc563c in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if>::__unique_single std::make_unique[abi:v15000], DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr, DB::HashedDictionaryConfiguration&>(DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr&&, DB::HashedDictionaryConfiguration&) @ 0x000000001835b706 in /usr/bin/clickhouse 24. /build/src/Dictionaries/HashedDictionary.cpp:1213: DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_4::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, DB::DictionaryKeyType, bool) const @ 0x0000000017dc4266 in /usr/bin/clickhouse 25. /build/src/Dictionaries/HashedDictionary.cpp:1238: auto DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool) const @ 0x0000000017dc2eb2 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval(), std::declval>(), std::declval>(), std::declval())) std::__invoke[abi:v15000], std::shared_ptr, bool>(DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dc2ddb in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::unique_ptr> std::__invoke_void_return_wrapper>, false>::__call, std::shared_ptr, bool>(DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dc2cf6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()[abi:v15000](String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dc2c76 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::unique_ptr> std::__function::__policy_invoker> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::__call_impl> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>>(std::__function::__policy_storage const*, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool) @ 0x0000000017dc2c02 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()[abi:v15000](String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) const @ 0x000000001abcd3c2 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool) const @ 0x000000001abca75b in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:32.183476 [ 12030 ] {09a02d15-0efb-471b-a22e-a2be8f8f9d1a} executeQuery: Code: 60. DB::Exception: Table test_fjj607s3.data does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45774) (comment: 02390_prometheus_ClickHouseStatusInfo_DictionaryStatus.sh) (in query: SYSTEM RELOAD DICTIONARY dict -- { serverError UNKNOWN_TABLE }), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:171: DB::ClickHouseDictionarySource::createStreamForQuery(String const&) @ 0x0000000017c1a7b1 in /usr/bin/clickhouse 20. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:113: DB::ClickHouseDictionarySource::loadAll() @ 0x0000000017c1a68a in /usr/bin/clickhouse 21. /build/src/Dictionaries/HashedDictionary.cpp:935: DB::HashedDictionary<(DB::DictionaryKeyType)0, false, false>::loadData() @ 0x0000000017dc5b88 in /usr/bin/clickhouse 22. /build/src/Dictionaries/HashedDictionary.cpp:214: DB::HashedDictionary<(DB::DictionaryKeyType)0, false, false>::HashedDictionary(DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr, DB::HashedDictionaryConfiguration const&, std::shared_ptr) @ 0x0000000017dc563c in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if>::__unique_single std::make_unique[abi:v15000], DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr, DB::HashedDictionaryConfiguration&>(DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr&&, DB::HashedDictionaryConfiguration&) @ 0x000000001835b706 in /usr/bin/clickhouse 24. /build/src/Dictionaries/HashedDictionary.cpp:1213: DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_4::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, DB::DictionaryKeyType, bool) const @ 0x0000000017dc4266 in /usr/bin/clickhouse 25. /build/src/Dictionaries/HashedDictionary.cpp:1238: auto DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool) const @ 0x0000000017dc2eb2 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval(), std::declval>(), std::declval>(), std::declval())) std::__invoke[abi:v15000], std::shared_ptr, bool>(DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dc2ddb in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::unique_ptr> std::__invoke_void_return_wrapper>, false>::__call, std::shared_ptr, bool>(DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dc2cf6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()[abi:v15000](String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dc2c76 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::unique_ptr> std::__function::__policy_invoker> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::__call_impl> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>>(std::__function::__policy_storage const*, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool) @ 0x0000000017dc2c02 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()[abi:v15000](String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) const @ 0x000000001abcd3c2 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool) const @ 0x000000001abca75b in /usr/bin/clickhouse 2024.05.01 13:21:32.184622 [ 12030 ] {09a02d15-0efb-471b-a22e-a2be8f8f9d1a} TCPHandler: Code: 60. DB::Exception: Table test_fjj607s3.data does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:171: DB::ClickHouseDictionarySource::createStreamForQuery(String const&) @ 0x0000000017c1a7b1 in /usr/bin/clickhouse 20. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:113: DB::ClickHouseDictionarySource::loadAll() @ 0x0000000017c1a68a in /usr/bin/clickhouse 21. /build/src/Dictionaries/HashedDictionary.cpp:935: DB::HashedDictionary<(DB::DictionaryKeyType)0, false, false>::loadData() @ 0x0000000017dc5b88 in /usr/bin/clickhouse 22. /build/src/Dictionaries/HashedDictionary.cpp:214: DB::HashedDictionary<(DB::DictionaryKeyType)0, false, false>::HashedDictionary(DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr, DB::HashedDictionaryConfiguration const&, std::shared_ptr) @ 0x0000000017dc563c in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if>::__unique_single std::make_unique[abi:v15000], DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr, DB::HashedDictionaryConfiguration&>(DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr&&, DB::HashedDictionaryConfiguration&) @ 0x000000001835b706 in /usr/bin/clickhouse 24. /build/src/Dictionaries/HashedDictionary.cpp:1213: DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_4::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, DB::DictionaryKeyType, bool) const @ 0x0000000017dc4266 in /usr/bin/clickhouse 25. /build/src/Dictionaries/HashedDictionary.cpp:1238: auto DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool) const @ 0x0000000017dc2eb2 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval(), std::declval>(), std::declval>(), std::declval())) std::__invoke[abi:v15000], std::shared_ptr, bool>(DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dc2ddb in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::unique_ptr> std::__invoke_void_return_wrapper>, false>::__call, std::shared_ptr, bool>(DB::registerDictionaryHashed(DB::DictionaryFactory&)::$_0&, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dc2cf6 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()[abi:v15000](String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) @ 0x0000000017dc2c76 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::unique_ptr> std::__function::__policy_invoker> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::__call_impl> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>>(std::__function::__policy_storage const*, String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool) @ 0x0000000017dc2c02 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()[abi:v15000](String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr&&, std::shared_ptr&&, bool&&) const @ 0x000000001abcd3c2 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function> (String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool)>::operator()(String const&, DB::DictionaryStructure const&, Poco::Util::AbstractConfiguration const&, String const&, std::shared_ptr, std::shared_ptr, bool) const @ 0x000000001abca75b in /usr/bin/clickhouse 2024.05.01 13:21:32.882779 [ 12027 ] {02421_truncate_isolation_no_merges_test_rtv8dvd4_tx21_21527} executeQuery: Code: 60. DB::Exception: Table test_rtv8dvd4.tt does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:58870) (in query: truncate table tt), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 14. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 15. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 16. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:32.883885 [ 12027 ] {02421_truncate_isolation_no_merges_test_rtv8dvd4_tx21_21527} DynamicQueryHandler: Code: 60. DB::Exception: Table test_rtv8dvd4.tt does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 14. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 15. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 16. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:33.882649 [ 12030 ] {37ad1f51-9801-4ddb-9e32-38d2df7bfef3} executeQuery: Code: 207. DB::Exception: JOIN test_y5ntarur.test_table_join_1 ALL INNER JOIN test_y5ntarur.test_table_join_2 ON test_y5ntarur.test_table_join_1.id = test_y5ntarur.test_table_join_2.id ambiguous identifier 'id'. In scope SELECT id FROM test_table_join_1 INNER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45794) (comment: 02372_analyzer_join.gen.sql) (in query: SELECT id FROM test_table_join_1 INNER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c930d99 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f8c5 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:33.883809 [ 12030 ] {37ad1f51-9801-4ddb-9e32-38d2df7bfef3} TCPHandler: Code: 207. DB::Exception: JOIN test_y5ntarur.test_table_join_1 ALL INNER JOIN test_y5ntarur.test_table_join_2 ON test_y5ntarur.test_table_join_1.id = test_y5ntarur.test_table_join_2.id ambiguous identifier 'id'. In scope SELECT id FROM test_table_join_1 INNER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c930d99 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f8c5 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:33.903146 [ 12030 ] {f37873f3-ce7c-4004-8214-0572efd63afb} executeQuery: Code: 207. DB::Exception: JOIN test_y5ntarur.test_table_join_1 ALL INNER JOIN test_y5ntarur.test_table_join_2 ON test_y5ntarur.test_table_join_1.id = test_y5ntarur.test_table_join_2.id ambiguous identifier 'value'. In scope SELECT value FROM test_table_join_1 INNER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45794) (comment: 02372_analyzer_join.gen.sql) (in query: SELECT value FROM test_table_join_1 INNER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c930d99 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f8c5 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:33.903828 [ 12030 ] {f37873f3-ce7c-4004-8214-0572efd63afb} TCPHandler: Code: 207. DB::Exception: JOIN test_y5ntarur.test_table_join_1 ALL INNER JOIN test_y5ntarur.test_table_join_2 ON test_y5ntarur.test_table_join_1.id = test_y5ntarur.test_table_join_2.id ambiguous identifier 'value'. In scope SELECT value FROM test_table_join_1 INNER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c930d99 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f8c5 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:34.140039 [ 12028 ] {e557c150-84d2-4a02-8b1e-b70be981072e} executeQuery: Code: 43. DB::Exception: Arguments of function nowInBlock should be String or FixedString: While processing nowInBlock(1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45808) (comment: 02372_now_in_block.sql) (in query: SELECT nowInBlock(1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/nowInBlock.cpp:70: DB::(anonymous namespace)::FunctionNowInBlock::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118e35cc in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:21:34.140982 [ 12028 ] {e557c150-84d2-4a02-8b1e-b70be981072e} TCPHandler: Code: 43. DB::Exception: Arguments of function nowInBlock should be String or FixedString: While processing nowInBlock(1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/nowInBlock.cpp:70: DB::(anonymous namespace)::FunctionNowInBlock::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118e35cc in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:21:34.275951 [ 12028 ] {37fd69d7-2396-42d9-a6a1-1774f37fdd53} executeQuery: Code: 42. DB::Exception: Arguments size of function nowInBlock should be 0 or 1: While processing nowInBlock('UTC', 'UTC'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45808) (comment: 02372_now_in_block.sql) (in query: SELECT nowInBlock('UTC', 'UTC');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/nowInBlock.cpp:66: DB::(anonymous namespace)::FunctionNowInBlock::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118e3495 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:21:34.276926 [ 12028 ] {37fd69d7-2396-42d9-a6a1-1774f37fdd53} TCPHandler: Code: 42. DB::Exception: Arguments size of function nowInBlock should be 0 or 1: While processing nowInBlock('UTC', 'UTC'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/nowInBlock.cpp:66: DB::(anonymous namespace)::FunctionNowInBlock::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118e3495 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:21:35.095417 [ 12030 ] {99b06d61-9503-4976-8b15-ef6a6bfcee39} executeQuery: Code: 207. DB::Exception: JOIN test_y5ntarur.test_table_join_1 ALL LEFT JOIN test_y5ntarur.test_table_join_2 ON test_y5ntarur.test_table_join_1.id = test_y5ntarur.test_table_join_2.id ambiguous identifier 'id'. In scope SELECT id FROM test_table_join_1 LEFT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45794) (comment: 02372_analyzer_join.gen.sql) (in query: SELECT id FROM test_table_join_1 LEFT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c930d99 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f8c5 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:35.096124 [ 12030 ] {99b06d61-9503-4976-8b15-ef6a6bfcee39} TCPHandler: Code: 207. DB::Exception: JOIN test_y5ntarur.test_table_join_1 ALL LEFT JOIN test_y5ntarur.test_table_join_2 ON test_y5ntarur.test_table_join_1.id = test_y5ntarur.test_table_join_2.id ambiguous identifier 'id'. In scope SELECT id FROM test_table_join_1 LEFT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c930d99 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f8c5 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:35.118079 [ 12030 ] {9edfa1f2-d606-4e24-86c6-cf0487d59418} executeQuery: Code: 207. DB::Exception: JOIN test_y5ntarur.test_table_join_1 ALL LEFT JOIN test_y5ntarur.test_table_join_2 ON test_y5ntarur.test_table_join_1.id = test_y5ntarur.test_table_join_2.id ambiguous identifier 'value'. In scope SELECT value FROM test_table_join_1 LEFT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45794) (comment: 02372_analyzer_join.gen.sql) (in query: SELECT value FROM test_table_join_1 LEFT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c930d99 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f8c5 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:35.119075 [ 12030 ] {9edfa1f2-d606-4e24-86c6-cf0487d59418} TCPHandler: Code: 207. DB::Exception: JOIN test_y5ntarur.test_table_join_1 ALL LEFT JOIN test_y5ntarur.test_table_join_2 ON test_y5ntarur.test_table_join_1.id = test_y5ntarur.test_table_join_2.id ambiguous identifier 'value'. In scope SELECT value FROM test_table_join_1 LEFT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c930d99 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f8c5 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:36.282575 [ 12030 ] {ee0d947c-ab13-44b9-9979-8fba4ef43d9f} executeQuery: Code: 207. DB::Exception: JOIN test_y5ntarur.test_table_join_1 ALL RIGHT JOIN test_y5ntarur.test_table_join_2 ON test_y5ntarur.test_table_join_1.id = test_y5ntarur.test_table_join_2.id ambiguous identifier 'id'. In scope SELECT id FROM test_table_join_1 RIGHT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45794) (comment: 02372_analyzer_join.gen.sql) (in query: SELECT id FROM test_table_join_1 RIGHT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c930d99 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f8c5 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:36.283462 [ 12030 ] {ee0d947c-ab13-44b9-9979-8fba4ef43d9f} TCPHandler: Code: 207. DB::Exception: JOIN test_y5ntarur.test_table_join_1 ALL RIGHT JOIN test_y5ntarur.test_table_join_2 ON test_y5ntarur.test_table_join_1.id = test_y5ntarur.test_table_join_2.id ambiguous identifier 'id'. In scope SELECT id FROM test_table_join_1 RIGHT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c930d99 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f8c5 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:36.306477 [ 12030 ] {2e971a36-665a-41ad-b4ae-cf47ffd5227e} executeQuery: Code: 207. DB::Exception: JOIN test_y5ntarur.test_table_join_1 ALL RIGHT JOIN test_y5ntarur.test_table_join_2 ON test_y5ntarur.test_table_join_1.id = test_y5ntarur.test_table_join_2.id ambiguous identifier 'value'. In scope SELECT value FROM test_table_join_1 RIGHT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45794) (comment: 02372_analyzer_join.gen.sql) (in query: SELECT value FROM test_table_join_1 RIGHT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c930d99 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f8c5 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:36.307440 [ 12030 ] {2e971a36-665a-41ad-b4ae-cf47ffd5227e} TCPHandler: Code: 207. DB::Exception: JOIN test_y5ntarur.test_table_join_1 ALL RIGHT JOIN test_y5ntarur.test_table_join_2 ON test_y5ntarur.test_table_join_1.id = test_y5ntarur.test_table_join_2.id ambiguous identifier 'value'. In scope SELECT value FROM test_table_join_1 RIGHT JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c930d99 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f8c5 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:37.555679 [ 12030 ] {e0ca62bd-d6ef-44d3-8780-084e3b3bf1de} executeQuery: Code: 207. DB::Exception: JOIN test_y5ntarur.test_table_join_1 ALL FULL OUTER JOIN test_y5ntarur.test_table_join_2 ON test_y5ntarur.test_table_join_1.id = test_y5ntarur.test_table_join_2.id ambiguous identifier 'id'. In scope SELECT id FROM test_table_join_1 FULL OUTER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45794) (comment: 02372_analyzer_join.gen.sql) (in query: SELECT id FROM test_table_join_1 FULL JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c930d99 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f8c5 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:37.556598 [ 12030 ] {e0ca62bd-d6ef-44d3-8780-084e3b3bf1de} TCPHandler: Code: 207. DB::Exception: JOIN test_y5ntarur.test_table_join_1 ALL FULL OUTER JOIN test_y5ntarur.test_table_join_2 ON test_y5ntarur.test_table_join_1.id = test_y5ntarur.test_table_join_2.id ambiguous identifier 'id'. In scope SELECT id FROM test_table_join_1 FULL OUTER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c930d99 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f8c5 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:37.575234 [ 12030 ] {82e66c20-f0b1-4cc3-a6e6-3abf3dca81d8} executeQuery: Code: 207. DB::Exception: JOIN test_y5ntarur.test_table_join_1 ALL FULL OUTER JOIN test_y5ntarur.test_table_join_2 ON test_y5ntarur.test_table_join_1.id = test_y5ntarur.test_table_join_2.id ambiguous identifier 'value'. In scope SELECT value FROM test_table_join_1 FULL OUTER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45794) (comment: 02372_analyzer_join.gen.sql) (in query: SELECT value FROM test_table_join_1 FULL JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c930d99 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f8c5 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:37.576123 [ 12030 ] {82e66c20-f0b1-4cc3-a6e6-3abf3dca81d8} TCPHandler: Code: 207. DB::Exception: JOIN test_y5ntarur.test_table_join_1 ALL FULL OUTER JOIN test_y5ntarur.test_table_join_2 ON test_y5ntarur.test_table_join_1.id = test_y5ntarur.test_table_join_2.id ambiguous identifier 'value'. In scope SELECT value FROM test_table_join_1 FULL OUTER JOIN test_table_join_2 ON test_table_join_1.id = test_table_join_2.id. (AMBIGUOUS_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String const&, String&&) @ 0x000000001c9673a8 in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3111: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoin(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c930d99 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3291: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTreeNode(DB::(anonymous namespace)::IdentifierLookup const&, std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92f8c5 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3351: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromJoinTree(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91fdc7 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3544: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91f01b in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 16. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:45.850682 [ 944 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:46.913367 [ 943 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:47.512203 [ 947 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:47.682399 [ 942 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:47.833352 [ 945 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:48.180093 [ 942 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:49.179969 [ 944 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:49.784303 [ 945 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:50.346143 [ 943 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:51.440312 [ 12037 ] {7386b47d-01c1-4e6c-b235-9025a2ed856b} executeQuery: Code: 80. DB::Exception: Annoy index must not have more than two parameters. (INCORRECT_QUERY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47844) (comment: 02354_annoy_index.sql) (in query: -- must have at most 2 arguments CREATE TABLE tab(id Int32, vector Array(Float32), INDEX annoy_index vector TYPE annoy('too', 'many', 'arguments')) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [51]) @ 0x000000000b18eede in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:335: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00e81a in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 2024.05.01 13:21:51.440513 [ 939 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:51.441409 [ 12037 ] {7386b47d-01c1-4e6c-b235-9025a2ed856b} TCPHandler: Code: 80. DB::Exception: Annoy index must not have more than two parameters. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [51]) @ 0x000000000b18eede in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:335: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00e81a in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 2024.05.01 13:21:51.614572 [ 12037 ] {d3dfb64c-0437-4fdc-8a02-471ba7418e24} executeQuery: Code: 80. DB::Exception: Distance function argument of Annoy index must be of type String. (INCORRECT_QUERY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47844) (comment: 02354_annoy_index.sql) (in query: -- first argument (distance_function) must be String CREATE TABLE tab(id Int32, vector Array(Float32), INDEX annoy_index vector TYPE annoy(3)) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [65]) @ 0x000000000e1c729e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:338: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00e8b9 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 2024.05.01 13:21:51.615686 [ 12037 ] {d3dfb64c-0437-4fdc-8a02-471ba7418e24} TCPHandler: Code: 80. DB::Exception: Distance function argument of Annoy index must be of type String. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [65]) @ 0x000000000e1c729e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:338: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00e8b9 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 2024.05.01 13:21:51.803402 [ 12037 ] {e2d596c9-8f27-4e90-8ad0-0b58bf6e9f7d} executeQuery: Code: 80. DB::Exception: Number of trees argument of Annoy index must be of type UInt64. (INCORRECT_QUERY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47844) (comment: 02354_annoy_index.sql) (in query: -- 2nd argument (number of trees) must be UInt64 CREATE TABLE tab(id Int32, vector Array(Float32), INDEX annoy_index vector TYPE annoy('L2Distance', 'not an UInt64')) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [63]) @ 0x000000000bad83de in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:341: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00e95b in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 2024.05.01 13:21:51.804700 [ 12037 ] {e2d596c9-8f27-4e90-8ad0-0b58bf6e9f7d} TCPHandler: Code: 80. DB::Exception: Number of trees argument of Annoy index must be of type UInt64. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [63]) @ 0x000000000bad83de in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:341: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00e95b in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 2024.05.01 13:21:51.973257 [ 12037 ] {c597d764-c78c-4782-8d77-8b31b93a8e6e} executeQuery: Code: 7. DB::Exception: Annoy indexes must be created on a single column. (INCORRECT_NUMBER_OF_COLUMNS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47844) (comment: 02354_annoy_index.sql) (in query: -- must be created on single column CREATE TABLE tab(id Int32, vector Array(Float32), INDEX annoy_index (vector, id) TYPE annoy()) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4bb9be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:346: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00e9f9 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 2024.05.01 13:21:51.973515 [ 942 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:51.974482 [ 12037 ] {c597d764-c78c-4782-8d77-8b31b93a8e6e} TCPHandler: Code: 7. DB::Exception: Annoy indexes must be created on a single column. (INCORRECT_NUMBER_OF_COLUMNS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4bb9be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:346: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00e9f9 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 2024.05.01 13:21:52.148108 [ 12037 ] {ed20bbf1-59cf-4045-b7d3-d4f53c7c6681} executeQuery: Code: 117. DB::Exception: Annoy index only supports distance functions 'L2Distance' and 'cosineDistance'. (INCORRECT_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47844) (comment: 02354_annoy_index.sql) (in query: -- reject unsupported distance functions CREATE TABLE tab(id Int32, vector Array(Float32), INDEX annoy_index vector TYPE annoy('wormholeDistance')) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, char const* const&, char const* const&) @ 0x00000000124bdf0c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:354: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00eb11 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 2024.05.01 13:21:52.149166 [ 12037 ] {ed20bbf1-59cf-4045-b7d3-d4f53c7c6681} TCPHandler: Code: 117. DB::Exception: Annoy index only supports distance functions 'L2Distance' and 'cosineDistance'. (INCORRECT_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, char const* const&, char const* const&) @ 0x00000000124bdf0c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:354: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00eb11 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 17. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 30. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 2024.05.01 13:21:52.342655 [ 12037 ] {a70c9599-cf33-4420-b675-2f296d4897e0} executeQuery: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47844) (comment: 02354_annoy_index.sql) (in query: CREATE TABLE tab(id Int32, vector Float32, INDEX annoy_index vector TYPE annoy()) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398093e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e00ee75 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:385: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00ee13 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 2024.05.01 13:21:52.343662 [ 12037 ] {a70c9599-cf33-4420-b675-2f296d4897e0} TCPHandler: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398093e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e00ee75 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:385: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00ee13 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 2024.05.01 13:21:52.526682 [ 12037 ] {fac7da84-e90f-4771-813d-e5c52752cd8c} executeQuery: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47844) (comment: 02354_annoy_index.sql) (in query: CREATE TABLE tab(id Int32, vector Array(Float64), INDEX annoy_index vector TYPE annoy()) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398093e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e00ee75 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:372: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00ec86 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 2024.05.01 13:21:52.527095 [ 947 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:52.527680 [ 12037 ] {fac7da84-e90f-4771-813d-e5c52752cd8c} TCPHandler: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398093e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e00ee75 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:372: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00ec86 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 2024.05.01 13:21:52.701971 [ 12037 ] {d8113e6a-ffa1-41fa-a7b7-c518bae3693d} executeQuery: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47844) (comment: 02354_annoy_index.sql) (in query: CREATE TABLE tab(id Int32, vector Tuple(Float64), INDEX annoy_index vector TYPE annoy()) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398093e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e00ee75 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:381: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00eddd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 2024.05.01 13:21:52.703016 [ 12037 ] {d8113e6a-ffa1-41fa-a7b7-c518bae3693d} TCPHandler: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398093e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e00ee75 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:381: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00eddd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 2024.05.01 13:21:52.723914 [ 12037 ] {c807310a-d8c5-495e-bf03-39cd5dcbc822} executeQuery: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47844) (comment: 02354_annoy_index.sql) (in query: CREATE TABLE tab(id Int32, vector LowCardinality(Float32), INDEX annoy_index vector TYPE annoy()) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398093e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e00ee75 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:385: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00ee13 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 2024.05.01 13:21:52.724761 [ 12037 ] {c807310a-d8c5-495e-bf03-39cd5dcbc822} TCPHandler: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398093e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e00ee75 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:385: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00ee13 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 2024.05.01 13:21:52.746740 [ 12037 ] {ef01c27f-f6c8-433f-9f04-da9dbe0d880d} executeQuery: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47844) (comment: 02354_annoy_index.sql) (in query: CREATE TABLE tab(id Int32, vector Nullable(Float32), INDEX annoy_index vector TYPE annoy()) ENGINE = MergeTree ORDER BY id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398093e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e00ee75 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:385: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00ee13 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 2024.05.01 13:21:52.747661 [ 12037 ] {ef01c27f-f6c8-433f-9f04-da9dbe0d880d} TCPHandler: Code: 44. DB::Exception: Annoy indexes can only be created on columns of type Array(Float32) and Tuple(Float32). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [87]) @ 0x000000001398093e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:361: DB::annoyIndexValidator(DB::IndexDescription const&, bool)::$_0::operator()() const @ 0x000000001e00ee75 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:385: DB::annoyIndexValidator(DB::IndexDescription const&, bool) @ 0x000000001e00ee13 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 18. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 31. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 2024.05.01 13:21:53.239903 [ 12037 ] {3e8e54fe-c74c-4ef4-a20f-a5c624ebbad7} executeQuery: Code: 80. DB::Exception: The dimension of the space in the request (2) does not match the dimension in the index (3). (INCORRECT_QUERY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47844) (comment: 02354_annoy_index.sql) (in query: SELECT * FROM tab ORDER BY L2Distance(vector, [0.0, 0.0]) LIMIT 3;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:256: std::vector> DB::MergeTreeIndexConditionAnnoy::getUsefulRangesImpl(std::shared_ptr) const @ 0x000000001e00fe24 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:229: DB::MergeTreeIndexConditionAnnoy::getUsefulRanges(std::shared_ptr) const @ 0x000000001e00e26f in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1646: DB::MergeTreeDataSelectExecutor::filterMarksUsingIndex(std::shared_ptr, std::shared_ptr, std::shared_ptr, DB::MarkRanges const&, DB::Settings const&, DB::MergeTreeReaderSettings const&, DB::MarkCache*, DB::UncompressedCache*, Poco::Logger*) @ 0x000000001df51d25 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:987: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool)::$_0::operator()(unsigned long) const @ 0x000000001df4ef06 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1039: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001df4d203 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1498: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee37b04 in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1375: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee34f81 in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001ee34c98 in /usr/bin/clickhouse 14. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1682: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001ee39f6c in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1790: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3afdb in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 17. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:53.240868 [ 12037 ] {3e8e54fe-c74c-4ef4-a20f-a5c624ebbad7} TCPHandler: Code: 80. DB::Exception: The dimension of the space in the request (2) does not match the dimension in the index (3). (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, unsigned long&&) @ 0x0000000013855e2c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:256: std::vector> DB::MergeTreeIndexConditionAnnoy::getUsefulRangesImpl(std::shared_ptr) const @ 0x000000001e00fe24 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:229: DB::MergeTreeIndexConditionAnnoy::getUsefulRanges(std::shared_ptr) const @ 0x000000001e00e26f in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1646: DB::MergeTreeDataSelectExecutor::filterMarksUsingIndex(std::shared_ptr, std::shared_ptr, std::shared_ptr, DB::MarkRanges const&, DB::Settings const&, DB::MergeTreeReaderSettings const&, DB::MarkCache*, DB::UncompressedCache*, Poco::Logger*) @ 0x000000001df51d25 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:987: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool)::$_0::operator()(unsigned long) const @ 0x000000001df4ef06 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1039: DB::MergeTreeDataSelectExecutor::filterPartsByPrimaryKeyAndSkipIndexes(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::shared_ptr, std::shared_ptr const&, DB::KeyCondition const&, DB::UsefulSkipIndexes const&, DB::MergeTreeReaderSettings const&, Poco::Logger*, unsigned long, std::vector>&, bool) @ 0x000000001df4d203 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1498: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee37b04 in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1375: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee34f81 in /usr/bin/clickhouse 13. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001ee34c98 in /usr/bin/clickhouse 14. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1682: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001ee39f6c in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1790: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3afdb in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 17. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:53.442928 [ 12037 ] {d8967644-72b3-4137-a207-452642e88f74} executeQuery: Code: 80. DB::Exception: Distance can't be negative. Got -1. (INCORRECT_QUERY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47844) (comment: 02354_annoy_index.sql) (in query: SELECT * FROM tab WHERE L2Distance(vector, [0.0, 0.0, 10.0]) < -1.0 LIMIT 3;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, float&) @ 0x000000000b9398d3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ApproximateNearestNeighborIndexesCommon.cpp:354: DB::ApproximateNearestNeighborCondition::matchRPNWhere(std::vector>&, DB::ApproximateNearestNeighborInformation&) @ 0x000000001e02cf90 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ApproximateNearestNeighborIndexesCommon.cpp:163: DB::ApproximateNearestNeighborCondition::checkQueryStructure(DB::SelectQueryInfo const&) @ 0x000000001e02bd8f in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ApproximateNearestNeighborIndexesCommon.cpp:58: DB::ApproximateNearestNeighborCondition::ApproximateNearestNeighborCondition(DB::SelectQueryInfo const&, std::shared_ptr) @ 0x000000001e02b75c in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:211: DB::MergeTreeIndexConditionAnnoy::MergeTreeIndexConditionAnnoy(DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr) @ 0x000000001e00dfa2 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeTreeIndexConditionAnnoy* std::construct_at[abi:v15000]&, DB::MergeTreeIndexConditionAnnoy*>(DB::MergeTreeIndexConditionAnnoy*, DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e02aa66 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, void, void>(std::allocator&, DB::MergeTreeIndexConditionAnnoy*, DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e02a7f9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&>(std::allocator, DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e02a4df in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&, void>(std::allocator const&, DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e02a332 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, void>(DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e010f5e in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:312: DB::MergeTreeIndexAnnoy::createIndexCondition(DB::SelectQueryInfo const&, std::shared_ptr) const @ 0x000000001e00e5f1 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1336: DB::buildIndexes(std::optional&, std::shared_ptr, DB::MergeTreeData const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&) @ 0x000000001ee366a0 in /usr/bin/clickhouse 17. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1349: DB::ReadFromMergeTree::applyFilters() @ 0x000000001ee3529d in /usr/bin/clickhouse 18. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:205: DB::QueryPlanOptimizations::optimizeTreeThirdPass(DB::QueryPlan&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001eec0c68 in /usr/bin/clickhouse 19. /build/src/Processors/QueryPlan/QueryPlan.cpp:484: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001ee0eb51 in /usr/bin/clickhouse 20. /build/src/Processors/QueryPlan/QueryPlan.cpp:169: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e657 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:21:53.443125 [ 943 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:53.443703 [ 12037 ] {d8967644-72b3-4137-a207-452642e88f74} TCPHandler: Code: 80. DB::Exception: Distance can't be negative. Got -1. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, float&) @ 0x000000000b9398d3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ApproximateNearestNeighborIndexesCommon.cpp:354: DB::ApproximateNearestNeighborCondition::matchRPNWhere(std::vector>&, DB::ApproximateNearestNeighborInformation&) @ 0x000000001e02cf90 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ApproximateNearestNeighborIndexesCommon.cpp:163: DB::ApproximateNearestNeighborCondition::checkQueryStructure(DB::SelectQueryInfo const&) @ 0x000000001e02bd8f in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ApproximateNearestNeighborIndexesCommon.cpp:58: DB::ApproximateNearestNeighborCondition::ApproximateNearestNeighborCondition(DB::SelectQueryInfo const&, std::shared_ptr) @ 0x000000001e02b75c in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:211: DB::MergeTreeIndexConditionAnnoy::MergeTreeIndexConditionAnnoy(DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr) @ 0x000000001e00dfa2 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeTreeIndexConditionAnnoy* std::construct_at[abi:v15000]&, DB::MergeTreeIndexConditionAnnoy*>(DB::MergeTreeIndexConditionAnnoy*, DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e02aa66 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, void, void>(std::allocator&, DB::MergeTreeIndexConditionAnnoy*, DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e02a7f9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&>(std::allocator, DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e02a4df in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&, void>(std::allocator const&, DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e02a332 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, void>(DB::IndexDescription const&, DB::SelectQueryInfo const&, String const&, std::shared_ptr&) @ 0x000000001e010f5e in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp:312: DB::MergeTreeIndexAnnoy::createIndexCondition(DB::SelectQueryInfo const&, std::shared_ptr) const @ 0x000000001e00e5f1 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1336: DB::buildIndexes(std::optional&, std::shared_ptr, DB::MergeTreeData const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr const&) @ 0x000000001ee366a0 in /usr/bin/clickhouse 17. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1349: DB::ReadFromMergeTree::applyFilters() @ 0x000000001ee3529d in /usr/bin/clickhouse 18. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:205: DB::QueryPlanOptimizations::optimizeTreeThirdPass(DB::QueryPlan&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001eec0c68 in /usr/bin/clickhouse 19. /build/src/Processors/QueryPlan/QueryPlan.cpp:484: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001ee0eb51 in /usr/bin/clickhouse 20. /build/src/Processors/QueryPlan/QueryPlan.cpp:169: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e657 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:21:53.504184 [ 940 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:53.810928 [ 12038 ] {1946e4ad-5050-422d-bb41-b5080895fb1e} executeQuery: Code: 36. DB::Exception: Second and third arguments must be the same length: While processing translate('abc', 'Ãáéíóúôè', 'aaeiouoe'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47920) (comment: 02353_translate.sql) (in query: SELECT translate('abc', 'Ãáéíóúôè', 'aaeiouoe');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [51]) @ 0x000000000b18eede in /usr/bin/clickhouse 6. /build/src/Functions/translate.cpp:35: DB::TranslateImpl::fillMapWithValues(std::array&, String const&, String const&) @ 0x000000001278cca3 in /usr/bin/clickhouse 7. /build/src/Functions/translate.cpp:59: DB::TranslateImpl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, String const&, String const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x000000001278c937 in /usr/bin/clickhouse 8. /build/src/Functions/translate.cpp:332: DB::FunctionTranslate::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001278a156 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 2024.05.01 13:21:53.812122 [ 12038 ] {1946e4ad-5050-422d-bb41-b5080895fb1e} TCPHandler: Code: 36. DB::Exception: Second and third arguments must be the same length: While processing translate('abc', 'Ãáéíóúôè', 'aaeiouoe'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [51]) @ 0x000000000b18eede in /usr/bin/clickhouse 6. /build/src/Functions/translate.cpp:35: DB::TranslateImpl::fillMapWithValues(std::array&, String const&, String const&) @ 0x000000001278cca3 in /usr/bin/clickhouse 7. /build/src/Functions/translate.cpp:59: DB::TranslateImpl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, String const&, String const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x000000001278c937 in /usr/bin/clickhouse 8. /build/src/Functions/translate.cpp:332: DB::FunctionTranslate::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001278a156 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 2024.05.01 13:21:53.930526 [ 12038 ] {a9dcf69e-3fcf-4b24-a457-427dbc50434f} executeQuery: Code: 36. DB::Exception: Second and third arguments must be the same length: While processing translateUTF8('abc', 'efg', ''). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47920) (comment: 02353_translate.sql) (in query: SELECT translateUTF8('abc', 'efg', '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [51]) @ 0x000000000b18eede in /usr/bin/clickhouse 6. /build/src/Functions/translate.cpp:133: DB::TranslateUTF8Impl::fillMapWithValues(std::array&, HashMapTable, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>&, String const&, String const&) @ 0x000000001278dbb9 in /usr/bin/clickhouse 7. /build/src/Functions/translate.cpp:181: DB::TranslateUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, String const&, String const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x000000001278d019 in /usr/bin/clickhouse 8. /build/src/Functions/translate.cpp:332: DB::FunctionTranslate::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001278bc44 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 2024.05.01 13:21:53.931917 [ 12038 ] {a9dcf69e-3fcf-4b24-a457-427dbc50434f} TCPHandler: Code: 36. DB::Exception: Second and third arguments must be the same length: While processing translateUTF8('abc', 'efg', ''). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [51]) @ 0x000000000b18eede in /usr/bin/clickhouse 6. /build/src/Functions/translate.cpp:133: DB::TranslateUTF8Impl::fillMapWithValues(std::array&, HashMapTable, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>&, String const&, String const&) @ 0x000000001278dbb9 in /usr/bin/clickhouse 7. /build/src/Functions/translate.cpp:181: DB::TranslateUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, String const&, String const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x000000001278d019 in /usr/bin/clickhouse 8. /build/src/Functions/translate.cpp:332: DB::FunctionTranslate::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001278bc44 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 2024.05.01 13:21:54.039446 [ 942 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:54.305194 [ 938 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:54.988401 [ 943 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:55.172002 [ 940 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:55.488394 [ 942 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:55.958663 [ 947 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:56.401548 [ 943 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:56.811537 [ 939 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:57.369330 [ 942 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:58.244235 [ 947 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:58.500497 [ 943 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F02369%2F02370_lost_part_intersecting_merges_test_zurbcocj%2Ftest_zurbcocj%2Freplicas%2F2&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:59.260152 [ 12027 ] {02421_truncate_isolation_no_merges_test_rtv8dvd4_tx41_7656} executeQuery: Code: 650. DB::Exception: Serialization error: Transaction (35, 41, 5f4d2fcf-9824-4d0e-9e6f-fedff2b5949e) tried to remove data part all_2_2_0 from test_rtv8dvd4.tt (9b781841-777e-4d42-8dff-4590113ceff0), but it's locked by another transaction (TID: (35, 42, 5f4d2fcf-9824-4d0e-9e6f-fedff2b5949e), TIDH: 8515766391443830610) which is currently removing this part. (SERIALIZATION_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:46552) (in query: truncate table tt), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, DB::TransactionID const&, String&, String&&, DB::TransactionID&&, unsigned long&) @ 0x000000001cf860fa in /usr/bin/clickhouse 6. /build/src/Interpreters/TransactionVersionMetadata.cpp:62: DB::VersionMetadata::lockRemovalTID(DB::TransactionID const&, DB::TransactionInfoContext const&) @ 0x000000001cf82b2f in /usr/bin/clickhouse 7. /build/src/Interpreters/MergeTreeTransaction.cpp:149: DB::MergeTreeTransaction::removeOldPart(std::shared_ptr const&, std::shared_ptr const&, DB::TransactionInfoContext const&) @ 0x000000001cc4694f in /usr/bin/clickhouse 8. /build/src/Interpreters/MergeTreeTransaction.cpp:93: DB::MergeTreeTransaction::removeOldPart(std::shared_ptr const&, std::shared_ptr const&, DB::MergeTreeTransaction*) @ 0x000000001cc467c7 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:3962: DB::MergeTreeData::removePartsFromWorkingSet(DB::MergeTreeTransaction*, std::vector, std::allocator>> const&, bool, DB::DataPartsLock&) @ 0x000000001de365b3 in /usr/bin/clickhouse 10. /build/src/Storages/StorageMergeTree.cpp:1748: DB::StorageMergeTree::truncate(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, DB::TableExclusiveLockHolder&) @ 0x000000001e30d293 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:221: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8aabc4 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 16. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 17. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 18. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:59.261071 [ 12027 ] {02421_truncate_isolation_no_merges_test_rtv8dvd4_tx41_7656} DynamicQueryHandler: Code: 650. DB::Exception: Serialization error: Transaction (35, 41, 5f4d2fcf-9824-4d0e-9e6f-fedff2b5949e) tried to remove data part all_2_2_0 from test_rtv8dvd4.tt (9b781841-777e-4d42-8dff-4590113ceff0), but it's locked by another transaction (TID: (35, 42, 5f4d2fcf-9824-4d0e-9e6f-fedff2b5949e), TIDH: 8515766391443830610) which is currently removing this part. (SERIALIZATION_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, DB::TransactionID const&, String&, String&&, DB::TransactionID&&, unsigned long&) @ 0x000000001cf860fa in /usr/bin/clickhouse 6. /build/src/Interpreters/TransactionVersionMetadata.cpp:62: DB::VersionMetadata::lockRemovalTID(DB::TransactionID const&, DB::TransactionInfoContext const&) @ 0x000000001cf82b2f in /usr/bin/clickhouse 7. /build/src/Interpreters/MergeTreeTransaction.cpp:149: DB::MergeTreeTransaction::removeOldPart(std::shared_ptr const&, std::shared_ptr const&, DB::TransactionInfoContext const&) @ 0x000000001cc4694f in /usr/bin/clickhouse 8. /build/src/Interpreters/MergeTreeTransaction.cpp:93: DB::MergeTreeTransaction::removeOldPart(std::shared_ptr const&, std::shared_ptr const&, DB::MergeTreeTransaction*) @ 0x000000001cc467c7 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:3962: DB::MergeTreeData::removePartsFromWorkingSet(DB::MergeTreeTransaction*, std::vector, std::allocator>> const&, bool, DB::DataPartsLock&) @ 0x000000001de365b3 in /usr/bin/clickhouse 10. /build/src/Storages/StorageMergeTree.cpp:1748: DB::StorageMergeTree::truncate(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, DB::TableExclusiveLockHolder&) @ 0x000000001e30d293 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:221: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8aabc4 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 16. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 17. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 18. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:21:59.372596 [ 12027 ] {02421_truncate_isolation_no_merges_test_rtv8dvd4_tx41_12016} executeQuery: Code: 649. DB::Exception: Transaction is not in RUNNING state. (INVALID_TRANSACTION) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:46558) (in query: commit), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [36]) @ 0x000000000cea6c9e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:56: DB::InterpreterTransactionControlQuery::executeCommit(std::shared_ptr) @ 0x000000001cbe7dd5 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:29: DB::InterpreterTransactionControlQuery::execute() @ 0x000000001cbe794d in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:21:59.373487 [ 12027 ] {02421_truncate_isolation_no_merges_test_rtv8dvd4_tx41_12016} DynamicQueryHandler: Code: 649. DB::Exception: Transaction is not in RUNNING state. (INVALID_TRANSACTION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [36]) @ 0x000000000cea6c9e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:56: DB::InterpreterTransactionControlQuery::executeCommit(std::shared_ptr) @ 0x000000001cbe7dd5 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:29: DB::InterpreterTransactionControlQuery::execute() @ 0x000000001cbe794d in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:22:07.069143 [ 12028 ] {d8be97bb-7556-40ee-a9dd-f81c2d244841} executeQuery: Code: 107. DB::ErrnoException: Cannot open file /var/lib/clickhouse/store/f7f/f7f734f0-515f-4fb7-9c70-b25d72ab51ba/all_1_2_1/data.bin, errno: 2, strerror: No such file or directory: While executing MergeTreeThread. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33260) (comment: 02370_lost_part_intersecting_merges.sh) (in query: select * from rmt1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:169: DB::ErrnoException::ErrnoException(String const&, int, int, std::optional const&) @ 0x00000000138db5f0 in /usr/bin/clickhouse 6. /build/src/Common/Exception.cpp:224: DB::throwFromErrnoWithPath(String const&, String const&, int, int) @ 0x00000000138d6d9b in /usr/bin/clickhouse 7. /build/src/IO/ReadBufferFromFile.cpp:48: DB::ReadBufferFromFile::ReadBufferFromFile(String const&, unsigned long, int, char*, unsigned long, std::optional, std::shared_ptr) @ 0x000000001396d8b6 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr const&>(String const&, unsigned long&, int&, char*&, unsigned long&, std::optional&, std::shared_ptr const&) @ 0x000000001ac1368c in /usr/bin/clickhouse 9. /build/src/Disks/IO/createReadBufferFromFileBase.cpp:80: DB::createReadBufferFromFileBase(String const&, DB::ReadSettings const&, std::optional, std::optional, int, char*, unsigned long)::$_1::operator()(unsigned long, unsigned long, int) const @ 0x000000001ac12cd0 in /usr/bin/clickhouse 10. /build/src/Disks/IO/createReadBufferFromFileBase.cpp:216: DB::createReadBufferFromFileBase(String const&, DB::ReadSettings const&, std::optional, std::optional, int, char*, unsigned long) @ 0x000000001ac12bfc in /usr/bin/clickhouse 11. /build/src/Disks/DiskLocal.cpp:335: DB::DiskLocal::readFile(String const&, DB::ReadSettings const&, std::optional, std::optional) const @ 0x000000001bb71067 in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/DataPartStorageOnDiskFull.cpp:122: DB::DataPartStorageOnDiskFull::readFile(String const&, DB::ReadSettings const&, std::optional, std::optional) const @ 0x000000001dcda297 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:98: DB::MergeTreeReaderCompact::initialize() @ 0x000000001e094b19 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:202: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095c4a in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 24. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 2024.05.01 13:22:07.220787 [ 12028 ] {d8be97bb-7556-40ee-a9dd-f81c2d244841} TCPHandler: Code: 107. DB::ErrnoException: Cannot open file /var/lib/clickhouse/store/f7f/f7f734f0-515f-4fb7-9c70-b25d72ab51ba/all_1_2_1/data.bin, errno: 2, strerror: No such file or directory: While executing MergeTreeThread. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:169: DB::ErrnoException::ErrnoException(String const&, int, int, std::optional const&) @ 0x00000000138db5f0 in /usr/bin/clickhouse 6. /build/src/Common/Exception.cpp:224: DB::throwFromErrnoWithPath(String const&, String const&, int, int) @ 0x00000000138d6d9b in /usr/bin/clickhouse 7. /build/src/IO/ReadBufferFromFile.cpp:48: DB::ReadBufferFromFile::ReadBufferFromFile(String const&, unsigned long, int, char*, unsigned long, std::optional, std::shared_ptr) @ 0x000000001396d8b6 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr const&>(String const&, unsigned long&, int&, char*&, unsigned long&, std::optional&, std::shared_ptr const&) @ 0x000000001ac1368c in /usr/bin/clickhouse 9. /build/src/Disks/IO/createReadBufferFromFileBase.cpp:80: DB::createReadBufferFromFileBase(String const&, DB::ReadSettings const&, std::optional, std::optional, int, char*, unsigned long)::$_1::operator()(unsigned long, unsigned long, int) const @ 0x000000001ac12cd0 in /usr/bin/clickhouse 10. /build/src/Disks/IO/createReadBufferFromFileBase.cpp:216: DB::createReadBufferFromFileBase(String const&, DB::ReadSettings const&, std::optional, std::optional, int, char*, unsigned long) @ 0x000000001ac12bfc in /usr/bin/clickhouse 11. /build/src/Disks/DiskLocal.cpp:335: DB::DiskLocal::readFile(String const&, DB::ReadSettings const&, std::optional, std::optional) const @ 0x000000001bb71067 in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/DataPartStorageOnDiskFull.cpp:122: DB::DataPartStorageOnDiskFull::readFile(String const&, DB::ReadSettings const&, std::optional, std::optional) const @ 0x000000001dcda297 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:98: DB::MergeTreeReaderCompact::initialize() @ 0x000000001e094b19 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:202: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095c4a in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 24. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 2024.05.01 13:22:07.221089 [ 726 ] {} test_zurbcocj.rmt1 (ReplicatedMergeTreePartCheckThread): ReplicatedCheckResult DB::ReplicatedMergeTreePartCheckThread::checkPartImpl(const String &): Code: 107. DB::ErrnoException: Cannot open file /var/lib/clickhouse/store/f7f/f7f734f0-515f-4fb7-9c70-b25d72ab51ba/all_1_2_1/columns.txt, errno: 2, strerror: No such file or directory. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:169: DB::ErrnoException::ErrnoException(String const&, int, int, std::optional const&) @ 0x00000000138db5f0 in /usr/bin/clickhouse 6. /build/src/Common/Exception.cpp:224: DB::throwFromErrnoWithPath(String const&, String const&, int, int) @ 0x00000000138d6d9b in /usr/bin/clickhouse 7. /build/src/IO/OpenedFile.cpp:33: DB::OpenedFile::open() const @ 0x000000001ac212ee in /usr/bin/clickhouse 8. /build/src/IO/OpenedFile.cpp:41: DB::OpenedFile::getFD() const @ 0x000000001ac21358 in /usr/bin/clickhouse 9. /build/src/IO/ReadBufferFromFile.h:99: DB::ReadBufferFromFilePReadWithDescriptorsCache::ReadBufferFromFilePReadWithDescriptorsCache(String const&, unsigned long, int, char*, unsigned long, std::optional, std::shared_ptr) @ 0x000000001ac13e08 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr const&>(String const&, unsigned long&, int&, char*&, unsigned long&, std::optional&, std::shared_ptr const&) @ 0x000000001ac137ac in /usr/bin/clickhouse 11. /build/src/Disks/IO/createReadBufferFromFileBase.cpp:91: DB::createReadBufferFromFileBase(String const&, DB::ReadSettings const&, std::optional, std::optional, int, char*, unsigned long)::$_1::operator()(unsigned long, unsigned long, int) const @ 0x000000001ac12d67 in /usr/bin/clickhouse 12. /build/src/Disks/IO/createReadBufferFromFileBase.cpp:216: DB::createReadBufferFromFileBase(String const&, DB::ReadSettings const&, std::optional, std::optional, int, char*, unsigned long) @ 0x000000001ac12bfc in /usr/bin/clickhouse 13. /build/src/Disks/DiskLocal.cpp:335: DB::DiskLocal::readFile(String const&, DB::ReadSettings const&, std::optional, std::optional) const @ 0x000000001bb71067 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/DataPartStorageOnDiskFull.cpp:122: DB::DataPartStorageOnDiskFull::readFile(String const&, DB::ReadSettings const&, std::optional, std::optional) const @ 0x000000001dcda297 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/checkDataPart.cpp:93: DB::checkDataPart(std::shared_ptr, DB::IDataPartStorage const&, DB::NamesAndTypesList const&, DB::MergeTreeDataPartType const&, std::unordered_set, std::equal_to, std::allocator> const&, DB::ReadSettings const&, bool, std::function) @ 0x000000001e2e73a4 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/checkDataPart.cpp:314: DB::checkDataPart(std::shared_ptr, bool, std::function) @ 0x000000001e2e70c8 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp:363: DB::ReplicatedMergeTreePartCheckThread::checkPartImpl(String const&) @ 0x000000001e2429c8 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp:433: DB::ReplicatedMergeTreePartCheckThread::checkPartAndFix(String const&, std::optional*) @ 0x000000001e244cab in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp:573: DB::ReplicatedMergeTreePartCheckThread::run() @ 0x000000001e247880 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp:33: DB::ReplicatedMergeTreePartCheckThread::ReplicatedMergeTreePartCheckThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e2486d8 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreePartCheckThread::ReplicatedMergeTreePartCheckThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2486b5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreePartCheckThread::ReplicatedMergeTreePartCheckThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e248695 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e248675 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e24863d in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 27. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3ca29d in /usr/bin/clickhouse 28. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3cd086 in /usr/bin/clickhouse 29. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3cdf78 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3cdf55 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3cdf39 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:22:07.221656 [ 726 ] {} test_zurbcocj.rmt1 (ReplicatedMergeTreePartCheckThread): Part all_1_2_1 looks broken. Removing it and will try to fetch. 2024.05.01 13:22:07.221883 [ 726 ] {} test_zurbcocj.rmt1 (ReplicatedMergeTreePartCheckThread): Part all_1_2_1 exists in ZooKeeper and the local part was broken. Detaching it, removing from ZooKeeper and queueing a fetch. 2024.05.01 13:22:07.222760 [ 726 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): Detached 1 parts covered by broken part all_1_2_1: all_1_2_1 2024.05.01 13:22:07.242378 [ 735 ] {} test_zurbcocj.rmt1 (f7f734f0-515f-4fb7-9c70-b25d72ab51ba): Directory /var/lib/clickhouse/store/f7f/f7f734f0-515f-4fb7-9c70-b25d72ab51ba/all_1_2_1 (part to remove) doesn't exist or one of nested files has gone. Most likely this is due to manual removing. This should be discouraged. Ignoring. 2024.05.01 13:22:15.838913 [ 12028 ] {b9d22492-598a-45e6-aca4-6077f6a90794} executeQuery: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51998) (comment: 02317_functions_with_nothing.sql) (in query: SELECT JSONExtractKeysAndValuesRaw(arrayJoin([]));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bf9df03 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa01ff in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:15.956852 [ 12028 ] {b9d22492-598a-45e6-aca4-6077f6a90794} TCPHandler: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bf9df03 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa01ff in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:15.957016 [ 12025 ] {17c5817d-d4cf-4012-ba63-8c9a164c9283} executeQuery: Code: 42. DB::Exception: Number of arguments for function dictGet doesn't match: passed 4 should be 3: While processing dictGet('test_dictionary', 'value', 0, 'DefaultValue'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51990) (comment: 02319_dict_get_check_arguments_size.sql) (in query: SELECT dictGet('test_dictionary', 'value', 0, 'DefaultValue');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, unsigned long&) @ 0x000000000bc54a48 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:506: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc52314 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:22:15.958126 [ 12025 ] {17c5817d-d4cf-4012-ba63-8c9a164c9283} TCPHandler: Code: 42. DB::Exception: Number of arguments for function dictGet doesn't match: passed 4 should be 3: While processing dictGet('test_dictionary', 'value', 0, 'DefaultValue'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, unsigned long&) @ 0x000000000bc54a48 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:506: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc52314 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:22:15.965913 [ 12028 ] {fbbabd4c-2ef2-4618-82c8-28898e7941da} executeQuery: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51998) (comment: 02317_functions_with_nothing.sql) (in query: SELECT JSONHas(arrayJoin([]));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bf9df03 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa01ff in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:15.966740 [ 12028 ] {fbbabd4c-2ef2-4618-82c8-28898e7941da} TCPHandler: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bf9df03 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa01ff in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:15.977163 [ 12028 ] {3659f3df-7781-48cf-9e8c-ffab6f6d46cb} executeQuery: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51998) (comment: 02317_functions_with_nothing.sql) (in query: SELECT isValidJSON(arrayJoin([]));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bf9df03 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa01ff in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:15.978100 [ 12028 ] {3659f3df-7781-48cf-9e8c-ffab6f6d46cb} TCPHandler: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bf9df03 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa01ff in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:16.105848 [ 12028 ] {9f03921d-427c-4f65-b82c-6d13c5c22676} executeQuery: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51998) (comment: 02317_functions_with_nothing.sql) (in query: SELECT concat(arrayJoin([]), arrayJoin([NULL, '']));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bf9df03 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa01ff in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:16.105802 [ 12025 ] {b0a8e68e-3c51-44dc-98f8-79dfaf6a01d0} executeQuery: Code: 42. DB::Exception: Number of arguments for function dictGetOrDefault doesn't match: passed 5 should be 4: While processing dictGetOrDefault('test_dictionary', 'value', 1, 'DefaultValue', 1). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51990) (comment: 02319_dict_get_check_arguments_size.sql) (in query: SELECT dictGetOrDefault('test_dictionary', 'value', 1, 'DefaultValue', 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, unsigned long&) @ 0x000000000bc54a48 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:506: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc5d622 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:22:16.106897 [ 12028 ] {9f03921d-427c-4f65-b82c-6d13c5c22676} TCPHandler: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bf9df03 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa01ff in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:16.107040 [ 12025 ] {b0a8e68e-3c51-44dc-98f8-79dfaf6a01d0} TCPHandler: Code: 42. DB::Exception: Number of arguments for function dictGetOrDefault doesn't match: passed 5 should be 4: While processing dictGetOrDefault('test_dictionary', 'value', 1, 'DefaultValue', 1). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, unsigned long&) @ 0x000000000bc54a48 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:506: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc5d622 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:22:16.116632 [ 12028 ] {9497ba8b-4196-4ad6-add1-493721bc81d6} executeQuery: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51998) (comment: 02317_functions_with_nothing.sql) (in query: SELECT plus(arrayJoin([]), arrayJoin([NULL, 1]));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bf9df03 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa01ff in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:16.117366 [ 12028 ] {9497ba8b-4196-4ad6-add1-493721bc81d6} TCPHandler: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bf9df03 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa01ff in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:16.126747 [ 12028 ] {521cafa9-b8f7-4269-bf39-f84e90d20e8b} executeQuery: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51998) (comment: 02317_functions_with_nothing.sql) (in query: SELECT sipHash64(arrayJoin([]), [NULL], arrayJoin(['', NULL, '', NULL]));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bf9df03 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa01ff in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:16.127446 [ 12028 ] {521cafa9-b8f7-4269-bf39-f84e90d20e8b} TCPHandler: Code: 43. DB::Exception: Cannot create column of type Nothing. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:134: DB::sanitizeBlock(DB::Block&, bool) @ 0x000000001bf9df03 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:863: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa01ff in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:16.229094 [ 12025 ] {ba42c79c-3991-4859-bc3b-2646b1e05633} executeQuery: Code: 42. DB::Exception: Number of arguments for function dictGet doesn't match: passed 5 should be 4: While processing dictGet('range_hashed_dictionary', 'value', 4, toUInt64(6), 'DefaultValue'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51990) (comment: 02319_dict_get_check_arguments_size.sql) (in query: SELECT dictGet('range_hashed_dictionary', 'value', 4, toUInt64(6), 'DefaultValue');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, unsigned long&) @ 0x000000000bc54a48 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:506: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc52314 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:22:16.230024 [ 12025 ] {ba42c79c-3991-4859-bc3b-2646b1e05633} TCPHandler: Code: 42. DB::Exception: Number of arguments for function dictGet doesn't match: passed 5 should be 4: While processing dictGet('range_hashed_dictionary', 'value', 4, toUInt64(6), 'DefaultValue'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, unsigned long&) @ 0x000000000bc54a48 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:506: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc52314 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:22:16.254847 [ 12025 ] {af150bef-736a-4741-a9da-81fd77acaed7} executeQuery: Code: 42. DB::Exception: Number of arguments for function dictGetOrDefault doesn't match: passed 6 should be 5: While processing dictGetOrDefault('range_hashed_dictionary', 'value', 1, toUInt64(6), 'DefaultValue', 1). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51990) (comment: 02319_dict_get_check_arguments_size.sql) (in query: SELECT dictGetOrDefault('range_hashed_dictionary', 'value', 1, toUInt64(6), 'DefaultValue', 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, unsigned long&) @ 0x000000000bc54a48 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:506: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc5d622 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:22:16.255808 [ 12025 ] {af150bef-736a-4741-a9da-81fd77acaed7} TCPHandler: Code: 42. DB::Exception: Number of arguments for function dictGetOrDefault doesn't match: passed 6 should be 5: While processing dictGetOrDefault('range_hashed_dictionary', 'value', 1, toUInt64(6), 'DefaultValue', 1). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, unsigned long&) @ 0x000000000bc54a48 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:506: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc5d622 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:22:25.134320 [ 1132 ] {a1ca12c4-6347-4626-bbc4-cbaf28ccea26} executeQuery: Code: 73. DB::Exception: Unknown format UnknownFormat. (UNKNOWN_FORMAT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58324) (comment: 02311_create_table_with_unknown_format.sql) (in query: create table test_02311 (x UInt32) engine=File(UnknownFormat);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Formats/FormatFactory.cpp:786: DB::FormatFactory::checkFormatName(String const&) const @ 0x000000001e60ad06 in /usr/bin/clickhouse 7. /build/src/Storages/StorageFile.cpp:921: DB::StorageFile::StorageFile(DB::StorageFile::CommonArguments) @ 0x000000001d68e8bf in /usr/bin/clickhouse 8. /build/src/Storages/StorageFile.cpp:894: DB::StorageFile::StorageFile(String const&, DB::StorageFile::CommonArguments) @ 0x000000001d68f85c in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFile* std::construct_at[abi:v15000](DB::StorageFile*, String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6a7f82 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::StorageFile*, String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6a7ec9 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6a7e4f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String const&, DB::StorageFile::CommonArguments&, void>(std::allocator const&, String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6a7d62 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6a7c2e in /usr/bin/clickhouse 14. /build/src/Storages/StorageFile.cpp:1957: DB::registerStorageFile(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d6980af in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageFile(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d6977bd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageFile(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d69775d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d69771d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6976e5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:22:25.135110 [ 1132 ] {a1ca12c4-6347-4626-bbc4-cbaf28ccea26} TCPHandler: Code: 73. DB::Exception: Unknown format UnknownFormat. (UNKNOWN_FORMAT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Formats/FormatFactory.cpp:786: DB::FormatFactory::checkFormatName(String const&) const @ 0x000000001e60ad06 in /usr/bin/clickhouse 7. /build/src/Storages/StorageFile.cpp:921: DB::StorageFile::StorageFile(DB::StorageFile::CommonArguments) @ 0x000000001d68e8bf in /usr/bin/clickhouse 8. /build/src/Storages/StorageFile.cpp:894: DB::StorageFile::StorageFile(String const&, DB::StorageFile::CommonArguments) @ 0x000000001d68f85c in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFile* std::construct_at[abi:v15000](DB::StorageFile*, String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6a7f82 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::StorageFile*, String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6a7ec9 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6a7e4f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String const&, DB::StorageFile::CommonArguments&, void>(std::allocator const&, String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6a7d62 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](String const&, DB::StorageFile::CommonArguments&) @ 0x000000001d6a7c2e in /usr/bin/clickhouse 14. /build/src/Storages/StorageFile.cpp:1957: DB::registerStorageFile(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d6980af in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageFile(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d6977bd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageFile(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d69775d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d69771d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d6976e5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:22:25.293041 [ 1132 ] {cbb05aeb-ed9c-4e94-9135-81402ea5658c} executeQuery: Code: 73. DB::Exception: Unknown format UnknownFormat. (UNKNOWN_FORMAT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58324) (comment: 02311_create_table_with_unknown_format.sql) (in query: create table test_02311 (x UInt32) engine=URL('http://some/url', UnknownFormat);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Formats/FormatFactory.cpp:786: DB::FormatFactory::checkFormatName(String const&) const @ 0x000000001e60ad06 in /usr/bin/clickhouse 7. /build/src/Storages/StorageURL.cpp:123: DB::IStorageURLBase::IStorageURLBase(String const&, std::shared_ptr, DB::StorageID const&, String const&, std::optional const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, String const&, std::vector> const&, String const&, std::shared_ptr, bool) @ 0x000000001d99a67f in /usr/bin/clickhouse 8. /build/src/Storages/StorageURL.cpp:1119: DB::StorageURL::StorageURL(String const&, DB::StorageID const&, String const&, std::optional const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr, String const&, std::vector> const&, String const&, std::shared_ptr, bool) @ 0x000000001d9a05ac in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageURL* std::construct_at[abi:v15000], String&, std::vector>&, String&, std::shared_ptr&, DB::StorageURL*>(DB::StorageURL*, String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001d9c018b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], String&, std::vector>&, String&, std::shared_ptr&, void, void>(std::allocator&, DB::StorageURL*, String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001d9bffe2 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], String&, std::vector>&, String&, std::shared_ptr&>(std::allocator, String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001d9bfed4 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr, String&, std::vector>&, String&, std::shared_ptr&, void>(std::allocator const&, String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001d9bfd3f in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], String&, std::vector>&, String&, std::shared_ptr&, void>(String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001d9bfc48 in /usr/bin/clickhouse 14. /build/src/Storages/StorageURL.cpp:1327: DB::registerStorageURL(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d9a84b2 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageURL(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d9a821d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageURL(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d9a81bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d9a817d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d9a8145 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:22:25.293981 [ 1132 ] {cbb05aeb-ed9c-4e94-9135-81402ea5658c} TCPHandler: Code: 73. DB::Exception: Unknown format UnknownFormat. (UNKNOWN_FORMAT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Formats/FormatFactory.cpp:786: DB::FormatFactory::checkFormatName(String const&) const @ 0x000000001e60ad06 in /usr/bin/clickhouse 7. /build/src/Storages/StorageURL.cpp:123: DB::IStorageURLBase::IStorageURLBase(String const&, std::shared_ptr, DB::StorageID const&, String const&, std::optional const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, String const&, std::vector> const&, String const&, std::shared_ptr, bool) @ 0x000000001d99a67f in /usr/bin/clickhouse 8. /build/src/Storages/StorageURL.cpp:1119: DB::StorageURL::StorageURL(String const&, DB::StorageID const&, String const&, std::optional const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr, String const&, std::vector> const&, String const&, std::shared_ptr, bool) @ 0x000000001d9a05ac in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageURL* std::construct_at[abi:v15000], String&, std::vector>&, String&, std::shared_ptr&, DB::StorageURL*>(DB::StorageURL*, String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001d9c018b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], String&, std::vector>&, String&, std::shared_ptr&, void, void>(std::allocator&, DB::StorageURL*, String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001d9bffe2 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], String&, std::vector>&, String&, std::shared_ptr&>(std::allocator, String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001d9bfed4 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr, String&, std::vector>&, String&, std::shared_ptr&, void>(std::allocator const&, String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001d9bfd3f in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], String&, std::vector>&, String&, std::shared_ptr&, void>(String&, DB::StorageID const&, String&, DB::FormatSettings&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, std::vector>&, String&, std::shared_ptr&) @ 0x000000001d9bfc48 in /usr/bin/clickhouse 14. /build/src/Storages/StorageURL.cpp:1327: DB::registerStorageURL(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d9a84b2 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageURL(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d9a821d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageURL(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d9a81bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d9a817d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d9a8145 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:22:25.625729 [ 1132 ] {f16ba2fc-0aff-486d-86f9-7cfb298c6446} executeQuery: Code: 73. DB::Exception: Unknown format UnknownFormat. (UNKNOWN_FORMAT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58324) (comment: 02311_create_table_with_unknown_format.sql) (in query: create table test_02311 (x UInt32) engine=S3('http://host:2020/test/data', UnknownFormat);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Formats/FormatFactory.cpp:786: DB::FormatFactory::checkFormatName(String const&) const @ 0x000000001e60ad06 in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:990: DB::StorageS3::StorageS3(DB::StorageS3::Configuration const&, std::shared_ptr, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional, bool, std::shared_ptr) @ 0x000000001d8e0ebf in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageS3* std::construct_at[abi:v15000], DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&, DB::StorageS3*>(DB::StorageS3*, DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d90d6c0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&, void, void>(std::allocator&, DB::StorageS3*, DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d90d555 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&>(std::allocator, DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d90d483 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageS3::Configuration, std::shared_ptr, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&, void>(std::allocator const&, DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d90d335 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&, void>(DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d90d27b in /usr/bin/clickhouse 13. /build/src/Storages/StorageS3.cpp:1618: DB::registerStorageS3Impl(String const&, DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d8eb21f in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageS3Impl(String const&, DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d8eab7d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageS3Impl(String const&, DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d8eab1d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d8eaadd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d8eaaa5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 20. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:22:25.626670 [ 1132 ] {f16ba2fc-0aff-486d-86f9-7cfb298c6446} TCPHandler: Code: 73. DB::Exception: Unknown format UnknownFormat. (UNKNOWN_FORMAT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Formats/FormatFactory.cpp:786: DB::FormatFactory::checkFormatName(String const&) const @ 0x000000001e60ad06 in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:990: DB::StorageS3::StorageS3(DB::StorageS3::Configuration const&, std::shared_ptr, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional, bool, std::shared_ptr) @ 0x000000001d8e0ebf in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageS3* std::construct_at[abi:v15000], DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&, DB::StorageS3*>(DB::StorageS3*, DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d90d6c0 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&, void, void>(std::allocator&, DB::StorageS3*, DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d90d555 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&>(std::allocator, DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d90d483 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageS3::Configuration, std::shared_ptr, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&, void>(std::allocator const&, DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d90d335 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool, std::shared_ptr&, void>(DB::StorageS3::Configuration&&, std::shared_ptr&&, DB::StorageID const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::optional&, bool&&, std::shared_ptr&) @ 0x000000001d90d27b in /usr/bin/clickhouse 13. /build/src/Storages/StorageS3.cpp:1618: DB::registerStorageS3Impl(String const&, DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d8eb21f in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageS3Impl(String const&, DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d8eab7d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageS3Impl(String const&, DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d8eab1d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d8eaadd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d8eaaa5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 20. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:22:25.770542 [ 1132 ] {29e5760d-cbed-4467-ae31-874f20a207a8} executeQuery: Code: 73. DB::Exception: Unknown format UnknownFormat. (UNKNOWN_FORMAT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58324) (comment: 02311_create_table_with_unknown_format.sql) (in query: create table test_02311 (x UInt32) engine=HDFS('http://hdfs:9000/data', UnknownFormat);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Formats/FormatFactory.cpp:786: DB::FormatFactory::checkFormatName(String const&) const @ 0x000000001e60ad06 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFS.cpp:280: DB::StorageHDFS::StorageHDFS(String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr, String const&, bool, std::shared_ptr) @ 0x000000001ae67a8d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFS* std::construct_at[abi:v15000], String&, bool, std::shared_ptr&, DB::StorageHDFS*>(DB::StorageHDFS*, String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae8893d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], String&, bool, std::shared_ptr&, void, void>(std::allocator&, DB::StorageHDFS*, String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae887c4 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], String&, bool, std::shared_ptr&>(std::allocator, String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae886f1 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr, String&, bool, std::shared_ptr&, void>(std::allocator const&, String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae88583 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], String&, bool, std::shared_ptr&, void>(String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae88469 in /usr/bin/clickhouse 13. /build/src/Storages/HDFS/StorageHDFS.cpp:1017: DB::registerStorageHDFS(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001ae7238e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageHDFS(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001ae71a9d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageHDFS(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001ae71a3d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae719fd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae719c5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 20. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:22:25.771614 [ 1132 ] {29e5760d-cbed-4467-ae31-874f20a207a8} TCPHandler: Code: 73. DB::Exception: Unknown format UnknownFormat. (UNKNOWN_FORMAT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Formats/FormatFactory.cpp:786: DB::FormatFactory::checkFormatName(String const&) const @ 0x000000001e60ad06 in /usr/bin/clickhouse 7. /build/src/Storages/HDFS/StorageHDFS.cpp:280: DB::StorageHDFS::StorageHDFS(String const&, DB::StorageID const&, String const&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr, String const&, bool, std::shared_ptr) @ 0x000000001ae67a8d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageHDFS* std::construct_at[abi:v15000], String&, bool, std::shared_ptr&, DB::StorageHDFS*>(DB::StorageHDFS*, String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae8893d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], String&, bool, std::shared_ptr&, void, void>(std::allocator&, DB::StorageHDFS*, String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae887c4 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], String&, bool, std::shared_ptr&>(std::allocator, String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae886f1 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr, String&, bool, std::shared_ptr&, void>(std::allocator const&, String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae88583 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], String&, bool, std::shared_ptr&, void>(String&, DB::StorageID const&, String&, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, String const&, std::shared_ptr&&, String&, bool&&, std::shared_ptr&) @ 0x000000001ae88469 in /usr/bin/clickhouse 13. /build/src/Storages/HDFS/StorageHDFS.cpp:1017: DB::registerStorageHDFS(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001ae7238e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageHDFS(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001ae71a9d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageHDFS(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001ae71a3d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae719fd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae719c5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 20. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:22:34.377736 [ 12030 ] {9483be5a-9125-4f96-a074-229b18f64396} executeQuery: Code: 36. DB::Exception: Bidirectional can only be applied to hierarchical attributes. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37226) (comment: 02294_dictionaries_hierarchical_index.sql) (in query: CREATE DICTIONARY hierarchy_flat_dictionary_index ( id UInt64, parent_id UInt64 BIDIRECTIONAL ) PRIMARY KEY id SOURCE(CLICKHOUSE(TABLE 'test_hierarchy_source_table')) LAYOUT(FLAT()) LIFETIME(0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [61]) @ 0x000000000bc5aafe in /usr/bin/clickhouse 6. /build/src/Dictionaries/DictionaryStructure.cpp:374: DB::DictionaryStructure::getAttributes(Poco::Util::AbstractConfiguration const&, String const&, bool) @ 0x000000001abd3981 in /usr/bin/clickhouse 7. /build/src/Dictionaries/DictionaryStructure.cpp:105: DB::DictionaryStructure::DictionaryStructure(Poco::Util::AbstractConfiguration const&, String const&) @ 0x000000001abd19d4 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExternalDictionariesLoader.cpp:173: DB::ExternalDictionariesLoader::getDictionaryStructure(Poco::Util::AbstractConfiguration const&, String const&) @ 0x000000001c528d88 in /usr/bin/clickhouse 9. /build/src/Storages/StorageDictionary.cpp:132: DB::StorageDictionary::StorageDictionary(DB::StorageID const&, Poco::AutoPtr, std::shared_ptr) @ 0x000000001d63ab26 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageDictionary* std::construct_at[abi:v15000]&, std::shared_ptr&, DB::StorageDictionary*>(DB::StorageDictionary*, DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d63e6e2 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::shared_ptr&, void, void>(std::allocator&, DB::StorageDictionary*, DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d63e631 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::shared_ptr&>(std::allocator, DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d63e5b7 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&, void>(std::allocator const&, DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d63e4ca in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::shared_ptr&, void>(DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d63e3d6 in /usr/bin/clickhouse 15. /build/src/Storages/StorageDictionary.cpp:330: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d63d056 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63cd1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63ccbd in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d63cc7d in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d63cc45 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 22. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:22:34.378918 [ 12030 ] {9483be5a-9125-4f96-a074-229b18f64396} TCPHandler: Code: 36. DB::Exception: Bidirectional can only be applied to hierarchical attributes. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [61]) @ 0x000000000bc5aafe in /usr/bin/clickhouse 6. /build/src/Dictionaries/DictionaryStructure.cpp:374: DB::DictionaryStructure::getAttributes(Poco::Util::AbstractConfiguration const&, String const&, bool) @ 0x000000001abd3981 in /usr/bin/clickhouse 7. /build/src/Dictionaries/DictionaryStructure.cpp:105: DB::DictionaryStructure::DictionaryStructure(Poco::Util::AbstractConfiguration const&, String const&) @ 0x000000001abd19d4 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExternalDictionariesLoader.cpp:173: DB::ExternalDictionariesLoader::getDictionaryStructure(Poco::Util::AbstractConfiguration const&, String const&) @ 0x000000001c528d88 in /usr/bin/clickhouse 9. /build/src/Storages/StorageDictionary.cpp:132: DB::StorageDictionary::StorageDictionary(DB::StorageID const&, Poco::AutoPtr, std::shared_ptr) @ 0x000000001d63ab26 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageDictionary* std::construct_at[abi:v15000]&, std::shared_ptr&, DB::StorageDictionary*>(DB::StorageDictionary*, DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d63e6e2 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::shared_ptr&, void, void>(std::allocator&, DB::StorageDictionary*, DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d63e631 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::shared_ptr&>(std::allocator, DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d63e5b7 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&, void>(std::allocator const&, DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d63e4ca in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::shared_ptr&, void>(DB::StorageID&, Poco::AutoPtr&, std::shared_ptr&) @ 0x000000001d63e3d6 in /usr/bin/clickhouse 15. /build/src/Storages/StorageDictionary.cpp:330: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d63d056 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63cd1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63ccbd in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d63cc7d in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d63cc45 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 22. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:22:34.896261 [ 12024 ] {46c1914c-c6ee-4030-8fa8-41a74b33fab1} executeQuery: Code: 36. DB::Exception: Argument of GROUPING function modulo(number, 3) is not a part of GROUP BY clause: While processing number, grouping(number, number % 2, number % 3) = 6. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37232) (comment: 02293_grouping_function_group_by.sql) (in query: SELECT number, grouping(number, number % 2, number % 3) = 6 FROM remote('127.0.0.{2,3}', numbers(10)) GROUP BY number, number % 2 ORDER BY number;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsVisitor.cpp:883: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdbc9f in /usr/bin/clickhouse 7. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 8. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:22:34.897383 [ 12024 ] {46c1914c-c6ee-4030-8fa8-41a74b33fab1} TCPHandler: Code: 36. DB::Exception: Argument of GROUPING function modulo(number, 3) is not a part of GROUP BY clause: While processing number, grouping(number, number % 2, number % 3) = 6. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsVisitor.cpp:883: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdbc9f in /usr/bin/clickhouse 7. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 8. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:22:35.921346 [ 12023 ] {7cacae78-0170-49fd-8db1-ce278d8326cf} executeQuery: Code: 117. DB::Exception: Incorrect arguments h3Index: 579205132326352334, k: 1, error: 1: While processing h3HexRing(579205132326352334, toUInt16(1)) AS hexRing. (INCORRECT_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37238) (comment: 02293_h3_hex_ring.sql) (in query: SELECT h3HexRing(579205132326352334, toUInt16(1)) as hexRing;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long const&, int const&, unsigned int&) @ 0x000000000eee7b48 in /usr/bin/clickhouse 6. /build/src/Functions/h3HexRing.cpp:134: DB::(anonymous namespace)::FunctionH3HexRing::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eee6f8e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:22:35.922348 [ 12023 ] {7cacae78-0170-49fd-8db1-ce278d8326cf} TCPHandler: Code: 117. DB::Exception: Incorrect arguments h3Index: 579205132326352334, k: 1, error: 1: While processing h3HexRing(579205132326352334, toUInt16(1)) AS hexRing. (INCORRECT_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long const&, int const&, unsigned int&) @ 0x000000000eee7b48 in /usr/bin/clickhouse 6. /build/src/Functions/h3HexRing.cpp:134: DB::(anonymous namespace)::FunctionH3HexRing::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eee6f8e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:22:36.052580 [ 12023 ] {24456ce6-3901-4e9c-b84e-510220e490f2} executeQuery: Code: 43. DB::Exception: Illegal type Int8 of argument 2 of function h3HexRing. Must be UInt16: While processing h3HexRing(581276613233082367, -1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37238) (comment: 02293_h3_hex_ring.sql) (in query: SELECT h3HexRing(581276613233082367, -1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, int&&, String&&) @ 0x000000000e470728 in /usr/bin/clickhouse 6. /build/src/Functions/h3HexRing.cpp:56: DB::(anonymous namespace)::FunctionH3HexRing::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000eee73b1 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:22:36.175995 [ 12038 ] {94e50b13-9df3-4a34-9566-a941913a1d12} executeQuery: Code: 117. DB::Exception: Line cannot be computed between start H3 index 72057594037927935 and end H3 index 72057594037927935: While processing h3Line(72057594037927935, 72057594037927935). (INCORRECT_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37234) (comment: 02293_h3_line.sql) (in query: SELECT h3Line(0xffffffffffffff, 0xffffffffffffff);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long const&, unsigned long const&) @ 0x000000000ddb188c in /usr/bin/clickhouse 6. /build/src/Functions/h3Line.cpp:106: DB::(anonymous namespace)::FunctionH3Line::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eeef0c8 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:22:36.176111 [ 12023 ] {24456ce6-3901-4e9c-b84e-510220e490f2} TCPHandler: Code: 43. DB::Exception: Illegal type Int8 of argument 2 of function h3HexRing. Must be UInt16: While processing h3HexRing(581276613233082367, -1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, int&&, String&&) @ 0x000000000e470728 in /usr/bin/clickhouse 6. /build/src/Functions/h3HexRing.cpp:56: DB::(anonymous namespace)::FunctionH3HexRing::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000eee73b1 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:22:36.177577 [ 12038 ] {94e50b13-9df3-4a34-9566-a941913a1d12} TCPHandler: Code: 117. DB::Exception: Line cannot be computed between start H3 index 72057594037927935 and end H3 index 72057594037927935: While processing h3Line(72057594037927935, 72057594037927935). (INCORRECT_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long const&, unsigned long const&) @ 0x000000000ddb188c in /usr/bin/clickhouse 6. /build/src/Functions/h3Line.cpp:106: DB::(anonymous namespace)::FunctionH3Line::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eeef0c8 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:22:36.301794 [ 12023 ] {6a1f3cca-4b23-443c-b935-6be1019e2850} executeQuery: Code: 12. DB::Exception: Too large 'k' argument for h3HexRing function, maximum 10000: While processing h3HexRing(581276613233082367, toUInt16(-1)). (PARAMETER_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37238) (comment: 02293_h3_hex_ring.sql) (in query: SELECT h3HexRing(581276613233082367, toUInt16(-1));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, int const&) @ 0x000000000eee792c in /usr/bin/clickhouse 6. /build/src/Functions/h3HexRing.cpp:109: DB::(anonymous namespace)::FunctionH3HexRing::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eee6b4c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:22:36.302993 [ 12023 ] {6a1f3cca-4b23-443c-b935-6be1019e2850} TCPHandler: Code: 12. DB::Exception: Too large 'k' argument for h3HexRing function, maximum 10000: While processing h3HexRing(581276613233082367, toUInt16(-1)). (PARAMETER_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, int const&) @ 0x000000000eee792c in /usr/bin/clickhouse 6. /build/src/Functions/h3HexRing.cpp:109: DB::(anonymous namespace)::FunctionH3HexRing::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eee6b4c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:22:36.827342 [ 12022 ] {3e48a363-6422-415d-bdbf-ffa8a9cdee60} executeQuery: Code: 10. DB::Exception: Tuple doesn't have element with index '3': While processing (t.1).3. (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37256) (comment: 02286_tuple_numeric_identifier.sql) (in query: SELECT t.1.3 FROM t_tuple_numeric;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long const&) @ 0x000000000b9352b3 in /usr/bin/clickhouse 6. /build/src/Functions/tupleElement.cpp:142: DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x00000000127a00ac in /usr/bin/clickhouse 7. /build/src/Functions/tupleElement.cpp:68: DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000001279fd7e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:22:36.828489 [ 12022 ] {3e48a363-6422-415d-bdbf-ffa8a9cdee60} TCPHandler: Code: 10. DB::Exception: Tuple doesn't have element with index '3': While processing (t.1).3. (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long const&) @ 0x000000000b9352b3 in /usr/bin/clickhouse 6. /build/src/Functions/tupleElement.cpp:142: DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x00000000127a00ac in /usr/bin/clickhouse 7. /build/src/Functions/tupleElement.cpp:68: DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000001279fd7e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:22:36.837577 [ 12022 ] {841fe645-351b-45a7-84ec-864c4486b4ae} executeQuery: Code: 10. DB::Exception: Tuple doesn't have element with index '4': While processing t.4. (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37256) (comment: 02286_tuple_numeric_identifier.sql) (in query: SELECT t.4 FROM t_tuple_numeric;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long const&) @ 0x000000000b9352b3 in /usr/bin/clickhouse 6. /build/src/Functions/tupleElement.cpp:142: DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x00000000127a00ac in /usr/bin/clickhouse 7. /build/src/Functions/tupleElement.cpp:68: DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000001279fd7e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:22:36.838427 [ 12022 ] {841fe645-351b-45a7-84ec-864c4486b4ae} TCPHandler: Code: 10. DB::Exception: Tuple doesn't have element with index '4': While processing t.4. (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long const&) @ 0x000000000b9352b3 in /usr/bin/clickhouse 6. /build/src/Functions/tupleElement.cpp:142: DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x00000000127a00ac in /usr/bin/clickhouse 7. /build/src/Functions/tupleElement.cpp:68: DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000001279fd7e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:22:36.847094 [ 12022 ] {dbda9c43-e77b-41e8-9807-4b56c5b465a6} executeQuery: Code: 47. DB::Exception: Missing columns: 't.2' 't.1.1' while processing query: 'SELECT t.`1`.`1`, t.`1`.`2`, t.`2` FROM t_tuple_numeric', required columns: 't.1.1' 't.1.2' 't.2'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37256) (comment: 02286_tuple_numeric_identifier.sql) (in query: SELECT `t`.`1`.`1`, `t`.`1`.`2`, `t`.`2` FROM t_tuple_numeric;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:36.847792 [ 12022 ] {dbda9c43-e77b-41e8-9807-4b56c5b465a6} TCPHandler: Code: 47. DB::Exception: Missing columns: 't.2' 't.1.1' while processing query: 'SELECT t.`1`.`1`, t.`1`.`2`, t.`2` FROM t_tuple_numeric', required columns: 't.1.1' 't.1.2' 't.2'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:38.270979 [ 1133 ] {8420e0e9-278b-4a91-8f7f-7dac9f4ee082} executeQuery: Code: 252. DB::Exception: Too many parts (1 with average size of 320.00 B) in table 'test_5f8dzrb9.table_for_alter (12fc482d-06ff-4a5d-955b-f6a8f4d9d11c)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37274) (comment: 02280_add_query_level_settings.sql) (in query: INSERT INTO table_for_alter VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001de8eae8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001de40fa4 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e34042c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001eb5fc99 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fc35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fbfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f015 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:93: DB::PushingPipelineExecutor::start() @ 0x000000001e6920b6 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:841: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3c2a in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:22:38.271969 [ 1133 ] {8420e0e9-278b-4a91-8f7f-7dac9f4ee082} TCPHandler: Code: 252. DB::Exception: Too many parts (1 with average size of 320.00 B) in table 'test_5f8dzrb9.table_for_alter (12fc482d-06ff-4a5d-955b-f6a8f4d9d11c)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001de8eae8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001de40fa4 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e34042c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001eb5fc99 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fc35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fbfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f015 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:93: DB::PushingPipelineExecutor::start() @ 0x000000001e6920b6 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:841: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3c2a in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:22:38.300538 [ 1133 ] {c89a2e1c-bcb0-4967-bded-870ba0be7697} executeQuery: Code: 252. DB::Exception: Too many parts (2 with average size of 320.00 B) in table 'test_5f8dzrb9.table_for_alter (12fc482d-06ff-4a5d-955b-f6a8f4d9d11c)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37274) (comment: 02280_add_query_level_settings.sql) (in query: INSERT INTO table_for_alter VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001de8eae8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001de40fa4 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e34042c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001eb5fc99 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fc35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fbfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f015 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:93: DB::PushingPipelineExecutor::start() @ 0x000000001e6920b6 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:841: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3c2a in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:22:38.301546 [ 1133 ] {c89a2e1c-bcb0-4967-bded-870ba0be7697} TCPHandler: Code: 252. DB::Exception: Too many parts (2 with average size of 320.00 B) in table 'test_5f8dzrb9.table_for_alter (12fc482d-06ff-4a5d-955b-f6a8f4d9d11c)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001de8eae8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001de40fa4 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e34042c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001eb5fc99 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fc35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fbfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f015 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:93: DB::PushingPipelineExecutor::start() @ 0x000000001e6920b6 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:841: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3c2a in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:22:38.455100 [ 12027 ] {02421_truncate_isolation_no_merges_test_rtv8dvd4_tx62_22904} executeQuery: Code: 232. DB::Exception: No part all_2_2_0 in committed state. (NO_SUCH_DATA_PART) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:58858) (in query: alter table drop_part_after_table drop part 'all_2_2_0'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4984: DB::MergeTreeData::checkPartCanBeDropped(String const&) @ 0x000000001de46590 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:5138: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001de48390 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caccc in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 12. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 13. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 14. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:38.456028 [ 12027 ] {02421_truncate_isolation_no_merges_test_rtv8dvd4_tx62_22904} DynamicQueryHandler: Code: 232. DB::Exception: No part all_2_2_0 in committed state. (NO_SUCH_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4984: DB::MergeTreeData::checkPartCanBeDropped(String const&) @ 0x000000001de46590 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:5138: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001de48390 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caccc in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 12. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 13. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 14. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:22:38.496966 [ 12027 ] {02421_truncate_isolation_no_merges_test_rtv8dvd4_tx62_18552} executeQuery: Code: 649. DB::Exception: Transaction is not in RUNNING state. (INVALID_TRANSACTION) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:58876) (in query: commit), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [36]) @ 0x000000000cea6c9e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:56: DB::InterpreterTransactionControlQuery::executeCommit(std::shared_ptr) @ 0x000000001cbe7dd5 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:29: DB::InterpreterTransactionControlQuery::execute() @ 0x000000001cbe794d in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:38.498021 [ 12027 ] {02421_truncate_isolation_no_merges_test_rtv8dvd4_tx62_18552} DynamicQueryHandler: Code: 649. DB::Exception: Transaction is not in RUNNING state. (INVALID_TRANSACTION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [36]) @ 0x000000000cea6c9e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:56: DB::InterpreterTransactionControlQuery::executeCommit(std::shared_ptr) @ 0x000000001cbe7dd5 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:29: DB::InterpreterTransactionControlQuery::execute() @ 0x000000001cbe794d in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:22:38.777258 [ 12022 ] {81d5a58a-a53a-448d-828b-0ff058c4b0e5} executeQuery: Code: 48. DB::Exception: Can't execute FULL_SORTING_MERGE join algorithm for this strictness/kind and right storage type. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37292) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 JOIN t2 ON t1.key = t2.key AND t2.key > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001bfc5733 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:1012: DB::chooseJoinAlgorithm(std::shared_ptr, std::vector> const&, std::unique_ptr>&, std::shared_ptr) @ 0x000000001bfa8ccd in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1157: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5c26 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:38.778210 [ 12022 ] {81d5a58a-a53a-448d-828b-0ff058c4b0e5} TCPHandler: Code: 48. DB::Exception: Can't execute FULL_SORTING_MERGE join algorithm for this strictness/kind and right storage type. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001bfc5733 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:1012: DB::chooseJoinAlgorithm(std::shared_ptr, std::vector> const&, std::unique_ptr>&, std::shared_ptr) @ 0x000000001bfa8ccd in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1157: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5c26 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:38.793749 [ 12022 ] {04715dca-e8cc-46b1-848d-cad77ecc35cb} executeQuery: Code: 48. DB::Exception: Can't execute FULL_SORTING_MERGE join algorithm for this strictness/kind and right storage type. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37292) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 JOIN t2 ON t1.key = t2.key AND t1.key > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001bfc5733 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:1012: DB::chooseJoinAlgorithm(std::shared_ptr, std::vector> const&, std::unique_ptr>&, std::shared_ptr) @ 0x000000001bfa8ccd in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1157: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5c26 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:38.794506 [ 12022 ] {04715dca-e8cc-46b1-848d-cad77ecc35cb} TCPHandler: Code: 48. DB::Exception: Can't execute FULL_SORTING_MERGE join algorithm for this strictness/kind and right storage type. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001bfc5733 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:1012: DB::chooseJoinAlgorithm(std::shared_ptr, std::vector> const&, std::unique_ptr>&, std::shared_ptr) @ 0x000000001bfa8ccd in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1157: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5c26 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:38.927495 [ 12022 ] {64347ca5-17ee-4238-9e93-40fc7467b43e} executeQuery: Code: 48. DB::Exception: Only `hash` join supports multiple ORs for keys in JOIN ON section. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37292) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 JOIN t2 ON t1.key = t2.key OR t1.val = t2.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [67]) @ 0x000000001253b25e in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:670: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf916b1 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:38.928351 [ 12022 ] {64347ca5-17ee-4238-9e93-40fc7467b43e} TCPHandler: Code: 48. DB::Exception: Only `hash` join supports multiple ORs for keys in JOIN ON section. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [67]) @ 0x000000001253b25e in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:670: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf916b1 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:39.090542 [ 12022 ] {e8673a20-d8c4-418a-805e-f01037fa2e8a} executeQuery: Code: 48. DB::Exception: MergeJoinAlgorithm is not implemented for strictness Anti. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37292) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 ANTI JOIN t2 ON t1.key = t2.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, DB::JoinStrictness&) @ 0x000000001eb7bf33 in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/MergeJoinTransform.cpp:283: DB::MergeJoinAlgorithm::MergeJoinAlgorithm(std::shared_ptr, std::vector> const&, unsigned long) @ 0x000000001eb75ef5 in /usr/bin/clickhouse 7. /build/src/Processors/Merges/IMergingTransform.h:107: DB::IMergingTransform::IMergingTransform&, std::vector> const&, unsigned long&>(std::vector> const&, DB::Block const&, bool, unsigned long, bool, bool, std::shared_ptr&, std::vector> const&, unsigned long&) @ 0x000000001eb7cf32 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/MergeJoinTransform.cpp:852: DB::MergeJoinTransform::MergeJoinTransform(std::shared_ptr, std::vector> const&, DB::Block const&, unsigned long, unsigned long) @ 0x000000001eb7aaa9 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeJoinTransform* std::construct_at[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, DB::MergeJoinTransform*>(DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c61b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void, void>(std::allocator&, DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c3b9 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&>(std::allocator, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c09f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&, void>(std::allocator const&, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85bef2 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void>(std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85679e in /usr/bin/clickhouse 14. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:365: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b8524e1 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001edfb481 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:39.091762 [ 12022 ] {e8673a20-d8c4-418a-805e-f01037fa2e8a} TCPHandler: Code: 48. DB::Exception: MergeJoinAlgorithm is not implemented for strictness Anti. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, DB::JoinStrictness&) @ 0x000000001eb7bf33 in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/MergeJoinTransform.cpp:283: DB::MergeJoinAlgorithm::MergeJoinAlgorithm(std::shared_ptr, std::vector> const&, unsigned long) @ 0x000000001eb75ef5 in /usr/bin/clickhouse 7. /build/src/Processors/Merges/IMergingTransform.h:107: DB::IMergingTransform::IMergingTransform&, std::vector> const&, unsigned long&>(std::vector> const&, DB::Block const&, bool, unsigned long, bool, bool, std::shared_ptr&, std::vector> const&, unsigned long&) @ 0x000000001eb7cf32 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/MergeJoinTransform.cpp:852: DB::MergeJoinTransform::MergeJoinTransform(std::shared_ptr, std::vector> const&, DB::Block const&, unsigned long, unsigned long) @ 0x000000001eb7aaa9 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeJoinTransform* std::construct_at[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, DB::MergeJoinTransform*>(DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c61b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void, void>(std::allocator&, DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c3b9 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&>(std::allocator, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c09f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&, void>(std::allocator const&, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85bef2 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void>(std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85679e in /usr/bin/clickhouse 14. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:365: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b8524e1 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001edfb481 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:39.117665 [ 12022 ] {755ff33b-ef03-42c0-adaf-a6e0770547fb} executeQuery: Code: 48. DB::Exception: MergeJoinAlgorithm is not implemented for strictness Semi. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37292) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 SEMI JOIN t2 ON t1.key = t2.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, DB::JoinStrictness&) @ 0x000000001eb7bf33 in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/MergeJoinTransform.cpp:283: DB::MergeJoinAlgorithm::MergeJoinAlgorithm(std::shared_ptr, std::vector> const&, unsigned long) @ 0x000000001eb75ef5 in /usr/bin/clickhouse 7. /build/src/Processors/Merges/IMergingTransform.h:107: DB::IMergingTransform::IMergingTransform&, std::vector> const&, unsigned long&>(std::vector> const&, DB::Block const&, bool, unsigned long, bool, bool, std::shared_ptr&, std::vector> const&, unsigned long&) @ 0x000000001eb7cf32 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/MergeJoinTransform.cpp:852: DB::MergeJoinTransform::MergeJoinTransform(std::shared_ptr, std::vector> const&, DB::Block const&, unsigned long, unsigned long) @ 0x000000001eb7aaa9 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeJoinTransform* std::construct_at[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, DB::MergeJoinTransform*>(DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c61b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void, void>(std::allocator&, DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c3b9 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&>(std::allocator, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c09f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&, void>(std::allocator const&, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85bef2 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void>(std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85679e in /usr/bin/clickhouse 14. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:365: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b8524e1 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001edfb481 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:39.118473 [ 12022 ] {755ff33b-ef03-42c0-adaf-a6e0770547fb} TCPHandler: Code: 48. DB::Exception: MergeJoinAlgorithm is not implemented for strictness Semi. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, DB::JoinStrictness&) @ 0x000000001eb7bf33 in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/MergeJoinTransform.cpp:283: DB::MergeJoinAlgorithm::MergeJoinAlgorithm(std::shared_ptr, std::vector> const&, unsigned long) @ 0x000000001eb75ef5 in /usr/bin/clickhouse 7. /build/src/Processors/Merges/IMergingTransform.h:107: DB::IMergingTransform::IMergingTransform&, std::vector> const&, unsigned long&>(std::vector> const&, DB::Block const&, bool, unsigned long, bool, bool, std::shared_ptr&, std::vector> const&, unsigned long&) @ 0x000000001eb7cf32 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/MergeJoinTransform.cpp:852: DB::MergeJoinTransform::MergeJoinTransform(std::shared_ptr, std::vector> const&, DB::Block const&, unsigned long, unsigned long) @ 0x000000001eb7aaa9 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeJoinTransform* std::construct_at[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, DB::MergeJoinTransform*>(DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c61b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void, void>(std::allocator&, DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c3b9 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&>(std::allocator, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c09f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&, void>(std::allocator const&, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85bef2 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void>(std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85679e in /usr/bin/clickhouse 14. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:365: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b8524e1 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001edfb481 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:39.143838 [ 12022 ] {e345d48c-42e8-49f0-a0df-18c6d696b2d4} executeQuery: Code: 48. DB::Exception: MergeJoinAlgorithm is not implemented for strictness Asof. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37292) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 ASOF JOIN t2 ON t1.key = t2.key AND t1.val > t2.val;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, DB::JoinStrictness&) @ 0x000000001eb7bf33 in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/MergeJoinTransform.cpp:283: DB::MergeJoinAlgorithm::MergeJoinAlgorithm(std::shared_ptr, std::vector> const&, unsigned long) @ 0x000000001eb75ef5 in /usr/bin/clickhouse 7. /build/src/Processors/Merges/IMergingTransform.h:107: DB::IMergingTransform::IMergingTransform&, std::vector> const&, unsigned long&>(std::vector> const&, DB::Block const&, bool, unsigned long, bool, bool, std::shared_ptr&, std::vector> const&, unsigned long&) @ 0x000000001eb7cf32 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/MergeJoinTransform.cpp:852: DB::MergeJoinTransform::MergeJoinTransform(std::shared_ptr, std::vector> const&, DB::Block const&, unsigned long, unsigned long) @ 0x000000001eb7aaa9 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeJoinTransform* std::construct_at[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, DB::MergeJoinTransform*>(DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c61b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void, void>(std::allocator&, DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c3b9 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&>(std::allocator, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c09f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&, void>(std::allocator const&, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85bef2 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void>(std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85679e in /usr/bin/clickhouse 14. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:365: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b8524e1 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001edfb481 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:39.144624 [ 12022 ] {e345d48c-42e8-49f0-a0df-18c6d696b2d4} TCPHandler: Code: 48. DB::Exception: MergeJoinAlgorithm is not implemented for strictness Asof. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, DB::JoinStrictness&) @ 0x000000001eb7bf33 in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/MergeJoinTransform.cpp:283: DB::MergeJoinAlgorithm::MergeJoinAlgorithm(std::shared_ptr, std::vector> const&, unsigned long) @ 0x000000001eb75ef5 in /usr/bin/clickhouse 7. /build/src/Processors/Merges/IMergingTransform.h:107: DB::IMergingTransform::IMergingTransform&, std::vector> const&, unsigned long&>(std::vector> const&, DB::Block const&, bool, unsigned long, bool, bool, std::shared_ptr&, std::vector> const&, unsigned long&) @ 0x000000001eb7cf32 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/MergeJoinTransform.cpp:852: DB::MergeJoinTransform::MergeJoinTransform(std::shared_ptr, std::vector> const&, DB::Block const&, unsigned long, unsigned long) @ 0x000000001eb7aaa9 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeJoinTransform* std::construct_at[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, DB::MergeJoinTransform*>(DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c61b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void, void>(std::allocator&, DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c3b9 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&>(std::allocator, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c09f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&, void>(std::allocator const&, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85bef2 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void>(std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85679e in /usr/bin/clickhouse 14. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:365: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b8524e1 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001edfb481 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:39.173500 [ 12022 ] {ca6d6cac-ae26-464c-b178-45254989a01c} executeQuery: Code: 48. DB::Exception: MergeJoinAlgorithm is not implemented for strictness Semi. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37292) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 ANY JOIN t2 ON t1.key = t2.key SETTINGS any_join_distinct_right_table_keys = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, DB::JoinStrictness&) @ 0x000000001eb7bf33 in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/MergeJoinTransform.cpp:283: DB::MergeJoinAlgorithm::MergeJoinAlgorithm(std::shared_ptr, std::vector> const&, unsigned long) @ 0x000000001eb75ef5 in /usr/bin/clickhouse 7. /build/src/Processors/Merges/IMergingTransform.h:107: DB::IMergingTransform::IMergingTransform&, std::vector> const&, unsigned long&>(std::vector> const&, DB::Block const&, bool, unsigned long, bool, bool, std::shared_ptr&, std::vector> const&, unsigned long&) @ 0x000000001eb7cf32 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/MergeJoinTransform.cpp:852: DB::MergeJoinTransform::MergeJoinTransform(std::shared_ptr, std::vector> const&, DB::Block const&, unsigned long, unsigned long) @ 0x000000001eb7aaa9 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeJoinTransform* std::construct_at[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, DB::MergeJoinTransform*>(DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c61b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void, void>(std::allocator&, DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c3b9 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&>(std::allocator, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c09f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&, void>(std::allocator const&, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85bef2 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void>(std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85679e in /usr/bin/clickhouse 14. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:365: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b8524e1 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001edfb481 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:39.174495 [ 12022 ] {ca6d6cac-ae26-464c-b178-45254989a01c} TCPHandler: Code: 48. DB::Exception: MergeJoinAlgorithm is not implemented for strictness Semi. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, DB::JoinStrictness&) @ 0x000000001eb7bf33 in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/MergeJoinTransform.cpp:283: DB::MergeJoinAlgorithm::MergeJoinAlgorithm(std::shared_ptr, std::vector> const&, unsigned long) @ 0x000000001eb75ef5 in /usr/bin/clickhouse 7. /build/src/Processors/Merges/IMergingTransform.h:107: DB::IMergingTransform::IMergingTransform&, std::vector> const&, unsigned long&>(std::vector> const&, DB::Block const&, bool, unsigned long, bool, bool, std::shared_ptr&, std::vector> const&, unsigned long&) @ 0x000000001eb7cf32 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/MergeJoinTransform.cpp:852: DB::MergeJoinTransform::MergeJoinTransform(std::shared_ptr, std::vector> const&, DB::Block const&, unsigned long, unsigned long) @ 0x000000001eb7aaa9 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::MergeJoinTransform* std::construct_at[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, DB::MergeJoinTransform*>(DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c61b in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void, void>(std::allocator&, DB::MergeJoinTransform*, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c3b9 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&>(std::allocator, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85c09f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&, void>(std::allocator const&, std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85bef2 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, std::vector>&, DB::Block const&, unsigned long&, void>(std::shared_ptr&, std::vector>&, DB::Block const&, unsigned long&) @ 0x000000001b85679e in /usr/bin/clickhouse 14. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:365: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b8524e1 in /usr/bin/clickhouse 15. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001edfb481 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:39.190666 [ 12022 ] {74284773-4207-4569-8483-913a254ae8e5} executeQuery: Code: 48. DB::Exception: Can't execute FULL_SORTING_MERGE join algorithm for this strictness/kind and right storage type. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37292) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 JOIN t2 USING (key) SETTINGS join_use_nulls = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001bfc5733 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:1012: DB::chooseJoinAlgorithm(std::shared_ptr, std::vector> const&, std::unique_ptr>&, std::shared_ptr) @ 0x000000001bfa8ccd in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1157: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5c26 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:39.191612 [ 12022 ] {74284773-4207-4569-8483-913a254ae8e5} TCPHandler: Code: 48. DB::Exception: Can't execute FULL_SORTING_MERGE join algorithm for this strictness/kind and right storage type. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001bfc5733 in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:1012: DB::chooseJoinAlgorithm(std::shared_ptr, std::vector> const&, std::unique_ptr>&, std::shared_ptr) @ 0x000000001bfa8ccd in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1157: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5c26 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:39.715571 [ 12022 ] {a444be64-9293-407d-b6f0-d7397030281e} executeQuery: Code: 48. DB::Exception: Current join algorithm is supported only for pipelines without totals. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37292) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM ( SELECT key, sum(val) AS val FROM t1 GROUP BY key WITH TOTALS ) as t1 JOIN ( SELECT key, sum(val) AS val FROM t2 GROUP BY key WITH TOTALS ) as t2 ON t1.key = t2.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [70]) @ 0x000000000debe51e in /usr/bin/clickhouse 6. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:361: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b852379 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001edfb481 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:39.716516 [ 12022 ] {a444be64-9293-407d-b6f0-d7397030281e} TCPHandler: Code: 48. DB::Exception: Current join algorithm is supported only for pipelines without totals. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [70]) @ 0x000000000debe51e in /usr/bin/clickhouse 6. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:361: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b852379 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001edfb481 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:39.754931 [ 12022 ] {c0a52e27-344f-41d4-b559-540ec45d65da} executeQuery: Code: 48. DB::Exception: Current join algorithm is supported only for pipelines without totals. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37292) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM t1 JOIN ( SELECT key, sum(val) AS val FROM t2 GROUP BY key WITH TOTALS ) as t2 ON t1.key = t2.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [70]) @ 0x000000000debe51e in /usr/bin/clickhouse 6. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:361: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b852379 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001edfb481 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:39.755723 [ 12022 ] {c0a52e27-344f-41d4-b559-540ec45d65da} TCPHandler: Code: 48. DB::Exception: Current join algorithm is supported only for pipelines without totals. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [70]) @ 0x000000000debe51e in /usr/bin/clickhouse 6. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:361: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b852379 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001edfb481 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:39.798141 [ 12022 ] {7973d3af-403a-4d64-bbbe-fc04daef54f7} executeQuery: Code: 48. DB::Exception: Current join algorithm is supported only for pipelines without totals. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37292) (comment: 02276_full_sort_join_unsupported.sql) (in query: SELECT * FROM ( SELECT key, sum(val) AS val FROM t1 GROUP BY key WITH TOTALS ) as t1 JOIN t2 ON t1.key = t2.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [70]) @ 0x000000000debe51e in /usr/bin/clickhouse 6. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:361: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b852379 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001edfb481 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:39.798884 [ 12022 ] {7973d3af-403a-4d64-bbbe-fc04daef54f7} TCPHandler: Code: 48. DB::Exception: Current join algorithm is supported only for pipelines without totals. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [70]) @ 0x000000000debe51e in /usr/bin/clickhouse 6. /build/src/QueryPipeline/QueryPipelineBuilder.cpp:361: DB::QueryPipelineBuilder::joinPipelinesYShaped(std::unique_ptr>, std::unique_ptr>, std::shared_ptr, DB::Block const&, unsigned long, std::vector, std::allocator>>*) @ 0x000000001b852379 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/JoinStep.cpp:41: DB::JoinStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001edfb481 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:40.248083 [ 12023 ] {01933f2f-0e14-4579-b176-f33492f3019d} executeQuery: Code: 407. DB::Exception: Numeric overflow: While processing toStartOfInterval(toDateTime64('\0930-12-12 12:12:12.1234567', 3), toIntervalNanosecond(1024)). (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52988) (comment: 02269_to_start_of_interval_overflow.sql) (in query: select toStartOfInterval(toDateTime64('\0930-12-12 12:12:12.1234567', 3), toIntervalNanosecond(1024));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/toStartOfInterval.cpp:298: DB::(anonymous namespace)::Transform<(DB::IntervalKind::Kind)0>::execute(long, long, DateLUTImpl const&, long) @ 0x000000001269dbff in /usr/bin/clickhouse 7. /build/src/Functions/toStartOfInterval.cpp:526: COW::immutable_ptr DB::(anonymous namespace)::FunctionToStartOfInterval::execute>(DB::DataTypeDateTime64 const&, DB::ColumnDecimal const&, long, std::shared_ptr const&, DateLUTImpl const&, unsigned short) const @ 0x000000001269c6f7 in /usr/bin/clickhouse 8. /build/src/Functions/toStartOfInterval.cpp:482: COW::immutable_ptr DB::(anonymous namespace)::FunctionToStartOfInterval::dispatchForIntervalColumn, DB::DataTypeDateTime64>(DB::DataTypeDateTime64 const&, DB::ColumnDecimal const&, DB::ColumnWithTypeAndName const&, std::shared_ptr const&, DateLUTImpl const&, unsigned short) const @ 0x000000001269ad7f in /usr/bin/clickhouse 9. /build/src/Functions/toStartOfInterval.cpp:438: DB::(anonymous namespace)::FunctionToStartOfInterval::dispatchForColumns(DB::ColumnWithTypeAndName const&, DB::ColumnWithTypeAndName const&, std::shared_ptr const&, DateLUTImpl const&) const @ 0x000000001269a644 in /usr/bin/clickhouse 10. /build/src/Functions/toStartOfInterval.cpp:412: DB::(anonymous namespace)::FunctionToStartOfInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012699f29 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 2024.05.01 13:22:40.249067 [ 12023 ] {01933f2f-0e14-4579-b176-f33492f3019d} TCPHandler: Code: 407. DB::Exception: Numeric overflow: While processing toStartOfInterval(toDateTime64('\0930-12-12 12:12:12.1234567', 3), toIntervalNanosecond(1024)). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/toStartOfInterval.cpp:298: DB::(anonymous namespace)::Transform<(DB::IntervalKind::Kind)0>::execute(long, long, DateLUTImpl const&, long) @ 0x000000001269dbff in /usr/bin/clickhouse 7. /build/src/Functions/toStartOfInterval.cpp:526: COW::immutable_ptr DB::(anonymous namespace)::FunctionToStartOfInterval::execute>(DB::DataTypeDateTime64 const&, DB::ColumnDecimal const&, long, std::shared_ptr const&, DateLUTImpl const&, unsigned short) const @ 0x000000001269c6f7 in /usr/bin/clickhouse 8. /build/src/Functions/toStartOfInterval.cpp:482: COW::immutable_ptr DB::(anonymous namespace)::FunctionToStartOfInterval::dispatchForIntervalColumn, DB::DataTypeDateTime64>(DB::DataTypeDateTime64 const&, DB::ColumnDecimal const&, DB::ColumnWithTypeAndName const&, std::shared_ptr const&, DateLUTImpl const&, unsigned short) const @ 0x000000001269ad7f in /usr/bin/clickhouse 9. /build/src/Functions/toStartOfInterval.cpp:438: DB::(anonymous namespace)::FunctionToStartOfInterval::dispatchForColumns(DB::ColumnWithTypeAndName const&, DB::ColumnWithTypeAndName const&, std::shared_ptr const&, DateLUTImpl const&) const @ 0x000000001269a644 in /usr/bin/clickhouse 10. /build/src/Functions/toStartOfInterval.cpp:412: DB::(anonymous namespace)::FunctionToStartOfInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012699f29 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 2024.05.01 13:22:40.272317 [ 12023 ] {2cc995e3-4915-456e-a205-b776294c4cfc} executeQuery: Code: 407. DB::Exception: Numeric overflow: While processing toDateTime64(-9223372036854775808, 1048575, toIntervalNanosecond(9223372036854775806), NULL), toStartOfInterval(toDateTime64(toIntervalNanosecond(toIntervalNanosecond(257), toDateTime64(toStartOfInterval(toDateTime64(NULL)))), '', 100), toIntervalNanosecond(toStartOfInterval(toDateTime64(toIntervalNanosecond(NULL), NULL)), -1)), toStartOfInterval(toDateTime64('\0930-12-12 12:12:12.1234567', 3), toIntervalNanosecond(1024)). (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52988) (comment: 02269_to_start_of_interval_overflow.sql) (in query: SELECT toDateTime64(-9223372036854775808, 1048575, toIntervalNanosecond(9223372036854775806), NULL), toStartOfInterval(toDateTime64(toIntervalNanosecond(toIntervalNanosecond(257), toDateTime64(toStartOfInterval(toDateTime64(NULL)))), '', 100), toIntervalNanosecond(toStartOfInterval(toDateTime64(toIntervalNanosecond(NULL), NULL)), -1)), toStartOfInterval(toDateTime64('\0930-12-12 12:12:12.1234567', 3), toIntervalNanosecond(1024));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/toStartOfInterval.cpp:298: DB::(anonymous namespace)::Transform<(DB::IntervalKind::Kind)0>::execute(long, long, DateLUTImpl const&, long) @ 0x000000001269dbff in /usr/bin/clickhouse 7. /build/src/Functions/toStartOfInterval.cpp:526: COW::immutable_ptr DB::(anonymous namespace)::FunctionToStartOfInterval::execute>(DB::DataTypeDateTime64 const&, DB::ColumnDecimal const&, long, std::shared_ptr const&, DateLUTImpl const&, unsigned short) const @ 0x000000001269c6f7 in /usr/bin/clickhouse 8. /build/src/Functions/toStartOfInterval.cpp:482: COW::immutable_ptr DB::(anonymous namespace)::FunctionToStartOfInterval::dispatchForIntervalColumn, DB::DataTypeDateTime64>(DB::DataTypeDateTime64 const&, DB::ColumnDecimal const&, DB::ColumnWithTypeAndName const&, std::shared_ptr const&, DateLUTImpl const&, unsigned short) const @ 0x000000001269ad7f in /usr/bin/clickhouse 9. /build/src/Functions/toStartOfInterval.cpp:438: DB::(anonymous namespace)::FunctionToStartOfInterval::dispatchForColumns(DB::ColumnWithTypeAndName const&, DB::ColumnWithTypeAndName const&, std::shared_ptr const&, DateLUTImpl const&) const @ 0x000000001269a644 in /usr/bin/clickhouse 10. /build/src/Functions/toStartOfInterval.cpp:412: DB::(anonymous namespace)::FunctionToStartOfInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012699f29 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 2024.05.01 13:22:40.273358 [ 12023 ] {2cc995e3-4915-456e-a205-b776294c4cfc} TCPHandler: Code: 407. DB::Exception: Numeric overflow: While processing toDateTime64(-9223372036854775808, 1048575, toIntervalNanosecond(9223372036854775806), NULL), toStartOfInterval(toDateTime64(toIntervalNanosecond(toIntervalNanosecond(257), toDateTime64(toStartOfInterval(toDateTime64(NULL)))), '', 100), toIntervalNanosecond(toStartOfInterval(toDateTime64(toIntervalNanosecond(NULL), NULL)), -1)), toStartOfInterval(toDateTime64('\0930-12-12 12:12:12.1234567', 3), toIntervalNanosecond(1024)). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/toStartOfInterval.cpp:298: DB::(anonymous namespace)::Transform<(DB::IntervalKind::Kind)0>::execute(long, long, DateLUTImpl const&, long) @ 0x000000001269dbff in /usr/bin/clickhouse 7. /build/src/Functions/toStartOfInterval.cpp:526: COW::immutable_ptr DB::(anonymous namespace)::FunctionToStartOfInterval::execute>(DB::DataTypeDateTime64 const&, DB::ColumnDecimal const&, long, std::shared_ptr const&, DateLUTImpl const&, unsigned short) const @ 0x000000001269c6f7 in /usr/bin/clickhouse 8. /build/src/Functions/toStartOfInterval.cpp:482: COW::immutable_ptr DB::(anonymous namespace)::FunctionToStartOfInterval::dispatchForIntervalColumn, DB::DataTypeDateTime64>(DB::DataTypeDateTime64 const&, DB::ColumnDecimal const&, DB::ColumnWithTypeAndName const&, std::shared_ptr const&, DateLUTImpl const&, unsigned short) const @ 0x000000001269ad7f in /usr/bin/clickhouse 9. /build/src/Functions/toStartOfInterval.cpp:438: DB::(anonymous namespace)::FunctionToStartOfInterval::dispatchForColumns(DB::ColumnWithTypeAndName const&, DB::ColumnWithTypeAndName const&, std::shared_ptr const&, DateLUTImpl const&) const @ 0x000000001269a644 in /usr/bin/clickhouse 10. /build/src/Functions/toStartOfInterval.cpp:412: DB::(anonymous namespace)::FunctionToStartOfInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012699f29 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 2024.05.01 13:22:41.902949 [ 12024 ] {ed067f6c-7d70-4e40-b126-1d0f90e5c56e} executeQuery: Code: 48. DB::Exception: WITH TOTALS and WITH ROLLUP or CUBE are not supported together in presence of HAVING. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37232) (comment: 02293_grouping_function_group_by.sql) (in query: SELECT number, grouping(number, number % 2) as gr FROM remote('127.0.0.{2,3}', numbers(10)) GROUP BY CUBE(number, number % 2) WITH TOTALS HAVING grouping(number) != 0 ORDER BY number, gr;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [85]) @ 0x0000000015ba677e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1371: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa6c9a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:41.903882 [ 12024 ] {ed067f6c-7d70-4e40-b126-1d0f90e5c56e} TCPHandler: Code: 48. DB::Exception: WITH TOTALS and WITH ROLLUP or CUBE are not supported together in presence of HAVING. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [85]) @ 0x0000000015ba677e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1371: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa6c9a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:43.159373 [ 12024 ] {adb5d648-7685-4901-9c4d-c2168aeb7bb2} executeQuery: Code: 48. DB::Exception: WITH TOTALS and WITH ROLLUP or CUBE are not supported together in presence of HAVING. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37232) (comment: 02293_grouping_function_group_by.sql) (in query: SELECT number, grouping(number, number % 2) as gr FROM remote('127.0.0.{2,3}', numbers(10)) GROUP BY ROLLUP(number, number % 2) WITH TOTALS HAVING grouping(number) != 0 ORDER BY number, gr;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [85]) @ 0x0000000015ba677e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1371: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa6c9a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:43.160407 [ 12024 ] {adb5d648-7685-4901-9c4d-c2168aeb7bb2} TCPHandler: Code: 48. DB::Exception: WITH TOTALS and WITH ROLLUP or CUBE are not supported together in presence of HAVING. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [85]) @ 0x0000000015ba677e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1371: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa6c9a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:45.174511 [ 1133 ] {51ee3850-d52e-41bc-a35b-bec0512329d3} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53074) (comment: 02270_errors_in_files.sh) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:45.176254 [ 1133 ] {51ee3850-d52e-41bc-a35b-bec0512329d3} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:22:51.332806 [ 12034 ] {14dfd1c0-48a8-4f69-ab7d-34001fc34c55} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing CSVRowInputFormat: While executing File: (in file/uri /var/lib/clickhouse/user_files/test_02270_2.csv): (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55874) (comment: 02270_errors_in_files.sh) (in query: SELECT * FROM file('test_02270*.csv', 'CSV', 'a String, b String')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e7b4e68 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 18. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 19. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:22:51.338904 [ 12034 ] {14dfd1c0-48a8-4f69-ab7d-34001fc34c55} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing CSVRowInputFormat: While executing File: (in file/uri /var/lib/clickhouse/user_files/test_02270_2.csv): (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e7b4e68 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 18. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 19. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:22:53.320814 [ 1080 ] {f7c15ba9-61ed-4430-82f2-611dcf067ffe} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing CSVRowInputFormat: While executing File: (in file/uri /var/lib/clickhouse/user_files/test_02270_2.csv): (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55932) (comment: 02270_errors_in_files.sh) (in query: SELECT * FROM file('test_02270*.csv', 'CSV', 'a String, b String')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e7b4e68 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 18. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 19. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:22:53.326801 [ 1080 ] {f7c15ba9-61ed-4430-82f2-611dcf067ffe} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing CSVRowInputFormat: While executing File: (in file/uri /var/lib/clickhouse/user_files/test_02270_2.csv): (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e7b4e68 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 18. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 19. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:22:58.268313 [ 1080 ] {379bf171-beaa-4806-bd8a-aa3a693d4cb9} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected '{' before: '1\n': Cannot extract table structure from JSONEachRow format file. You can specify the structure manually: (in file/uri /var/lib/clickhouse/user_files/02267_file_globs_schema_inference_test_1q9hmeg4_data4.jsonl). (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56028) (comment: 02267_file_globs_schema_inference.sh) (in query: select * from file('02267_file_globs_schema_inference_test_1q9hmeg4_data*.jsonl') settings schema_inference_use_cache_for_file=0), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Formats/JSONUtils.cpp:213: DB::JSONUtils::readRowAndGetNamesAndDataTypesForJSONEachRow(DB::ReadBuffer&, DB::FormatSettings const&, DB::JSONInferenceInfo*) @ 0x000000001e835945 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/JSONEachRowRowInputFormat.cpp:0: DB::JSONEachRowSchemaReader::readRowAndGetNamesAndDataTypes(bool&) @ 0x000000001e856429 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/ISchemaReader.cpp:292: DB::IRowWithNamesSchemaReader::readSchema() @ 0x000000001e76d97a in /usr/bin/clickhouse 11. /build/src/Formats/ReadSchemaUtils.cpp:124: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&, std::unique_ptr>&) @ 0x000000001e62db23 in /usr/bin/clickhouse 12. /build/src/Formats/ReadSchemaUtils.cpp:239: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&) @ 0x000000001e62f0a8 in /usr/bin/clickhouse 13. /build/src/Storages/StorageFile.cpp:828: DB::StorageFile::getTableStructureFromFile(String const&, std::vector> const&, String const&, std::optional const&, std::shared_ptr, std::optional const&) @ 0x000000001d68d632 in /usr/bin/clickhouse 14. /build/src/Storages/StorageFile.cpp:935: DB::StorageFile::setStorageMetadata(DB::StorageFile::CommonArguments) @ 0x000000001d68ecaa in /usr/bin/clickhouse 15. /build/src/Storages/StorageFile.cpp:890: DB::StorageFile::StorageFile(String const&, String const&, DB::StorageFile::CommonArguments) @ 0x000000001d68f3e6 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFile* std::construct_at[abi:v15000](DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a972214 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a972151 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a9720d7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String const&, String, DB::StorageFile::CommonArguments&, void>(std::allocator const&, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a971fea in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a970216 in /usr/bin/clickhouse 21. /build/src/TableFunctions/TableFunctionFile.cpp:88: DB::TableFunctionFile::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a96f9a7 in /usr/bin/clickhouse 22. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a974147 in /usr/bin/clickhouse 23. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 24. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 25. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:22:58.270789 [ 1080 ] {379bf171-beaa-4806-bd8a-aa3a693d4cb9} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected '{' before: '1\n': Cannot extract table structure from JSONEachRow format file. You can specify the structure manually: (in file/uri /var/lib/clickhouse/user_files/02267_file_globs_schema_inference_test_1q9hmeg4_data4.jsonl). (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Formats/JSONUtils.cpp:213: DB::JSONUtils::readRowAndGetNamesAndDataTypesForJSONEachRow(DB::ReadBuffer&, DB::FormatSettings const&, DB::JSONInferenceInfo*) @ 0x000000001e835945 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/JSONEachRowRowInputFormat.cpp:0: DB::JSONEachRowSchemaReader::readRowAndGetNamesAndDataTypes(bool&) @ 0x000000001e856429 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/ISchemaReader.cpp:292: DB::IRowWithNamesSchemaReader::readSchema() @ 0x000000001e76d97a in /usr/bin/clickhouse 11. /build/src/Formats/ReadSchemaUtils.cpp:124: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&, std::unique_ptr>&) @ 0x000000001e62db23 in /usr/bin/clickhouse 12. /build/src/Formats/ReadSchemaUtils.cpp:239: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&) @ 0x000000001e62f0a8 in /usr/bin/clickhouse 13. /build/src/Storages/StorageFile.cpp:828: DB::StorageFile::getTableStructureFromFile(String const&, std::vector> const&, String const&, std::optional const&, std::shared_ptr, std::optional const&) @ 0x000000001d68d632 in /usr/bin/clickhouse 14. /build/src/Storages/StorageFile.cpp:935: DB::StorageFile::setStorageMetadata(DB::StorageFile::CommonArguments) @ 0x000000001d68ecaa in /usr/bin/clickhouse 15. /build/src/Storages/StorageFile.cpp:890: DB::StorageFile::StorageFile(String const&, String const&, DB::StorageFile::CommonArguments) @ 0x000000001d68f3e6 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageFile* std::construct_at[abi:v15000](DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a972214 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::StorageFile*, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a972151 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a9720d7 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], String const&, String, DB::StorageFile::CommonArguments&, void>(std::allocator const&, String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a971fea in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](String const&, String&&, DB::StorageFile::CommonArguments&) @ 0x000000001a970216 in /usr/bin/clickhouse 21. /build/src/TableFunctions/TableFunctionFile.cpp:88: DB::TableFunctionFile::getStorage(String const&, String const&, DB::ColumnsDescription const&, std::shared_ptr, String const&, String const&) const @ 0x000000001a96f9a7 in /usr/bin/clickhouse 22. /build/src/TableFunctions/ITableFunctionFileLike.cpp:121: DB::ITableFunctionFileLike::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a974147 in /usr/bin/clickhouse 23. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 24. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 25. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:22:59.154223 [ 1080 ] {74de1f71-af0a-4359-a6a1-cecaf15774b0} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing CSVRowInputFormat: While executing File: (in file/uri /var/lib/clickhouse/user_files/test_02270_2.csv.gz): (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43602) (comment: 02270_errors_in_files.sh) (in query: SELECT * FROM file('test_02270*.csv.gz', 'CSV', 'a String, b String')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e7b4e68 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 18. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 19. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:22:59.159943 [ 1080 ] {74de1f71-af0a-4359-a6a1-cecaf15774b0} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing CSVRowInputFormat: While executing File: (in file/uri /var/lib/clickhouse/user_files/test_02270_2.csv.gz): (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e7b4e68 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 18. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 19. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:23:01.092433 [ 1080 ] {25290771-ad13-4fc6-8de3-20e25dbf474f} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing CSVRowInputFormat: While executing File: (in file/uri /var/lib/clickhouse/user_files/test_02270_2.csv.gz): (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43644) (comment: 02270_errors_in_files.sh) (in query: SELECT * FROM file('test_02270*.csv.gz', 'CSV', 'a String, b String')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e7b4e68 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 18. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 19. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:23:01.101127 [ 1080 ] {25290771-ad13-4fc6-8de3-20e25dbf474f} TCPHandler: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: '\n': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing CSVRowInputFormat: While executing File: (in file/uri /var/lib/clickhouse/user_files/test_02270_2.csv.gz): (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e7b4e68 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 18. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 19. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:23:06.254087 [ 1080 ] {c2723bc1-e614-4f00-8e85-820636bb21db} executeQuery: Code: 407. DB::Exception: Decimal math overflow: While processing makeDateTime64(2299, 12, 31, 23, 59, 59, 999999999, 9, 'UTC'). (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43762) (comment: 02245_make_datetime64.sql) (in query: select makeDateTime64(2299, 12, 31, 23, 59, 59, 999999999, 9, 'UTC');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b23911e in /usr/bin/clickhouse 6. /build/src/Core/DecimalFunctions.h:98: bool DB::DecimalUtils::multiplyAdd(long const&, long const&, long const&, long&) @ 0x000000000b238fee in /usr/bin/clickhouse 7. /build/src/Core/DecimalFunctions.h:139: bool DB::DecimalUtils::decimalFromComponentsWithMultiplierImpl(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, DB::DateTime64::NativeType, DB::DateTime64&) @ 0x000000000b238f29 in /usr/bin/clickhouse 8. /build/src/Core/DecimalFunctions.h:154: DB::DateTime64 DB::DecimalUtils::decimalFromComponentsWithMultiplier(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, DB::DateTime64::NativeType) @ 0x000000000b238de9 in /usr/bin/clickhouse 9. /build/src/Core/DecimalFunctions.h:197: DB::DateTime64 DB::DecimalUtils::decimalFromComponents(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, unsigned int) @ 0x000000000b249f9b in /usr/bin/clickhouse 10. /build/src/Functions/makeDate.cpp:451: DB::(anonymous namespace)::FunctionMakeDateTime64::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000103127b8 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 2024.05.01 13:23:06.255001 [ 1080 ] {c2723bc1-e614-4f00-8e85-820636bb21db} TCPHandler: Code: 407. DB::Exception: Decimal math overflow: While processing makeDateTime64(2299, 12, 31, 23, 59, 59, 999999999, 9, 'UTC'). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b23911e in /usr/bin/clickhouse 6. /build/src/Core/DecimalFunctions.h:98: bool DB::DecimalUtils::multiplyAdd(long const&, long const&, long const&, long&) @ 0x000000000b238fee in /usr/bin/clickhouse 7. /build/src/Core/DecimalFunctions.h:139: bool DB::DecimalUtils::decimalFromComponentsWithMultiplierImpl(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, DB::DateTime64::NativeType, DB::DateTime64&) @ 0x000000000b238f29 in /usr/bin/clickhouse 8. /build/src/Core/DecimalFunctions.h:154: DB::DateTime64 DB::DecimalUtils::decimalFromComponentsWithMultiplier(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, DB::DateTime64::NativeType) @ 0x000000000b238de9 in /usr/bin/clickhouse 9. /build/src/Core/DecimalFunctions.h:197: DB::DateTime64 DB::DecimalUtils::decimalFromComponents(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, unsigned int) @ 0x000000000b249f9b in /usr/bin/clickhouse 10. /build/src/Functions/makeDate.cpp:451: DB::(anonymous namespace)::FunctionMakeDateTime64::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000103127b8 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 2024.05.01 13:23:06.383901 [ 1080 ] {0215be3c-c765-4651-8b8c-c103d5389707} executeQuery: Code: 407. DB::Exception: Decimal math overflow: While processing makeDateTime64(2262, 4, 11, 23, 47, 16, 854775808, 9, 'UTC'). (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43762) (comment: 02245_make_datetime64.sql) (in query: select makeDateTime64(2262, 4, 11, 23, 47, 16, 854775808, 9, 'UTC');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b23911e in /usr/bin/clickhouse 6. /build/src/Core/DecimalFunctions.h:105: bool DB::DecimalUtils::multiplyAdd(long const&, long const&, long const&, long&) @ 0x000000000b239076 in /usr/bin/clickhouse 7. /build/src/Core/DecimalFunctions.h:139: bool DB::DecimalUtils::decimalFromComponentsWithMultiplierImpl(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, DB::DateTime64::NativeType, DB::DateTime64&) @ 0x000000000b238f29 in /usr/bin/clickhouse 8. /build/src/Core/DecimalFunctions.h:154: DB::DateTime64 DB::DecimalUtils::decimalFromComponentsWithMultiplier(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, DB::DateTime64::NativeType) @ 0x000000000b238de9 in /usr/bin/clickhouse 9. /build/src/Core/DecimalFunctions.h:197: DB::DateTime64 DB::DecimalUtils::decimalFromComponents(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, unsigned int) @ 0x000000000b249f9b in /usr/bin/clickhouse 10. /build/src/Functions/makeDate.cpp:451: DB::(anonymous namespace)::FunctionMakeDateTime64::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000103127b8 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 2024.05.01 13:23:06.384748 [ 1080 ] {0215be3c-c765-4651-8b8c-c103d5389707} TCPHandler: Code: 407. DB::Exception: Decimal math overflow: While processing makeDateTime64(2262, 4, 11, 23, 47, 16, 854775808, 9, 'UTC'). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b23911e in /usr/bin/clickhouse 6. /build/src/Core/DecimalFunctions.h:105: bool DB::DecimalUtils::multiplyAdd(long const&, long const&, long const&, long&) @ 0x000000000b239076 in /usr/bin/clickhouse 7. /build/src/Core/DecimalFunctions.h:139: bool DB::DecimalUtils::decimalFromComponentsWithMultiplierImpl(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, DB::DateTime64::NativeType, DB::DateTime64&) @ 0x000000000b238f29 in /usr/bin/clickhouse 8. /build/src/Core/DecimalFunctions.h:154: DB::DateTime64 DB::DecimalUtils::decimalFromComponentsWithMultiplier(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, DB::DateTime64::NativeType) @ 0x000000000b238de9 in /usr/bin/clickhouse 9. /build/src/Core/DecimalFunctions.h:197: DB::DateTime64 DB::DecimalUtils::decimalFromComponents(DB::DateTime64::NativeType const&, DB::DateTime64::NativeType const&, unsigned int) @ 0x000000000b249f9b in /usr/bin/clickhouse 10. /build/src/Functions/makeDate.cpp:451: DB::(anonymous namespace)::FunctionMakeDateTime64::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000103127b8 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 2024.05.01 13:23:06.700519 [ 1080 ] {2f4e0a00-cc7f-4ad2-9827-21b2ea4de30c} executeQuery: Code: 69. DB::Exception: Argument 'precision' for function makeDateTime64 must be in range [0, 9]: While processing makeDateTime64(1991, 8, 24, 21, 4, 0, 1234, 10, 'CET'). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43762) (comment: 02245_make_datetime64.sql) (in query: select makeDateTime64(1991, 8, 24, 21, 4, 0, 1234, 10, 'CET');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/makeDate.cpp:469: DB::(anonymous namespace)::FunctionMakeDateTime64::extractPrecision(DB::ColumnWithTypeAndName const&) const @ 0x000000001031357f in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:371: DB::(anonymous namespace)::FunctionMakeDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x00000000103131c1 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:23:06.701498 [ 1080 ] {2f4e0a00-cc7f-4ad2-9827-21b2ea4de30c} TCPHandler: Code: 69. DB::Exception: Argument 'precision' for function makeDateTime64 must be in range [0, 9]: While processing makeDateTime64(1991, 8, 24, 21, 4, 0, 1234, 10, 'CET'). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/makeDate.cpp:469: DB::(anonymous namespace)::FunctionMakeDateTime64::extractPrecision(DB::ColumnWithTypeAndName const&) const @ 0x000000001031357f in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:371: DB::(anonymous namespace)::FunctionMakeDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x00000000103131c1 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:23:06.711575 [ 1080 ] {ad6e1d3e-8e5e-4b30-9e97-895eb98794ad} executeQuery: Code: 69. DB::Exception: Argument 'precision' for function makeDateTime64 must be in range [0, 9]: While processing makeDateTime64(1991, 8, 24, 21, 4, 0, 1234, -1, 'CET'). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43762) (comment: 02245_make_datetime64.sql) (in query: select makeDateTime64(1991, 8, 24, 21, 4, 0, 1234, -1, 'CET');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/makeDate.cpp:469: DB::(anonymous namespace)::FunctionMakeDateTime64::extractPrecision(DB::ColumnWithTypeAndName const&) const @ 0x000000001031357f in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:371: DB::(anonymous namespace)::FunctionMakeDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x00000000103131c1 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:23:06.712483 [ 1080 ] {ad6e1d3e-8e5e-4b30-9e97-895eb98794ad} TCPHandler: Code: 69. DB::Exception: Argument 'precision' for function makeDateTime64 must be in range [0, 9]: While processing makeDateTime64(1991, 8, 24, 21, 4, 0, 1234, -1, 'CET'). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/makeDate.cpp:469: DB::(anonymous namespace)::FunctionMakeDateTime64::extractPrecision(DB::ColumnWithTypeAndName const&) const @ 0x000000001031357f in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:371: DB::(anonymous namespace)::FunctionMakeDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x00000000103131c1 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:23:06.934507 [ 1080 ] {1fc163df-527a-4d73-86bc-222ad78b2db1} executeQuery: Code: 36. DB::Exception: Cannot load time zone not a timezone: While processing makeDateTime64(1984, 1, 1, 0, 0, 0, 0, 9, 'not a timezone'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43762) (comment: 02245_make_datetime64.sql) (in query: select makeDateTime64(1984, 1, 1, 0, 0, 0, 0, 9, 'not a timezone');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Common/DateLUTImpl.cpp:77: DateLUTImpl::DateLUTImpl(String const&) @ 0x00000000138bd354 in /usr/bin/clickhouse 7. /build/src/Common/DateLUT.cpp:157: DateLUT::getImplementation(String const&) const @ 0x00000000138b7c0a in /usr/bin/clickhouse 8. /build/src/Common/DateLUT.h:62: TimezoneMixin::TimezoneMixin(String const&) @ 0x000000001b8a4f69 in /usr/bin/clickhouse 9. /build/src/DataTypes/DataTypeDateTime64.cpp:22: DB::DataTypeDateTime64::DataTypeDateTime64(unsigned int, String const&) @ 0x000000001b8a601c in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeDateTime64* std::construct_at[abi:v15000](DB::DataTypeDateTime64*, long&, String&) @ 0x0000000010313e6f in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::DataTypeDateTime64*, long&, String&) @ 0x0000000010313de9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, long&, String&) @ 0x0000000010313d6f in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], long&, String&, void>(std::allocator const&, long&, String&) @ 0x0000000010313c82 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](long&, String&) @ 0x0000000010313c0e in /usr/bin/clickhouse 15. /build/src/Functions/makeDate.cpp:378: DB::(anonymous namespace)::FunctionMakeDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031329b in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:23:06.935539 [ 1080 ] {1fc163df-527a-4d73-86bc-222ad78b2db1} TCPHandler: Code: 36. DB::Exception: Cannot load time zone not a timezone: While processing makeDateTime64(1984, 1, 1, 0, 0, 0, 0, 9, 'not a timezone'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Common/DateLUTImpl.cpp:77: DateLUTImpl::DateLUTImpl(String const&) @ 0x00000000138bd354 in /usr/bin/clickhouse 7. /build/src/Common/DateLUT.cpp:157: DateLUT::getImplementation(String const&) const @ 0x00000000138b7c0a in /usr/bin/clickhouse 8. /build/src/Common/DateLUT.h:62: TimezoneMixin::TimezoneMixin(String const&) @ 0x000000001b8a4f69 in /usr/bin/clickhouse 9. /build/src/DataTypes/DataTypeDateTime64.cpp:22: DB::DataTypeDateTime64::DataTypeDateTime64(unsigned int, String const&) @ 0x000000001b8a601c in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeDateTime64* std::construct_at[abi:v15000](DB::DataTypeDateTime64*, long&, String&) @ 0x0000000010313e6f in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::DataTypeDateTime64*, long&, String&) @ 0x0000000010313de9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, long&, String&) @ 0x0000000010313d6f in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], long&, String&, void>(std::allocator const&, long&, String&) @ 0x0000000010313c82 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](long&, String&) @ 0x0000000010313c0e in /usr/bin/clickhouse 15. /build/src/Functions/makeDate.cpp:378: DB::(anonymous namespace)::FunctionMakeDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001031329b in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:23:07.635068 [ 1080 ] {aab82a26-9791-434d-82ed-c902cc768ffb} executeQuery: Code: 43. DB::Exception: Argument 'precision' for function makeDateTime64 must be constant number: While processing makeDateTime64(year, 1, 1, 1, 0, 0, 0, precision, timezone). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43762) (comment: 02245_make_datetime64.sql) (in query: select makeDateTime64(year, 1, 1, 1, 0, 0, 0, precision, timezone) from ( select 1984 as year, 5 as precision, 'UTC' as timezone union all select 1985 as year, 5 as precision, 'UTC' as timezone );), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/makeDate.cpp:465: DB::(anonymous namespace)::FunctionMakeDateTime64::extractPrecision(DB::ColumnWithTypeAndName const&) const @ 0x0000000010313451 in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:371: DB::(anonymous namespace)::FunctionMakeDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x00000000103131c1 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:23:07.636129 [ 1080 ] {aab82a26-9791-434d-82ed-c902cc768ffb} TCPHandler: Code: 43. DB::Exception: Argument 'precision' for function makeDateTime64 must be constant number: While processing makeDateTime64(year, 1, 1, 1, 0, 0, 0, precision, timezone). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/makeDate.cpp:465: DB::(anonymous namespace)::FunctionMakeDateTime64::extractPrecision(DB::ColumnWithTypeAndName const&) const @ 0x0000000010313451 in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:371: DB::(anonymous namespace)::FunctionMakeDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x00000000103131c1 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:23:10.902139 [ 12028 ] {b595c5b9-d2b0-4f82-90e6-a81435436734} executeQuery: Code: 36. DB::Exception: Argument 'format/NOSIGN' must be a literal with type String, got Array. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58912) (comment: 02245_s3_schema_desc.sql) (in query: SELECT * FROM s3(decodeURLComponent(NULL), [NULL]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>, std::basic_string_view>>(int, FormatStringHelperImpl::type, std::type_identity>>::type, std::type_identity>>::type>, String const&, std::basic_string_view>&&, std::basic_string_view>&&) @ 0x00000000119480c8 in /usr/bin/clickhouse 6. /build/src/Storages/checkAndGetLiteralArgument.cpp:32: String DB::checkAndGetLiteralArgument(DB::ASTLiteral const&, String const&) @ 0x000000001d9e4e28 in /usr/bin/clickhouse 7. /build/src/Storages/checkAndGetLiteralArgument.cpp:16: String DB::checkAndGetLiteralArgument(std::shared_ptr const&, String const&) @ 0x000000001d9e4b1d in /usr/bin/clickhouse 8. /build/src/TableFunctions/TableFunctionS3.cpp:97: DB::TableFunctionS3::parseArgumentsImpl(absl::lts_20211102::InlinedVector, 7ul, std::allocator>>&, std::shared_ptr const&) @ 0x000000001a98f41f in /usr/bin/clickhouse 9. /build/src/TableFunctions/TableFunctionS3.cpp:206: DB::TableFunctionS3::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a990c84 in /usr/bin/clickhouse 10. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 11. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 12. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 29. ? @ 0x00007fcde32fbac3 in ? 30. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:10.903109 [ 12028 ] {b595c5b9-d2b0-4f82-90e6-a81435436734} TCPHandler: Code: 36. DB::Exception: Argument 'format/NOSIGN' must be a literal with type String, got Array. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>, std::basic_string_view>>(int, FormatStringHelperImpl::type, std::type_identity>>::type, std::type_identity>>::type>, String const&, std::basic_string_view>&&, std::basic_string_view>&&) @ 0x00000000119480c8 in /usr/bin/clickhouse 6. /build/src/Storages/checkAndGetLiteralArgument.cpp:32: String DB::checkAndGetLiteralArgument(DB::ASTLiteral const&, String const&) @ 0x000000001d9e4e28 in /usr/bin/clickhouse 7. /build/src/Storages/checkAndGetLiteralArgument.cpp:16: String DB::checkAndGetLiteralArgument(std::shared_ptr const&, String const&) @ 0x000000001d9e4b1d in /usr/bin/clickhouse 8. /build/src/TableFunctions/TableFunctionS3.cpp:97: DB::TableFunctionS3::parseArgumentsImpl(absl::lts_20211102::InlinedVector, 7ul, std::allocator>>&, std::shared_ptr const&) @ 0x000000001a98f41f in /usr/bin/clickhouse 9. /build/src/TableFunctions/TableFunctionS3.cpp:206: DB::TableFunctionS3::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a990c84 in /usr/bin/clickhouse 10. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 11. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 12. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 29. ? @ 0x00007fcde32fbac3 in ? 30. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:12.594842 [ 5967 ] {ca01108f-9fe1-47ee-bb2e-f48dd219860a} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date: While processing makeDate32(CAST(1980, 'Date'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58978) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(cast(1980 as Date), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.595838 [ 5967 ] {ca01108f-9fe1-47ee-bb2e-f48dd219860a} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date: While processing makeDate32(CAST(1980, 'Date'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.606045 [ 5967 ] {7944805d-d324-4209-ad79-9299b191fcf0} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date: While processing makeDate32(CAST(-1980, 'Date'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58978) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(cast(-1980 as Date), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.606907 [ 5967 ] {7944805d-d324-4209-ad79-9299b191fcf0} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date: While processing makeDate32(CAST(-1980, 'Date'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.616553 [ 5967 ] {c0116577-bb78-41af-b4f7-4c9932aa606e} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date32: While processing makeDate32(CAST(1980, 'Date32'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58978) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(cast(1980 as Date32), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.617575 [ 5967 ] {c0116577-bb78-41af-b4f7-4c9932aa606e} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date32: While processing makeDate32(CAST(1980, 'Date32'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.627740 [ 5967 ] {4ebf3933-95d2-4228-b487-80fb1c381691} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date32: While processing makeDate32(CAST(-1980, 'Date32'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58978) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(cast(-1980 as Date32), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.628562 [ 5967 ] {4ebf3933-95d2-4228-b487-80fb1c381691} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date32: While processing makeDate32(CAST(-1980, 'Date32'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.636776 [ 5967 ] {7e9e30cf-0b2d-4335-bf43-3bf19d96d1f7} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime: While processing makeDate32(CAST(1980, 'DateTime'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58978) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(cast(1980 as DateTime), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.637804 [ 5967 ] {7e9e30cf-0b2d-4335-bf43-3bf19d96d1f7} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime: While processing makeDate32(CAST(1980, 'DateTime'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.647104 [ 5967 ] {b051a605-218f-42cd-a9c3-febfa8609bbe} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime: While processing makeDate32(CAST(-1980, 'DateTime'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58978) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(cast(-1980 as DateTime), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.647946 [ 5967 ] {b051a605-218f-42cd-a9c3-febfa8609bbe} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime: While processing makeDate32(CAST(-1980, 'DateTime'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.656773 [ 5967 ] {c933ccd2-d566-40be-8a39-49e474ea8d8f} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime64(3): While processing makeDate32(CAST(1980, 'DateTime64'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58978) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(cast(1980 as DateTime64), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.657867 [ 5967 ] {c933ccd2-d566-40be-8a39-49e474ea8d8f} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime64(3): While processing makeDate32(CAST(1980, 'DateTime64'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.666191 [ 5967 ] {f1bcf630-0f52-42fe-9862-9a2087ecabb0} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime64(3): While processing makeDate32(CAST(-1980, 'DateTime64'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58978) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(cast(-1980 as DateTime64), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.667013 [ 5967 ] {f1bcf630-0f52-42fe-9862-9a2087ecabb0} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime64(3): While processing makeDate32(CAST(-1980, 'DateTime64'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.676152 [ 5967 ] {51317ef2-a271-4b96-af6c-63f5d9a74a4d} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('1980', '10'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58978) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32('1980', '10');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.677188 [ 5967 ] {51317ef2-a271-4b96-af6c-63f5d9a74a4d} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('1980', '10'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.685916 [ 5967 ] {48e09321-cfcc-4b35-bd82-71827a0436ea} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('-1980', 3). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58978) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32('-1980', 3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.686755 [ 5967 ] {48e09321-cfcc-4b35-bd82-71827a0436ea} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('-1980', 3). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.694318 [ 5967 ] {7a30b594-1b25-4eb0-9b09-c0f189780491} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('aa', 3). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58978) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32('aa', 3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.695116 [ 5967 ] {7a30b594-1b25-4eb0-9b09-c0f189780491} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('aa', 3). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.702538 [ 5967 ] {33aeebbf-9d44-48ba-aeb1-f9334187bc15} executeQuery: Code: 43. DB::Exception: Illegal type of argument #2 'dayofyear' of function makeDate32, expected Number, got String: While processing makeDate32(1994, 'aa'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58978) (comment: 02243_make_date32_mysql.sql) (in query: select makeDate32(1994, 'aa');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:12.703407 [ 5967 ] {33aeebbf-9d44-48ba-aeb1-f9334187bc15} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #2 'dayofyear' of function makeDate32, expected Number, got String: While processing makeDate32(1994, 'aa'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.320869 [ 12025 ] {2d979e8e-7dfe-46e7-a7f0-8c627876e731} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date: While processing makeDate32(CAST(1980, 'Date'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59002) (comment: 02243_make_date32.sql) (in query: select makeDate32(cast(1980 as Date), 10, 30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.322018 [ 12025 ] {2d979e8e-7dfe-46e7-a7f0-8c627876e731} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date: While processing makeDate32(CAST(1980, 'Date'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.332354 [ 12025 ] {5a340ccb-f3b1-4ace-9e3c-e1ae4f95ef70} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date: While processing makeDate32(CAST(-1980, 'Date'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59002) (comment: 02243_make_date32.sql) (in query: select makeDate32(cast(-1980 as Date), 10, 30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.333226 [ 12025 ] {5a340ccb-f3b1-4ace-9e3c-e1ae4f95ef70} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date: While processing makeDate32(CAST(-1980, 'Date'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.342033 [ 12025 ] {53378bc8-391d-4a1f-b7f7-de40ba55f070} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date32: While processing makeDate32(CAST(1980, 'Date32'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59002) (comment: 02243_make_date32.sql) (in query: select makeDate32(cast(1980 as Date32), 10, 30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.342847 [ 12025 ] {53378bc8-391d-4a1f-b7f7-de40ba55f070} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date32: While processing makeDate32(CAST(1980, 'Date32'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.350864 [ 12025 ] {2789eefa-1ae0-40a5-ba22-74366e96a4a3} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date32: While processing makeDate32(CAST(-1980, 'Date32'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59002) (comment: 02243_make_date32.sql) (in query: select makeDate32(cast(-1980 as Date32), 10, 30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.351702 [ 12025 ] {2789eefa-1ae0-40a5-ba22-74366e96a4a3} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got Date32: While processing makeDate32(CAST(-1980, 'Date32'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.359588 [ 12025 ] {a812dd6e-c572-4463-8240-6a4757a602b1} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime: While processing makeDate32(CAST(1980, 'DateTime'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59002) (comment: 02243_make_date32.sql) (in query: select makeDate32(cast(1980 as DateTime), 10, 30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.360388 [ 12025 ] {a812dd6e-c572-4463-8240-6a4757a602b1} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime: While processing makeDate32(CAST(1980, 'DateTime'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.368631 [ 12025 ] {925a5c0a-3a52-42e9-b8eb-14d00cb91062} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime: While processing makeDate32(CAST(-1980, 'DateTime'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59002) (comment: 02243_make_date32.sql) (in query: select makeDate32(cast(-1980 as DateTime), 10, 30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.369471 [ 12025 ] {925a5c0a-3a52-42e9-b8eb-14d00cb91062} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime: While processing makeDate32(CAST(-1980, 'DateTime'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.377589 [ 12025 ] {c7120ba7-d780-400b-942c-7bc8195ca81e} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime64(3): While processing makeDate32(CAST(1980, 'DateTime64'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59002) (comment: 02243_make_date32.sql) (in query: select makeDate32(cast(1980 as DateTime64), 10, 30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.378394 [ 12025 ] {c7120ba7-d780-400b-942c-7bc8195ca81e} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime64(3): While processing makeDate32(CAST(1980, 'DateTime64'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.386457 [ 12025 ] {1616ac21-044b-4ea8-b8c6-b09a86a2559e} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime64(3): While processing makeDate32(CAST(-1980, 'DateTime64'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59002) (comment: 02243_make_date32.sql) (in query: select makeDate32(cast(-1980 as DateTime64), 10, 30);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.387217 [ 12025 ] {1616ac21-044b-4ea8-b8c6-b09a86a2559e} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got DateTime64(3): While processing makeDate32(CAST(-1980, 'DateTime64'), 10, 30). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.809716 [ 12025 ] {f02cd3d9-86d5-48df-9306-b05252c33a01} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('1980', '10', '20'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59002) (comment: 02243_make_date32.sql) (in query: select makeDate32('1980', '10', '20');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.810735 [ 12025 ] {f02cd3d9-86d5-48df-9306-b05252c33a01} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('1980', '10', '20'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.818049 [ 12025 ] {94c0bfeb-74a9-4726-ae38-48a59523a837} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('-1980', 3, 17). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59002) (comment: 02243_make_date32.sql) (in query: select makeDate32('-1980', 3, 17);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.818890 [ 12025 ] {94c0bfeb-74a9-4726-ae38-48a59523a837} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('-1980', 3, 17). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.825762 [ 12025 ] {0065fa97-092e-4b58-b299-86d4f0425f58} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('aa', 3, 24). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59002) (comment: 02243_make_date32.sql) (in query: select makeDate32('aa', 3, 24);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.826586 [ 12025 ] {0065fa97-092e-4b58-b299-86d4f0425f58} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate32, expected Number, got String: While processing makeDate32('aa', 3, 24). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.833024 [ 12025 ] {977fdcef-e872-4c18-9bcb-3bee2e564bd9} executeQuery: Code: 43. DB::Exception: Illegal type of argument #2 'month' of function makeDate32, expected Number, got String: While processing makeDate32(1994, 'aa', 24). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59002) (comment: 02243_make_date32.sql) (in query: select makeDate32(1994, 'aa', 24);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.833804 [ 12025 ] {977fdcef-e872-4c18-9bcb-3bee2e564bd9} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #2 'month' of function makeDate32, expected Number, got String: While processing makeDate32(1994, 'aa', 24). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.840231 [ 12025 ] {2118268f-67d8-4cdf-a35b-07dcd3f12a58} executeQuery: Code: 43. DB::Exception: Illegal type of argument #3 'day' of function makeDate32, expected Number, got String: While processing makeDate32(1984, 3, 'aa'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59002) (comment: 02243_make_date32.sql) (in query: select makeDate32(1984, 3, 'aa');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:13.840987 [ 12025 ] {2118268f-67d8-4cdf-a35b-07dcd3f12a58} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #3 'day' of function makeDate32, expected Number, got String: While processing makeDate32(1984, 3, 'aa'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:92: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e298 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.082487 [ 12025 ] {286f6375-51a8-4537-a608-359e42cc9f6a} executeQuery: Code: 42. DB::Exception: Incorrect number of arguments for function makeDate32 provided 1 (UInt16), expected 2 ('year' : Number, 'dayofyear' : Number): While processing makeDate32(1980). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59002) (comment: 02243_make_date32.sql) (in query: select makeDate32(1980);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001abf4a5d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf29a5 in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:23:14.083442 [ 12025 ] {286f6375-51a8-4537-a608-359e42cc9f6a} TCPHandler: Code: 42. DB::Exception: Incorrect number of arguments for function makeDate32 provided 1 (UInt16), expected 2 ('year' : Number, 'dayofyear' : Number): While processing makeDate32(1980). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001abf4a5d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf29a5 in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:23:14.091493 [ 12025 ] {de0b128f-8fc2-487c-bcff-16f5fb39937b} executeQuery: Code: 42. DB::Exception: Incorrect number of arguments for function makeDate32 provided 4 (UInt16, UInt8, UInt8, UInt8), expected 2 ('year' : Number, 'dayofyear' : Number): While processing makeDate32(1980, 1, 1, 1). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59002) (comment: 02243_make_date32.sql) (in query: select makeDate32(1980, 1, 1, 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001abf4a5d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf29a5 in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:23:14.092307 [ 12025 ] {de0b128f-8fc2-487c-bcff-16f5fb39937b} TCPHandler: Code: 42. DB::Exception: Incorrect number of arguments for function makeDate32 provided 4 (UInt16, UInt8, UInt8, UInt8), expected 2 ('year' : Number, 'dayofyear' : Number): While processing makeDate32(1980, 1, 1, 1). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001abf4a5d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf29a5 in /usr/bin/clickhouse 7. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030e565 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:23:14.273353 [ 12027 ] {02421_truncate_isolation_no_merges_test_rtv8dvd4_tx81_9318} executeQuery: Code: 232. DB::Exception: No part all_2_2_0 in committed state. (NO_SUCH_DATA_PART) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:57682) (in query: alter table tt drop part 'all_2_2_0'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4984: DB::MergeTreeData::checkPartCanBeDropped(String const&) @ 0x000000001de46590 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:5138: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001de48390 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caccc in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 12. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 13. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 14. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:14.274377 [ 12027 ] {02421_truncate_isolation_no_merges_test_rtv8dvd4_tx81_9318} DynamicQueryHandler: Code: 232. DB::Exception: No part all_2_2_0 in committed state. (NO_SUCH_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4984: DB::MergeTreeData::checkPartCanBeDropped(String const&) @ 0x000000001de46590 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:5138: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001de48390 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caccc in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 12. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 13. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 14. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:23:14.372081 [ 12027 ] {02421_truncate_isolation_no_merges_test_rtv8dvd4_tx81_17126} executeQuery: Code: 649. DB::Exception: Cannot execute query because current transaction failed. Expecting ROLLBACK statement. (INVALID_TRANSACTION) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:57698) (in query: select count() from tt), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [86]) @ 0x000000000f1f51be in /usr/bin/clickhouse 6. /build/src/Interpreters/executeQuery.cpp:799: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09db07 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 8. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 9. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 10. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 16. ? @ 0x00007fcde32fbac3 in ? 17. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:14.372886 [ 12027 ] {02421_truncate_isolation_no_merges_test_rtv8dvd4_tx81_17126} DynamicQueryHandler: Code: 649. DB::Exception: Cannot execute query because current transaction failed. Expecting ROLLBACK statement. (INVALID_TRANSACTION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [86]) @ 0x000000000f1f51be in /usr/bin/clickhouse 6. /build/src/Interpreters/executeQuery.cpp:799: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09db07 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 8. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 9. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 10. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 16. ? @ 0x00007fcde32fbac3 in ? 17. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:23:14.390209 [ 12027 ] {02421_truncate_isolation_no_merges_test_rtv8dvd4_tx81_4215} executeQuery: Code: 649. DB::Exception: Transaction is not in RUNNING state. (INVALID_TRANSACTION) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:57710) (in query: commit), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [36]) @ 0x000000000cea6c9e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:56: DB::InterpreterTransactionControlQuery::executeCommit(std::shared_ptr) @ 0x000000001cbe7dd5 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:29: DB::InterpreterTransactionControlQuery::execute() @ 0x000000001cbe794d in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:14.390977 [ 12027 ] {02421_truncate_isolation_no_merges_test_rtv8dvd4_tx81_4215} DynamicQueryHandler: Code: 649. DB::Exception: Transaction is not in RUNNING state. (INVALID_TRANSACTION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [36]) @ 0x000000000cea6c9e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:56: DB::InterpreterTransactionControlQuery::executeCommit(std::shared_ptr) @ 0x000000001cbe7dd5 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterTransactionControlQuery.cpp:29: DB::InterpreterTransactionControlQuery::execute() @ 0x000000001cbe794d in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:23:14.565217 [ 5964 ] {0d0b4539-239d-4707-b755-60ff1b884eb2} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got Date: While processing makeDate(CAST(1980, 'Date'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59038) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(cast(1980 as Date), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.566164 [ 5964 ] {0d0b4539-239d-4707-b755-60ff1b884eb2} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got Date: While processing makeDate(CAST(1980, 'Date'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.575003 [ 5964 ] {48d7319f-391f-4e84-a8b9-8660d05a3d05} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got Date: While processing makeDate(CAST(-1980, 'Date'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59038) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(cast(-1980 as Date), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.575948 [ 5964 ] {48d7319f-391f-4e84-a8b9-8660d05a3d05} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got Date: While processing makeDate(CAST(-1980, 'Date'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.584700 [ 5964 ] {16df0788-fb00-4746-af94-d6069875bbbc} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got Date32: While processing makeDate(CAST(1980, 'Date32'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59038) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(cast(1980 as Date32), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.585776 [ 5964 ] {16df0788-fb00-4746-af94-d6069875bbbc} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got Date32: While processing makeDate(CAST(1980, 'Date32'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.595796 [ 5964 ] {30d47a43-e7d2-4402-b644-fa39fee6a040} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got Date32: While processing makeDate(CAST(-1980, 'Date32'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59038) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(cast(-1980 as Date32), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.596616 [ 5964 ] {30d47a43-e7d2-4402-b644-fa39fee6a040} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got Date32: While processing makeDate(CAST(-1980, 'Date32'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.604665 [ 5964 ] {64c9dbc4-df4b-4874-ae64-b38b4fa4d435} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got DateTime: While processing makeDate(CAST(1980, 'DateTime'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59038) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(cast(1980 as DateTime), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.605484 [ 5964 ] {64c9dbc4-df4b-4874-ae64-b38b4fa4d435} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got DateTime: While processing makeDate(CAST(1980, 'DateTime'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.613319 [ 5964 ] {938c62b0-818c-432e-82fd-a1089e952039} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got DateTime: While processing makeDate(CAST(-1980, 'DateTime'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59038) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(cast(-1980 as DateTime), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.614114 [ 5964 ] {938c62b0-818c-432e-82fd-a1089e952039} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got DateTime: While processing makeDate(CAST(-1980, 'DateTime'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.621813 [ 5964 ] {7cd6a24f-282b-43d6-a0bd-644f80618865} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got DateTime64(3): While processing makeDate(CAST(1980, 'DateTime64'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59038) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(cast(1980 as DateTime64), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.622619 [ 5964 ] {7cd6a24f-282b-43d6-a0bd-644f80618865} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got DateTime64(3): While processing makeDate(CAST(1980, 'DateTime64'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.630329 [ 5964 ] {ea1b9eae-b338-4a7c-886e-018680eac358} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got DateTime64(3): While processing makeDate(CAST(-1980, 'DateTime64'), 10). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59038) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(cast(-1980 as DateTime64), 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.631233 [ 5964 ] {ea1b9eae-b338-4a7c-886e-018680eac358} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got DateTime64(3): While processing makeDate(CAST(-1980, 'DateTime64'), 10). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.637786 [ 5964 ] {6f4f6e67-44d0-42c2-8d87-3047732d94c1} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got String: While processing makeDate('1980', '10'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59038) (comment: 02242_make_date_mysql.sql) (in query: select makeDate('1980', '10');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.638713 [ 5964 ] {6f4f6e67-44d0-42c2-8d87-3047732d94c1} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got String: While processing makeDate('1980', '10'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.645100 [ 5964 ] {8c0fd237-db8c-4582-a464-2e04c0db25b2} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got String: While processing makeDate('-1980', 3). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59038) (comment: 02242_make_date_mysql.sql) (in query: select makeDate('-1980', 3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.645886 [ 5964 ] {8c0fd237-db8c-4582-a464-2e04c0db25b2} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got String: While processing makeDate('-1980', 3). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.652208 [ 5964 ] {38782133-f659-4d51-ba91-48bc139e0cf0} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got String: While processing makeDate('aa', 3). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59038) (comment: 02242_make_date_mysql.sql) (in query: select makeDate('aa', 3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.652975 [ 5964 ] {38782133-f659-4d51-ba91-48bc139e0cf0} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'year' of function makeDate, expected Number, got String: While processing makeDate('aa', 3). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.659338 [ 5964 ] {5192f846-280a-4427-a39b-f2e805242b24} executeQuery: Code: 43. DB::Exception: Illegal type of argument #2 'dayofyear' of function makeDate, expected Number, got String: While processing makeDate(1994, 'aa'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59038) (comment: 02242_make_date_mysql.sql) (in query: select makeDate(1994, 'aa');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:14.660094 [ 5964 ] {5192f846-280a-4427-a39b-f2e805242b24} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #2 'dayofyear' of function makeDate, expected Number, got String: While processing makeDate(1994, 'aa'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/makeDate.cpp:100: DB::(anonymous namespace)::FunctionMakeDate::getReturnTypeImpl(std::vector> const&) const @ 0x000000001030c225 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:23:18.477136 [ 5964 ] {0b7f224a-c0ca-4076-8e11-ed106c47d455} executeQuery: Code: 59. DB::Exception: Invalid type for filter in HAVING: Nothing. In query SELECT (NULL, NULL, NULL, NULL, NULL, NULL, NULL) FROM numbers(0) GROUP BY number WITH TOTALS HAVING sum(number) <= arrayJoin([]). (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59162) (comment: 02233_with_total_empty_chunk.sql) (in query: SELECT (NULL, NULL, NULL, NULL, NULL, NULL, NULL) FROM numbers(0) GROUP BY number WITH TOTALS HAVING sum(number) <= arrayJoin([]) -- { serverError 59 }; ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x000000001b3e6768 in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:31: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000001c98d15e in /usr/bin/clickhouse 7. /build/src/Analyzer/ValidationUtils.cpp:59: DB::validateFilters(std::shared_ptr const&) @ 0x000000001c98d02b in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7113: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c910655 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 11. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:18.478031 [ 5964 ] {0b7f224a-c0ca-4076-8e11-ed106c47d455} TCPHandler: Code: 59. DB::Exception: Invalid type for filter in HAVING: Nothing. In query SELECT (NULL, NULL, NULL, NULL, NULL, NULL, NULL) FROM numbers(0) GROUP BY number WITH TOTALS HAVING sum(number) <= arrayJoin([]). (ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x000000001b3e6768 in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:31: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x000000001c98d15e in /usr/bin/clickhouse 7. /build/src/Analyzer/ValidationUtils.cpp:59: DB::validateFilters(std::shared_ptr const&) @ 0x000000001c98d02b in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7113: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c910655 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 11. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:20.622552 [ 4075 ] {294522cd-d91c-4af4-be36-2388c09c0366} test_gjj89d6p.rmt1 (4f17c3ab-5f25-48cf-aab7-84cd58def94f): while loading part all_0_0_0_1 on path store/4f1/4f17c3ab-5f25-48cf-aab7-84cd58def94f/all_0_0_0_1: Code: 107. DB::Exception: store/4f1/4f17c3ab-5f25-48cf-aab7-84cd58def94f/all_0_0_0_1/data.bin doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, std::__fs::filesystem::path&&) @ 0x000000001def32f3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataPartChecksum.cpp:54: DB::MergeTreeDataPartChecksum::checkSize(DB::IDataPartStorage const&, String const&) const @ 0x000000001def5e56 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataPartChecksum.cpp:96: DB::MergeTreeDataPartChecksums::checkSizes(DB::IDataPartStorage const&) const @ 0x000000001def6577 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/IMergeTreeDataPart.cpp:1876: DB::IMergeTreeDataPart::checkConsistencyBase() const @ 0x000000001dd1afce in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeDataPartCompact.cpp:154: DB::MergeTreeDataPartCompact::checkConsistency(bool) const @ 0x000000001df00407 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/IMergeTreeDataPart.cpp:664: DB::IMergeTreeDataPart::loadColumnsChecksumsIndexes(bool, bool) @ 0x000000001dd0b733 in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeData.cpp:1301: DB::MergeTreeData::loadDataPart(DB::MergeTreePartInfo const&, String const&, std::shared_ptr const&, DB::MergeTreeDataPartState, std::mutex&) @ 0x000000001de05cd3 in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeData.cpp:1441: DB::MergeTreeData::loadDataPartWithRetries(DB::MergeTreePartInfo const&, String const&, std::shared_ptr const&, DB::MergeTreeDataPartState, std::mutex&, unsigned long, unsigned long, unsigned long) @ 0x000000001de0a737 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeData.cpp:1527: DB::MergeTreeData::loadDataPartsFromDisk(std::vector, std::allocator>>&)::$_0::operator()() const @ 0x000000001de82528 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, std::allocator>>&)::$_0&>()()) std::__invoke[abi:v15000], std::allocator>>&)::$_0&>(DB::MergeTreeData::loadDataPartsFromDisk(std::vector, std::allocator>>&)::$_0&) @ 0x000000001de82475 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call, std::allocator>>&)::$_0&>(DB::MergeTreeData::loadDataPartsFromDisk(std::vector, std::allocator>>&)::$_0&) @ 0x000000001de82455 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func, std::allocator>>&)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001de82435 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl, std::allocator>>&)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001de82400 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 20. /build/src/Interpreters/threadPoolCallbackRunner.h:42: std::function (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda'()::operator()() @ 0x000000001b3757bd in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000] (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda'()&>(void&&) @ 0x000000001b375735 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/future:1694: std::__packaged_task_func (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda'(), std::allocator (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda'()>, void ()>::operator()() @ 0x000000001b3754c1 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/future:1876: std::__packaged_task_function::operator()() const @ 0x000000001ab1f77a in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/future:2068: std::packaged_task::operator()() @ 0x000000001ab1f598 in /usr/bin/clickhouse 25. /build/src/Interpreters/threadPoolCallbackRunner.h:50: std::function (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'()::operator()() const @ 0x000000001b375e1d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000] (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'()&>(void&&) @ 0x000000001b375df5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'()&>(std::function (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'()&) @ 0x000000001b375dd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'(), void ()>::operator()[abi:v15000]() @ 0x000000001b375db5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b375d80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:23:20.623856 [ 4075 ] {294522cd-d91c-4af4-be36-2388c09c0366} test_gjj89d6p.rmt1 (4f17c3ab-5f25-48cf-aab7-84cd58def94f): Detaching broken part /var/lib/clickhouse/store/4f1/4f17c3ab-5f25-48cf-aab7-84cd58def94f/all_0_0_0_1 (size: 390.00 B). If it happened after update, it is likely because of backward incompatibility. You need to resolve this manually 2024.05.01 13:23:20.628392 [ 4075 ] {294522cd-d91c-4af4-be36-2388c09c0366} test_gjj89d6p.rmt1 (4f17c3ab-5f25-48cf-aab7-84cd58def94f): while loading part all_0_0_0 on path store/4f1/4f17c3ab-5f25-48cf-aab7-84cd58def94f/all_0_0_0: Code: 107. DB::Exception: store/4f1/4f17c3ab-5f25-48cf-aab7-84cd58def94f/all_0_0_0/data.bin doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, std::__fs::filesystem::path&&) @ 0x000000001def32f3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataPartChecksum.cpp:54: DB::MergeTreeDataPartChecksum::checkSize(DB::IDataPartStorage const&, String const&) const @ 0x000000001def5e56 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataPartChecksum.cpp:96: DB::MergeTreeDataPartChecksums::checkSizes(DB::IDataPartStorage const&) const @ 0x000000001def6577 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/IMergeTreeDataPart.cpp:1876: DB::IMergeTreeDataPart::checkConsistencyBase() const @ 0x000000001dd1afce in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeDataPartCompact.cpp:154: DB::MergeTreeDataPartCompact::checkConsistency(bool) const @ 0x000000001df00407 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/IMergeTreeDataPart.cpp:664: DB::IMergeTreeDataPart::loadColumnsChecksumsIndexes(bool, bool) @ 0x000000001dd0b733 in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeData.cpp:1301: DB::MergeTreeData::loadDataPart(DB::MergeTreePartInfo const&, String const&, std::shared_ptr const&, DB::MergeTreeDataPartState, std::mutex&) @ 0x000000001de05cd3 in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeData.cpp:1441: DB::MergeTreeData::loadDataPartWithRetries(DB::MergeTreePartInfo const&, String const&, std::shared_ptr const&, DB::MergeTreeDataPartState, std::mutex&, unsigned long, unsigned long, unsigned long) @ 0x000000001de0a737 in /usr/bin/clickhouse 13. /build/src/Storages/MergeTree/MergeTreeData.cpp:1527: DB::MergeTreeData::loadDataPartsFromDisk(std::vector, std::allocator>>&)::$_0::operator()() const @ 0x000000001de82528 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, std::allocator>>&)::$_0&>()()) std::__invoke[abi:v15000], std::allocator>>&)::$_0&>(DB::MergeTreeData::loadDataPartsFromDisk(std::vector, std::allocator>>&)::$_0&) @ 0x000000001de82475 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call, std::allocator>>&)::$_0&>(DB::MergeTreeData::loadDataPartsFromDisk(std::vector, std::allocator>>&)::$_0&) @ 0x000000001de82455 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func, std::allocator>>&)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001de82435 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl, std::allocator>>&)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001de82400 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 20. /build/src/Interpreters/threadPoolCallbackRunner.h:42: std::function (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda'()::operator()() @ 0x000000001b3757bd in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000] (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda'()&>(void&&) @ 0x000000001b375735 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/future:1694: std::__packaged_task_func (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda'(), std::allocator (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda'()>, void ()>::operator()() @ 0x000000001b3754c1 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/future:1876: std::__packaged_task_function::operator()() const @ 0x000000001ab1f77a in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/future:2068: std::packaged_task::operator()() @ 0x000000001ab1f598 in /usr/bin/clickhouse 25. /build/src/Interpreters/threadPoolCallbackRunner.h:50: std::function (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'()::operator()() const @ 0x000000001b375e1d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000] (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'()&>(void&&) @ 0x000000001b375df5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'()&>(std::function (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'()&) @ 0x000000001b375dd5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'(), void ()>::operator()[abi:v15000]() @ 0x000000001b375db5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl (std::function&&, Priority)> DB::threadPoolCallbackRunner>(ThreadPoolImpl>&, String const&)::'lambda'(std::function&&, Priority)::operator()(std::function&&, Priority)::'lambda0'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b375d80 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:23:20.629423 [ 4075 ] {294522cd-d91c-4af4-be36-2388c09c0366} test_gjj89d6p.rmt1 (4f17c3ab-5f25-48cf-aab7-84cd58def94f): Detaching broken part /var/lib/clickhouse/store/4f1/4f17c3ab-5f25-48cf-aab7-84cd58def94f/all_0_0_0 (size: 390.00 B). If it happened after update, it is likely because of backward incompatibility. You need to resolve this manually 2024.05.01 13:23:20.660054 [ 755 ] {} test_gjj89d6p.rmt1 (4f17c3ab-5f25-48cf-aab7-84cd58def94f): Detached 0 parts covered by broken part all_0_0_0_1: 2024.05.01 13:23:20.664556 [ 755 ] {} test_gjj89d6p.rmt1 (4f17c3ab-5f25-48cf-aab7-84cd58def94f): Detached 0 parts covered by broken part all_0_0_0: 2024.05.01 13:23:21.276375 [ 12024 ] {faa7fffe-ff8b-4658-8265-b731e1f5af95} executeQuery: Code: 10. DB::Exception: Not found column _part in block order_0 UInt64 UInt64(size = 0), granule UInt8 UInt8(size = 0). (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59122) (comment: 02235_add_part_offset_virtual_column.sql) (in query: SELECT count(*), sum(_part_offset), sum(order_0) from t_1 prewhere _part != '' where granule == 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsDAG.cpp:656: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc7f49d in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:636: DB::IMergeTreeSelectAlgorithm::applyPrewhereActions(DB::Block, std::shared_ptr const&) @ 0x000000001e0c4ec4 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:671: DB::IMergeTreeSelectAlgorithm::transformHeader(DB::Block, std::shared_ptr const&, std::shared_ptr const&, std::vector> const&) @ 0x000000001e0c8817 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:254: DB::ReadFromMergeTree::ReadFromMergeTree(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector>, std::vector>, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr, std::shared_ptr, unsigned long, unsigned long, bool, std::shared_ptr, std::equal_to, std::allocator>>>, Poco::Logger*, std::shared_ptr, bool) @ 0x000000001ee2c84d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000], std::allocator>>, std::vector, std::allocator>>, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&>(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&) @ 0x000000001df58338 in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1304: DB::MergeTreeDataSelectExecutor::readFromParts(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, std::shared_ptr, bool) const @ 0x000000001df4590b in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:168: DB::MergeTreeDataSelectExecutor::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, DB::QueryProcessingStage::Enum, std::shared_ptr, std::equal_to, std::allocator>>>, bool) const @ 0x000000001df4216c in /usr/bin/clickhouse 13. /build/src/Storages/StorageMergeTree.cpp:252: DB::StorageMergeTree::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001e2fa2bf in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:21.277461 [ 12024 ] {faa7fffe-ff8b-4658-8265-b731e1f5af95} TCPHandler: Code: 10. DB::Exception: Not found column _part in block order_0 UInt64 UInt64(size = 0), granule UInt8 UInt8(size = 0). (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsDAG.cpp:656: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc7f49d in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:636: DB::IMergeTreeSelectAlgorithm::applyPrewhereActions(DB::Block, std::shared_ptr const&) @ 0x000000001e0c4ec4 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:671: DB::IMergeTreeSelectAlgorithm::transformHeader(DB::Block, std::shared_ptr const&, std::shared_ptr const&, std::vector> const&) @ 0x000000001e0c8817 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:254: DB::ReadFromMergeTree::ReadFromMergeTree(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector>, std::vector>, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr, std::shared_ptr, unsigned long, unsigned long, bool, std::shared_ptr, std::equal_to, std::allocator>>>, Poco::Logger*, std::shared_ptr, bool) @ 0x000000001ee2c84d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000], std::allocator>>, std::vector, std::allocator>>, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&>(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&) @ 0x000000001df58338 in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1304: DB::MergeTreeDataSelectExecutor::readFromParts(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, std::shared_ptr, bool) const @ 0x000000001df4590b in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:168: DB::MergeTreeDataSelectExecutor::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, DB::QueryProcessingStage::Enum, std::shared_ptr, std::equal_to, std::allocator>>>, bool) const @ 0x000000001df4216c in /usr/bin/clickhouse 13. /build/src/Storages/StorageMergeTree.cpp:252: DB::StorageMergeTree::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001e2fa2bf in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:21.297088 [ 12024 ] {08ed2e9f-a4dc-4fc2-9866-85af758dcd08} executeQuery: Code: 10. DB::Exception: Not found column _part_offset in block order_0 UInt64 UInt64(size = 0), granule UInt8 UInt8(size = 0). (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59122) (comment: 02235_add_part_offset_virtual_column.sql) (in query: SELECT count(*), sum(_part_offset), sum(order_0) from t_1 prewhere _part_offset > 100000 where granule == 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsDAG.cpp:656: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc7f49d in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:636: DB::IMergeTreeSelectAlgorithm::applyPrewhereActions(DB::Block, std::shared_ptr const&) @ 0x000000001e0c4ec4 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:671: DB::IMergeTreeSelectAlgorithm::transformHeader(DB::Block, std::shared_ptr const&, std::shared_ptr const&, std::vector> const&) @ 0x000000001e0c8817 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:254: DB::ReadFromMergeTree::ReadFromMergeTree(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector>, std::vector>, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr, std::shared_ptr, unsigned long, unsigned long, bool, std::shared_ptr, std::equal_to, std::allocator>>>, Poco::Logger*, std::shared_ptr, bool) @ 0x000000001ee2c84d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000], std::allocator>>, std::vector, std::allocator>>, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&>(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&) @ 0x000000001df58338 in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1304: DB::MergeTreeDataSelectExecutor::readFromParts(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, std::shared_ptr, bool) const @ 0x000000001df4590b in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:168: DB::MergeTreeDataSelectExecutor::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, DB::QueryProcessingStage::Enum, std::shared_ptr, std::equal_to, std::allocator>>>, bool) const @ 0x000000001df4216c in /usr/bin/clickhouse 13. /build/src/Storages/StorageMergeTree.cpp:252: DB::StorageMergeTree::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001e2fa2bf in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:21.298227 [ 12024 ] {08ed2e9f-a4dc-4fc2-9866-85af758dcd08} TCPHandler: Code: 10. DB::Exception: Not found column _part_offset in block order_0 UInt64 UInt64(size = 0), granule UInt8 UInt8(size = 0). (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsDAG.cpp:656: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc7f49d in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:636: DB::IMergeTreeSelectAlgorithm::applyPrewhereActions(DB::Block, std::shared_ptr const&) @ 0x000000001e0c4ec4 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:671: DB::IMergeTreeSelectAlgorithm::transformHeader(DB::Block, std::shared_ptr const&, std::shared_ptr const&, std::vector> const&) @ 0x000000001e0c8817 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:254: DB::ReadFromMergeTree::ReadFromMergeTree(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector>, std::vector>, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr, std::shared_ptr, unsigned long, unsigned long, bool, std::shared_ptr, std::equal_to, std::allocator>>>, Poco::Logger*, std::shared_ptr, bool) @ 0x000000001ee2c84d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000], std::allocator>>, std::vector, std::allocator>>, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&>(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&) @ 0x000000001df58338 in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1304: DB::MergeTreeDataSelectExecutor::readFromParts(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, std::shared_ptr, bool) const @ 0x000000001df4590b in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:168: DB::MergeTreeDataSelectExecutor::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, DB::QueryProcessingStage::Enum, std::shared_ptr, std::equal_to, std::allocator>>>, bool) const @ 0x000000001df4216c in /usr/bin/clickhouse 13. /build/src/Storages/StorageMergeTree.cpp:252: DB::StorageMergeTree::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001e2fa2bf in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:28.762058 [ 12034 ] {6c3f9e32-3933-4e2c-ad3e-020d8ce373df} executeQuery: Code: 69. DB::Exception: The argument 'resolution' (20) of function h3GetPentagonIndexes is out of bounds because the maximum resolution in H3 library is 15: While processing h3GetPentagonIndexes(20) AS indexes. (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:57084) (comment: 02212_h3_get_pentagon_indexes.sql) (in query: SELECT h3GetPentagonIndexes(20) AS indexes;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e470988 in /usr/bin/clickhouse 6. /build/src/Functions/h3GetPentagonIndexes.cpp:84: DB::(anonymous namespace)::FunctionH3GetPentagonIndexes::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eed8b72 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:23:28.763183 [ 12034 ] {6c3f9e32-3933-4e2c-ad3e-020d8ce373df} TCPHandler: Code: 69. DB::Exception: The argument 'resolution' (20) of function h3GetPentagonIndexes is out of bounds because the maximum resolution in H3 library is 15: While processing h3GetPentagonIndexes(20) AS indexes. (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e470988 in /usr/bin/clickhouse 6. /build/src/Functions/h3GetPentagonIndexes.cpp:84: DB::(anonymous namespace)::FunctionH3GetPentagonIndexes::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eed8b72 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:23:31.160546 [ 1080 ] {7be4cf36-d8da-437c-88f3-821083a12bdb} executeQuery: Code: 36. DB::Exception: Wrong index name. Cannot find index `test_indes` to drop, may be you meant: ['test_index']. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37864) (comment: 02225_hints_for_indeices.sh) (in query: ALTER TABLE t DROP INDEX test_indes), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000d9e3f0c in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:555: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d578dd3 in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d57bba5 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de29e2c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:31.162693 [ 1080 ] {7be4cf36-d8da-437c-88f3-821083a12bdb} TCPHandler: Code: 36. DB::Exception: Wrong index name. Cannot find index `test_indes` to drop, may be you meant: ['test_index']. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000d9e3f0c in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:555: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d578dd3 in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d57bba5 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de29e2c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:33.262922 [ 12037 ] {3dc4b48b-4d80-4e69-b39c-258fccb20acf} executeQuery: Code: 36. DB::Exception: Wrong index name. Cannot find index `test_indes` to insert after, may be you meant: ['test_index']. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37924) (comment: 02225_hints_for_indeices.sh) (in query: ALTER TABLE t ADD INDEX test_index1 n TYPE minmax GRANULARITY 4 AFTER test_indes), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000d9e3f0c in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:528: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d57893d in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d57bba5 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de29e2c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:33.264475 [ 12037 ] {3dc4b48b-4d80-4e69-b39c-258fccb20acf} TCPHandler: Code: 36. DB::Exception: Wrong index name. Cannot find index `test_indes` to insert after, may be you meant: ['test_index']. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000d9e3f0c in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:528: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d57893d in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d57bba5 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de29e2c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:36.580859 [ 1080 ] {99235e71-36c0-4586-b4f4-acf5e00d9c0f} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 10.00. (TOO_MANY_ROWS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37990) (comment: 02201_use_skip_indexes_if_final.sql) (in query: -- { echoOn } SELECT * FROM data_02201 FINAL WHERE value = 1 SETTINGS use_skip_indexes=0, use_skip_indexes_if_final=0, max_rows_to_read=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:36.582070 [ 1080 ] {99235e71-36c0-4586-b4f4-acf5e00d9c0f} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 10.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:36.599354 [ 1080 ] {8afe050e-5133-4195-a6b2-f45d781f8671} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 10.00. (TOO_MANY_ROWS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37990) (comment: 02201_use_skip_indexes_if_final.sql) (in query: SELECT * FROM data_02201 FINAL WHERE value = 1 SETTINGS use_skip_indexes=1, use_skip_indexes_if_final=0, max_rows_to_read=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:36.600083 [ 1080 ] {8afe050e-5133-4195-a6b2-f45d781f8671} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 10.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:36.617431 [ 1080 ] {29a0c88b-b523-4bf4-beb0-4129c3e8fb51} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 10.00. (TOO_MANY_ROWS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37990) (comment: 02201_use_skip_indexes_if_final.sql) (in query: SELECT * FROM data_02201 FINAL WHERE value = 1 SETTINGS use_skip_indexes=0, use_skip_indexes_if_final=1, max_rows_to_read=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:36.624293 [ 1080 ] {29a0c88b-b523-4bf4-beb0-4129c3e8fb51} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 10.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:39.720550 [ 1080 ] {47600fbb-9e3e-4820-9c73-6ad36325d0c6} executeQuery: Code: 43. DB::Exception: Illegal type Array(UInt8) of argument of function toUInt64: While processing dictGet('02176_test_simple_key_dictionary', 'value', [0]). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36584) (comment: 02176_dict_get_has_implicit_key_cast.sql) (in query: SELECT dictGet('02176_test_simple_key_dictionary', 'value', [0]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0b46 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 25. /build/src/Interpreters/castColumn.cpp:35: COW::immutable_ptr DB::castColumn<(DB::CastType)1>(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d041ba3 in /usr/bin/clickhouse 26. /build/src/Interpreters/castColumn.cpp:46: DB::castColumnAccurate(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d041788 in /usr/bin/clickhouse 27. /build/src/Dictionaries/IDictionary.h:161: DB::IDictionary::convertKeyColumns(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, std::vector, std::allocator>>&) const @ 0x0000000017cfd9c0 in /usr/bin/clickhouse 28. /build/src/Functions/FunctionsExternalDictionaries.h:564: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc52d05 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 30. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 2024.05.01 13:23:39.721450 [ 1080 ] {47600fbb-9e3e-4820-9c73-6ad36325d0c6} TCPHandler: Code: 43. DB::Exception: Illegal type Array(UInt8) of argument of function toUInt64: While processing dictGet('02176_test_simple_key_dictionary', 'value', [0]). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0b46 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 25. /build/src/Interpreters/castColumn.cpp:35: COW::immutable_ptr DB::castColumn<(DB::CastType)1>(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d041ba3 in /usr/bin/clickhouse 26. /build/src/Interpreters/castColumn.cpp:46: DB::castColumnAccurate(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d041788 in /usr/bin/clickhouse 27. /build/src/Dictionaries/IDictionary.h:161: DB::IDictionary::convertKeyColumns(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, std::vector, std::allocator>>&) const @ 0x0000000017cfd9c0 in /usr/bin/clickhouse 28. /build/src/Functions/FunctionsExternalDictionaries.h:564: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc52d05 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 30. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 2024.05.01 13:23:39.920323 [ 1080 ] {67c0024c-c0bf-4451-b803-a0e226bfa551} executeQuery: Code: 43. DB::Exception: Illegal type Array(UInt8) of argument of function toUInt64: While processing dictHas('02176_test_simple_key_dictionary', [0]). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36584) (comment: 02176_dict_get_has_implicit_key_cast.sql) (in query: SELECT dictHas('02176_test_simple_key_dictionary', [0]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0b46 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 25. /build/src/Interpreters/castColumn.cpp:35: COW::immutable_ptr DB::castColumn<(DB::CastType)1>(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d041ba3 in /usr/bin/clickhouse 26. /build/src/Interpreters/castColumn.cpp:46: DB::castColumnAccurate(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d041788 in /usr/bin/clickhouse 27. /build/src/Dictionaries/IDictionary.h:161: DB::IDictionary::convertKeyColumns(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, std::vector, std::allocator>>&) const @ 0x0000000017cfd9c0 in /usr/bin/clickhouse 28. /build/src/Functions/FunctionsExternalDictionaries.h:281: DB::FunctionDictHas::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc62403 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 30. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 2024.05.01 13:23:39.921300 [ 1080 ] {67c0024c-c0bf-4451-b803-a0e226bfa551} TCPHandler: Code: 43. DB::Exception: Illegal type Array(UInt8) of argument of function toUInt64: While processing dictHas('02176_test_simple_key_dictionary', [0]). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0b46 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 25. /build/src/Interpreters/castColumn.cpp:35: COW::immutable_ptr DB::castColumn<(DB::CastType)1>(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d041ba3 in /usr/bin/clickhouse 26. /build/src/Interpreters/castColumn.cpp:46: DB::castColumnAccurate(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d041788 in /usr/bin/clickhouse 27. /build/src/Dictionaries/IDictionary.h:161: DB::IDictionary::convertKeyColumns(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, std::vector, std::allocator>>&) const @ 0x0000000017cfd9c0 in /usr/bin/clickhouse 28. /build/src/Functions/FunctionsExternalDictionaries.h:281: DB::FunctionDictHas::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc62403 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 30. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 2024.05.01 13:23:40.165320 [ 1080 ] {a8889d63-7f6e-4c1b-8346-4c6a4d59e968} executeQuery: Code: 43. DB::Exception: Illegal type Array(UInt8) of argument of function toUInt64: While processing dictGet('02176_test_complex_key_dictionary', 'value', ([0], '0')). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36584) (comment: 02176_dict_get_has_implicit_key_cast.sql) (in query: SELECT dictGet('02176_test_complex_key_dictionary', 'value', tuple([0], '0'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0b46 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 25. /build/src/Interpreters/castColumn.cpp:35: COW::immutable_ptr DB::castColumn<(DB::CastType)1>(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d041ba3 in /usr/bin/clickhouse 26. /build/src/Interpreters/castColumn.cpp:46: DB::castColumnAccurate(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d041788 in /usr/bin/clickhouse 27. /build/src/Dictionaries/IDictionary.h:161: DB::IDictionary::convertKeyColumns(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, std::vector, std::allocator>>&) const @ 0x0000000017cfd9c0 in /usr/bin/clickhouse 28. /build/src/Functions/FunctionsExternalDictionaries.h:564: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc52d05 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 30. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 2024.05.01 13:23:40.166234 [ 1080 ] {a8889d63-7f6e-4c1b-8346-4c6a4d59e968} TCPHandler: Code: 43. DB::Exception: Illegal type Array(UInt8) of argument of function toUInt64: While processing dictGet('02176_test_complex_key_dictionary', 'value', ([0], '0')). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0b46 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 25. /build/src/Interpreters/castColumn.cpp:35: COW::immutable_ptr DB::castColumn<(DB::CastType)1>(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d041ba3 in /usr/bin/clickhouse 26. /build/src/Interpreters/castColumn.cpp:46: DB::castColumnAccurate(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d041788 in /usr/bin/clickhouse 27. /build/src/Dictionaries/IDictionary.h:161: DB::IDictionary::convertKeyColumns(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, std::vector, std::allocator>>&) const @ 0x0000000017cfd9c0 in /usr/bin/clickhouse 28. /build/src/Functions/FunctionsExternalDictionaries.h:564: DB::FunctionDictGetNoType<(DB::DictionaryGetFunctionType)0>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc52d05 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 30. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 2024.05.01 13:23:40.365689 [ 1080 ] {7337ea63-42a5-4073-9c3d-3c2a79dcfbe8} executeQuery: Code: 43. DB::Exception: Illegal type Array(UInt8) of argument of function toUInt64: While processing dictHas('02176_test_complex_key_dictionary', ([0], '0')). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36584) (comment: 02176_dict_get_has_implicit_key_cast.sql) (in query: SELECT dictHas('02176_test_complex_key_dictionary', tuple([0], '0'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0b46 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 25. /build/src/Interpreters/castColumn.cpp:35: COW::immutable_ptr DB::castColumn<(DB::CastType)1>(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d041ba3 in /usr/bin/clickhouse 26. /build/src/Interpreters/castColumn.cpp:46: DB::castColumnAccurate(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d041788 in /usr/bin/clickhouse 27. /build/src/Dictionaries/IDictionary.h:161: DB::IDictionary::convertKeyColumns(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, std::vector, std::allocator>>&) const @ 0x0000000017cfd9c0 in /usr/bin/clickhouse 28. /build/src/Functions/FunctionsExternalDictionaries.h:281: DB::FunctionDictHas::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc62403 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 30. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 2024.05.01 13:23:40.366589 [ 1080 ] {7337ea63-42a5-4073-9c3d-3c2a79dcfbe8} TCPHandler: Code: 43. DB::Exception: Illegal type Array(UInt8) of argument of function toUInt64: While processing dictHas('02176_test_complex_key_dictionary', ([0], '0')). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0b46 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 25. /build/src/Interpreters/castColumn.cpp:35: COW::immutable_ptr DB::castColumn<(DB::CastType)1>(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d041ba3 in /usr/bin/clickhouse 26. /build/src/Interpreters/castColumn.cpp:46: DB::castColumnAccurate(DB::ColumnWithTypeAndName const&, std::shared_ptr const&) @ 0x000000001d041788 in /usr/bin/clickhouse 27. /build/src/Dictionaries/IDictionary.h:161: DB::IDictionary::convertKeyColumns(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, std::vector, std::allocator>>&) const @ 0x0000000017cfd9c0 in /usr/bin/clickhouse 28. /build/src/Functions/FunctionsExternalDictionaries.h:281: DB::FunctionDictHas::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc62403 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 30. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 2024.05.01 13:23:42.009721 [ 12028 ] {8bb5917f-6ca6-488d-acdb-ae4ae2159bb2} executeQuery: Code: 69. DB::Exception: The argument 'resolution' (16) of function h3NumHexagons is out of bounds because the maximum resolution in H3 library is 15: While processing h3NumHexagons(16). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36640) (comment: 02165_h3_num_hexagons.sql) (in query: SELECT h3NumHexagons(16);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e470988 in /usr/bin/clickhouse 6. /build/src/Functions/h3NumHexagons.cpp:78: DB::(anonymous namespace)::FunctionH3NumHexagons::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eef0b5e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:23:42.011197 [ 12028 ] {8bb5917f-6ca6-488d-acdb-ae4ae2159bb2} TCPHandler: Code: 69. DB::Exception: The argument 'resolution' (16) of function h3NumHexagons is out of bounds because the maximum resolution in H3 library is 15: While processing h3NumHexagons(16). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e470988 in /usr/bin/clickhouse 6. /build/src/Functions/h3NumHexagons.cpp:78: DB::(anonymous namespace)::FunctionH3NumHexagons::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eef0b5e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:23:44.693640 [ 12026 ] {17227b3c-f0c3-4213-93bf-2bb3b12bdf32} executeQuery: Code: 48. DB::Exception: Alter of type 'COMMENT_COLUMN' is not supported by storage Dictionary. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36714) (comment: 02155_dictionary_comment.sql) (in query: ALTER TABLE 02155_test_dictionary COMMENT COLUMN value 'value_column';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af3de8c in /usr/bin/clickhouse 6. /build/src/Storages/StorageDictionary.cpp:281: DB::StorageDictionary::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d63c494 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:44.694461 [ 12026 ] {17227b3c-f0c3-4213-93bf-2bb3b12bdf32} TCPHandler: Code: 48. DB::Exception: Alter of type 'COMMENT_COLUMN' is not supported by storage Dictionary. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af3de8c in /usr/bin/clickhouse 6. /build/src/Storages/StorageDictionary.cpp:281: DB::StorageDictionary::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d63c494 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:45.090210 [ 12026 ] {1857db44-5271-4119-ad08-6d1292ced7e8} executeQuery: Code: 48. DB::Exception: Alter of type 'COMMENT_COLUMN' is not supported by storage Dictionary. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36714) (comment: 02155_dictionary_comment.sql) (in query: ALTER TABLE 02155_test_dictionary_view COMMENT COLUMN value 'value_column';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af3de8c in /usr/bin/clickhouse 6. /build/src/Storages/StorageDictionary.cpp:281: DB::StorageDictionary::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d63c494 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:45.090763 [ 12026 ] {1857db44-5271-4119-ad08-6d1292ced7e8} TCPHandler: Code: 48. DB::Exception: Alter of type 'COMMENT_COLUMN' is not supported by storage Dictionary. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af3de8c in /usr/bin/clickhouse 6. /build/src/Storages/StorageDictionary.cpp:281: DB::StorageDictionary::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d63c494 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:46.619417 [ 12026 ] {460e7b2d-e58b-4fcb-bffb-02d0d9c3c4a3} executeQuery: Code: 164. DB::Exception: default: Cannot execute query in readonly mode. (READONLY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36734) (comment: 02157_readonly_system_suspend.sh) (in query: SYSTEM SUSPEND FOR 1 SECOND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:517: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b043357 in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:598: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b0414bb in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:622: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b014cc2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:695: DB::ContextAccess::checkAccess(DB::AccessFlags const&) const @ 0x000000001b0103bd in /usr/bin/clickhouse 10. /build/src/Interpreters/Context.cpp:1186: void DB::Context::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001bdda196 in /usr/bin/clickhouse 11. /build/src/Interpreters/Context.cpp:1189: DB::Context::checkAccess(DB::AccessFlags const&) const @ 0x000000001bdbacfd in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSystemQuery.cpp:298: DB::InterpreterSystemQuery::execute() @ 0x000000001cbc8385 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:46.620096 [ 12026 ] {460e7b2d-e58b-4fcb-bffb-02d0d9c3c4a3} TCPHandler: Code: 164. DB::Exception: default: Cannot execute query in readonly mode. (READONLY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:517: auto bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()<>(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b043357 in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:598: bool DB::ContextAccess::checkAccessImplHelper(DB::AccessFlags) const @ 0x000000001b0414bb in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:622: bool DB::ContextAccess::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001b014cc2 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:695: DB::ContextAccess::checkAccess(DB::AccessFlags const&) const @ 0x000000001b0103bd in /usr/bin/clickhouse 10. /build/src/Interpreters/Context.cpp:1186: void DB::Context::checkAccessImpl(DB::AccessFlags const&) const @ 0x000000001bdda196 in /usr/bin/clickhouse 11. /build/src/Interpreters/Context.cpp:1189: DB::Context::checkAccess(DB::AccessFlags const&) const @ 0x000000001bdbacfd in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSystemQuery.cpp:298: DB::InterpreterSystemQuery::execute() @ 0x000000001cbc8385 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:53.279964 [ 12036 ] {test_fki88ikc_TEST02132KILL_QUERY1} executeQuery: Code: 394. DB::Exception: Query was cancelled: While processing (SELECT max(number) FROM system.numbers) AS _subquery27: While processing ((SELECT max(number) FROM system.numbers) AS _subquery27) + 1. (QUERY_WAS_CANCELLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59656) (comment: 02136_kill_scalar_queries.sh) (in query: select (SELECT max(number) from system.numbers) + 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:53.281857 [ 12036 ] {test_fki88ikc_TEST02132KILL_QUERY1} TCPHandler: Code: 394. DB::Exception: Query was cancelled: While processing (SELECT max(number) FROM system.numbers) AS _subquery27: While processing ((SELECT max(number) FROM system.numbers) AS _subquery27) + 1. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:56.330530 [ 1133 ] {9cb4853a-d8c7-4b25-89a2-aa52e32e4503} executeQuery: Code: 53. DB::Exception: Function dictGetString dictionary attribute has different type Nullable(String) expected String: While processing dictGetString('02125_test_dictionary', 'value', toUInt64(0)). (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59776) (comment: 02125_dict_get_type_nullable_fix.sql) (in query: SELECT dictGetString('02125_test_dictionary', 'value', toUInt64(0));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:739: DB::FunctionDictGetImpl::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc7aba8 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:23:56.331472 [ 1133 ] {9cb4853a-d8c7-4b25-89a2-aa52e32e4503} TCPHandler: Code: 53. DB::Exception: Function dictGetString dictionary attribute has different type Nullable(String) expected String: While processing dictGetString('02125_test_dictionary', 'value', toUInt64(0)). (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsExternalDictionaries.h:739: DB::FunctionDictGetImpl::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000bc7aba8 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:23:57.044941 [ 12024 ] {test_fki88ikc_TEST02132KILL_QUERY2} executeQuery: Code: 394. DB::Exception: Query was cancelled: While processing (SELECT number FROM system.numbers WHERE number = 1000000000000) AS _subquery28. (QUERY_WAS_CANCELLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59758) (comment: 02136_kill_scalar_queries.sh) (in query: SELECT (SELECT number FROM system.numbers WHERE number = 1000000000000);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:57.046659 [ 12024 ] {test_fki88ikc_TEST02132KILL_QUERY2} TCPHandler: Code: 394. DB::Exception: Query was cancelled: While processing (SELECT number FROM system.numbers WHERE number = 1000000000000) AS _subquery28. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:23:57.991828 [ 12023 ] {a7065fa6-3850-4229-848e-ba6937c219ea} executeQuery: Code: 252. DB::Exception: Too many partitions for single INSERT block (more than 1). The limit is controlled by 'max_partitions_per_insert_block' setting. Large number of partitions is a common misconception. It will lead to severe negative performance impact, including slow server startup, slow INSERT queries and slow SELECT queries. Recommended total number of partitions for a table is under 1000..10000. Please note, that partitioning is not intended to speed up SELECT queries (ORDER BY key is sufficient to make range queries fast). Partitions are intended for data manipulation (DROP PARTITION, etc).: while pushing to view test_v9d8zx1a.test_mv_b (45e0f2c0-bc18-42aa-b65c-3de340ca6516). (TOO_MANY_PARTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59790) (comment: 02124_insert_deduplication_token_materialized_views.sql) (in query: INSERT INTO test SELECT 'case1', number%3, 1 FROM numbers(9);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:85: DB::(anonymous namespace)::buildScatterSelector(std::vector> const&, DB::PODArray, 0ul, 0ul>&, DB::PODArray, 63ul, 64ul>&, unsigned long, std::shared_ptr) @ 0x000000001e1813dd in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:262: DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::shared_ptr const&, std::shared_ptr, std::shared_ptr) @ 0x000000001e17f95c in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:284: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b7765 in /usr/bin/clickhouse 9. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 26. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e665267 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6651d5 in /usr/bin/clickhouse 2024.05.01 13:23:57.995609 [ 12023 ] {a7065fa6-3850-4229-848e-ba6937c219ea} TCPHandler: Code: 252. DB::Exception: Too many partitions for single INSERT block (more than 1). The limit is controlled by 'max_partitions_per_insert_block' setting. Large number of partitions is a common misconception. It will lead to severe negative performance impact, including slow server startup, slow INSERT queries and slow SELECT queries. Recommended total number of partitions for a table is under 1000..10000. Please note, that partitioning is not intended to speed up SELECT queries (ORDER BY key is sufficient to make range queries fast). Partitions are intended for data manipulation (DROP PARTITION, etc).: while pushing to view test_v9d8zx1a.test_mv_b (45e0f2c0-bc18-42aa-b65c-3de340ca6516). (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:85: DB::(anonymous namespace)::buildScatterSelector(std::vector> const&, DB::PODArray, 0ul, 0ul>&, DB::PODArray, 63ul, 64ul>&, unsigned long, std::shared_ptr) @ 0x000000001e1813dd in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:262: DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::shared_ptr const&, std::shared_ptr, std::shared_ptr) @ 0x000000001e17f95c in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:284: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b7765 in /usr/bin/clickhouse 9. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 26. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e665267 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6651d5 in /usr/bin/clickhouse 2024.05.01 13:23:58.832164 [ 12023 ] {b5b1c961-d12c-481b-8003-7194d716e7bd} executeQuery: Code: 252. DB::Exception: Too many partitions for single INSERT block (more than 1). The limit is controlled by 'max_partitions_per_insert_block' setting. Large number of partitions is a common misconception. It will lead to severe negative performance impact, including slow server startup, slow INSERT queries and slow SELECT queries. Recommended total number of partitions for a table is under 1000..10000. Please note, that partitioning is not intended to speed up SELECT queries (ORDER BY key is sufficient to make range queries fast). Partitions are intended for data manipulation (DROP PARTITION, etc).: while pushing to view test_v9d8zx1a.test_mv_b (45e0f2c0-bc18-42aa-b65c-3de340ca6516). (TOO_MANY_PARTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59790) (comment: 02124_insert_deduplication_token_materialized_views.sql) (in query: INSERT INTO test SELECT 'case2', number%3, 1 FROM numbers(9) ;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:85: DB::(anonymous namespace)::buildScatterSelector(std::vector> const&, DB::PODArray, 0ul, 0ul>&, DB::PODArray, 63ul, 64ul>&, unsigned long, std::shared_ptr) @ 0x000000001e1813dd in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:262: DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::shared_ptr const&, std::shared_ptr, std::shared_ptr) @ 0x000000001e17f95c in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:284: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b7765 in /usr/bin/clickhouse 9. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 26. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e665267 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6651d5 in /usr/bin/clickhouse 2024.05.01 13:23:58.836419 [ 12023 ] {b5b1c961-d12c-481b-8003-7194d716e7bd} TCPHandler: Code: 252. DB::Exception: Too many partitions for single INSERT block (more than 1). The limit is controlled by 'max_partitions_per_insert_block' setting. Large number of partitions is a common misconception. It will lead to severe negative performance impact, including slow server startup, slow INSERT queries and slow SELECT queries. Recommended total number of partitions for a table is under 1000..10000. Please note, that partitioning is not intended to speed up SELECT queries (ORDER BY key is sufficient to make range queries fast). Partitions are intended for data manipulation (DROP PARTITION, etc).: while pushing to view test_v9d8zx1a.test_mv_b (45e0f2c0-bc18-42aa-b65c-3de340ca6516). (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:85: DB::(anonymous namespace)::buildScatterSelector(std::vector> const&, DB::PODArray, 0ul, 0ul>&, DB::PODArray, 63ul, 64ul>&, unsigned long, std::shared_ptr) @ 0x000000001e1813dd in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:262: DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::shared_ptr const&, std::shared_ptr, std::shared_ptr) @ 0x000000001e17f95c in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:284: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b7765 in /usr/bin/clickhouse 9. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 26. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e665267 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6651d5 in /usr/bin/clickhouse 2024.05.01 13:23:59.926375 [ 12023 ] {3a4dd870-8dfc-4e53-894b-d64a66f0104d} executeQuery: Code: 252. DB::Exception: Too many partitions for single INSERT block (more than 1). The limit is controlled by 'max_partitions_per_insert_block' setting. Large number of partitions is a common misconception. It will lead to severe negative performance impact, including slow server startup, slow INSERT queries and slow SELECT queries. Recommended total number of partitions for a table is under 1000..10000. Please note, that partitioning is not intended to speed up SELECT queries (ORDER BY key is sufficient to make range queries fast). Partitions are intended for data manipulation (DROP PARTITION, etc).: while pushing to view test_v9d8zx1a.test_mv_b (45e0f2c0-bc18-42aa-b65c-3de340ca6516). (TOO_MANY_PARTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59790) (comment: 02124_insert_deduplication_token_materialized_views.sql) (in query: INSERT INTO test SELECT 'case3', number%3, 1 FROM numbers(9) SETTINGS insert_deduplication_token = 'case3test1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:85: DB::(anonymous namespace)::buildScatterSelector(std::vector> const&, DB::PODArray, 0ul, 0ul>&, DB::PODArray, 63ul, 64ul>&, unsigned long, std::shared_ptr) @ 0x000000001e1813dd in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:262: DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::shared_ptr const&, std::shared_ptr, std::shared_ptr) @ 0x000000001e17f95c in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:284: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b7765 in /usr/bin/clickhouse 9. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 26. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e665267 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6651d5 in /usr/bin/clickhouse 2024.05.01 13:23:59.929879 [ 12023 ] {3a4dd870-8dfc-4e53-894b-d64a66f0104d} TCPHandler: Code: 252. DB::Exception: Too many partitions for single INSERT block (more than 1). The limit is controlled by 'max_partitions_per_insert_block' setting. Large number of partitions is a common misconception. It will lead to severe negative performance impact, including slow server startup, slow INSERT queries and slow SELECT queries. Recommended total number of partitions for a table is under 1000..10000. Please note, that partitioning is not intended to speed up SELECT queries (ORDER BY key is sufficient to make range queries fast). Partitions are intended for data manipulation (DROP PARTITION, etc).: while pushing to view test_v9d8zx1a.test_mv_b (45e0f2c0-bc18-42aa-b65c-3de340ca6516). (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:85: DB::(anonymous namespace)::buildScatterSelector(std::vector> const&, DB::PODArray, 0ul, 0ul>&, DB::PODArray, 63ul, 64ul>&, unsigned long, std::shared_ptr) @ 0x000000001e1813dd in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:262: DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::shared_ptr const&, std::shared_ptr, std::shared_ptr) @ 0x000000001e17f95c in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:284: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b7765 in /usr/bin/clickhouse 9. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 26. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e665267 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6651d5 in /usr/bin/clickhouse 2024.05.01 13:24:00.226048 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.251842 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.264879 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.280299 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.281542 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.291460 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.313695 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.346205 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.369099 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.369398 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.372802 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.386498 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.389221 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.389288 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.392263 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.402247 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.407283 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.413753 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.430983 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.435641 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.468663 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.472658 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.495000 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.502451 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.528659 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.529419 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.531809 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.568739 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.580721 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.606464 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.609870 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.612487 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.637625 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.639939 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.642409 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.668595 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.675428 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.676700 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.682291 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.701885 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.706616 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.715690 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.717978 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.720741 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.756240 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.798622 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.841021 [ 12023 ] {80ad2d0f-0e54-4858-94da-ae80049993e0} executeQuery: Code: 252. DB::Exception: Too many partitions for single INSERT block (more than 1). The limit is controlled by 'max_partitions_per_insert_block' setting. Large number of partitions is a common misconception. It will lead to severe negative performance impact, including slow server startup, slow INSERT queries and slow SELECT queries. Recommended total number of partitions for a table is under 1000..10000. Please note, that partitioning is not intended to speed up SELECT queries (ORDER BY key is sufficient to make range queries fast). Partitions are intended for data manipulation (DROP PARTITION, etc).: while pushing to view test_v9d8zx1a.test_mv_b (45e0f2c0-bc18-42aa-b65c-3de340ca6516). (TOO_MANY_PARTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59790) (comment: 02124_insert_deduplication_token_materialized_views.sql) (in query: INSERT INTO test SELECT 'case4', number%3, 1 FROM numbers(9) SETTINGS insert_deduplication_token = 'case4test1' ;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:85: DB::(anonymous namespace)::buildScatterSelector(std::vector> const&, DB::PODArray, 0ul, 0ul>&, DB::PODArray, 63ul, 64ul>&, unsigned long, std::shared_ptr) @ 0x000000001e1813dd in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:262: DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::shared_ptr const&, std::shared_ptr, std::shared_ptr) @ 0x000000001e17f95c in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:284: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b7765 in /usr/bin/clickhouse 9. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 26. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e665267 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6651d5 in /usr/bin/clickhouse 2024.05.01 13:24:00.845007 [ 12023 ] {80ad2d0f-0e54-4858-94da-ae80049993e0} TCPHandler: Code: 252. DB::Exception: Too many partitions for single INSERT block (more than 1). The limit is controlled by 'max_partitions_per_insert_block' setting. Large number of partitions is a common misconception. It will lead to severe negative performance impact, including slow server startup, slow INSERT queries and slow SELECT queries. Recommended total number of partitions for a table is under 1000..10000. Please note, that partitioning is not intended to speed up SELECT queries (ORDER BY key is sufficient to make range queries fast). Partitions are intended for data manipulation (DROP PARTITION, etc).: while pushing to view test_v9d8zx1a.test_mv_b (45e0f2c0-bc18-42aa-b65c-3de340ca6516). (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:85: DB::(anonymous namespace)::buildScatterSelector(std::vector> const&, DB::PODArray, 0ul, 0ul>&, DB::PODArray, 63ul, 64ul>&, unsigned long, std::shared_ptr) @ 0x000000001e1813dd in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeDataWriter.cpp:262: DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::shared_ptr const&, std::shared_ptr, std::shared_ptr) @ 0x000000001e17f95c in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:284: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b7765 in /usr/bin/clickhouse 9. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 26. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e665267 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6651d5 in /usr/bin/clickhouse 2024.05.01 13:24:00.855261 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.857075 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.862170 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.898370 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.905478 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.910936 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.921097 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.928204 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.954339 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.990788 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:00.991496 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.000075 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.011548 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.035805 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.056222 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.070397 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.083299 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.083410 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.085626 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.088933 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.110256 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.113583 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.117748 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.138823 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.187856 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.214866 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.235038 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.252492 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.258476 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.281779 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.290568 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.296991 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.308397 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.331092 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.351491 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.354776 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.387381 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.400867 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.425852 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.428573 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.488918 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.492382 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.501679 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.518608 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.521328 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.526467 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.538909 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.549098 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.549190 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.589282 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.600066 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.602745 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.638793 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.671411 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.673612 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.688851 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.720196 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.720549 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.728672 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.734203 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.737176 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.771348 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.776356 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.777051 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.784450 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.796399 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.801115 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.802681 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.813278 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.817770 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.840463 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.856334 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.864691 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.867370 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.871459 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.887411 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.904304 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.905425 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.906121 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.930693 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.935828 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.951663 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.972368 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:01.995309 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.003961 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.014866 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.026646 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.027917 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.030027 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.047555 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.064072 [ 1132 ] {4f79dc41-06d9-49f3-9ea6-273983839a2a} executeQuery: Code: 57. DB::Exception: Table test_5ghuamd1.test_table6 already exists. (TABLE_ALREADY_EXISTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56160) (comment: 02122_4letter_words_stress_zookeeper.sh) (in query: CREATE TABLE test_table6 (`key` UInt64, `value1` UInt8, `value2` UInt8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/02122_4letter_words_stress_zookeeper_test_5ghuamd1/test_table6', '0') ORDER BY key SETTINGS index_granularity = 62279, min_bytes_for_wide_part = 1073741824, ratio_of_defaults_for_sparse_serialization = 0.4699289798736572, merge_max_block_size = 10132, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 410799, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 5781364607, index_granularity_bytes = 8135443, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 17722, primary_key_compress_block_size = 62086), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000001843c0c8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1319: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7e8f55 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:24:02.065862 [ 1132 ] {4f79dc41-06d9-49f3-9ea6-273983839a2a} TCPHandler: Code: 57. DB::Exception: Table test_5ghuamd1.test_table6 already exists. (TABLE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000001843c0c8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1319: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7e8f55 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:24:02.066017 [ 12024 ] {0f707473-3abe-4ec0-8d0b-121ce03b1acb} executeQuery: Code: 57. DB::Exception: Table test_5ghuamd1.test_table1 already exists. (TABLE_ALREADY_EXISTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56158) (comment: 02122_4letter_words_stress_zookeeper.sh) (in query: CREATE TABLE test_table1 (`key` UInt64, `value1` UInt8, `value2` UInt8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/02122_4letter_words_stress_zookeeper_test_5ghuamd1/test_table1', '0') ORDER BY key SETTINGS index_granularity = 62279, min_bytes_for_wide_part = 1073741824, ratio_of_defaults_for_sparse_serialization = 0.4699289798736572, merge_max_block_size = 10132, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 410799, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 5781364607, index_granularity_bytes = 8135443, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 17722, primary_key_compress_block_size = 62086), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000001843c0c8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1319: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7e8f55 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:24:02.068962 [ 12024 ] {0f707473-3abe-4ec0-8d0b-121ce03b1acb} TCPHandler: Code: 57. DB::Exception: Table test_5ghuamd1.test_table1 already exists. (TABLE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000001843c0c8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1319: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7e8f55 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:24:02.084945 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.092583 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.095413 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.104899 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.123483 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.126611 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.136584 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.149675 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.170861 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.192370 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.197349 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.201591 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.208506 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.211043 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.220692 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.238314 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.246100 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.250275 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.261083 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.265978 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.269787 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.299599 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.327205 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.329437 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.336591 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.356685 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.368882 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.369323 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.377397 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.380959 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.387545 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.396536 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.401593 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.406841 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.408994 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.410490 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.431533 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.434439 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.446126 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.456142 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.460409 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.471937 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.476898 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.484605 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.484882 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.498608 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.518665 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.544312 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.547718 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.553052 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.579981 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.584035 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.588420 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.591395 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.597172 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.605317 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.624016 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.642740 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.647208 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.650987 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.679326 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.699318 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.703161 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.747301 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.810842 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.811980 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.815579 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.820324 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.828134 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.838696 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.877916 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.886791 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.888467 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.896979 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.909115 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.934024 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.943771 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.959632 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.969239 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.976125 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:02.988793 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.032929 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.041233 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.048590 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.054519 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.077978 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.102920 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.126870 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.146364 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.157866 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.195379 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.211530 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.222752 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.225518 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.228762 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.275308 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.291959 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.303216 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.306257 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.322066 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.353387 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.354809 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.361413 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.364001 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.390023 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.390681 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.404238 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.406205 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.408747 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.424752 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.432734 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.442382 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.450026 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.450446 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.451587 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.470096 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.472063 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.483257 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.484739 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.515061 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.523468 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.549236 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.574171 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.575127 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.578094 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.578428 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.587131 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.604614 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.610066 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.631455 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.635376 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.674353 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.683263 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.687824 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.691582 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.695355 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.703158 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.715226 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.731922 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.748550 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.757734 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.760690 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.792904 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.799234 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.806214 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.823321 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.850765 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.859000 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.873286 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.899387 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.903809 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.927599 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.929047 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.934395 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.981791 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:03.985952 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.016042 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.050080 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.078959 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.102004 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.131381 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.175095 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.179749 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.219733 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.224298 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.238894 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.269360 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.284273 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.286743 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.294952 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.316714 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.318938 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.323572 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.356590 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.367792 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.445519 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.448443 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.453130 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.460432 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.478235 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.481068 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.495797 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.496963 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.497179 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.507059 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.509060 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.510214 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.516426 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.541002 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.543708 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.546010 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.555652 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.562942 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.569085 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.582008 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.592725 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.597439 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.599900 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.600363 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.617783 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.630645 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.633432 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.642148 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.644440 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.646238 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.652921 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.654987 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.658005 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.670602 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.673559 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.682480 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.683311 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.684059 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.689770 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.695383 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.707603 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.714078 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.715347 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.716918 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.725317 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.736574 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.737446 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.746027 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.774146 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.776534 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.779493 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.789599 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.790907 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.835530 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.837555 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.845273 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.865656 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.867676 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.872249 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.875300 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.889178 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.901046 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.910395 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.929784 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.949419 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.953446 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.966615 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.973808 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.978900 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.983923 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.986196 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:04.998292 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.014577 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.019092 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.031499 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.042485 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.046540 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.077661 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.078332 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.082206 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.090910 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.116805 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.117366 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.120113 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.126378 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.134063 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.139921 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.144768 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.152242 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.154865 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.163000 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.170427 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.183957 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.189174 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.193756 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.217601 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.227416 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.232216 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.237045 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.251908 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.265325 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.275146 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.286973 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.318422 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.331083 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.361156 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.383322 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.391374 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.411347 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.475613 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.494964 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.506730 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.536383 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.538390 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.588198 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.630706 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.633221 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.708581 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.712845 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.739005 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.766084 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.775909 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.790574 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.797071 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.797498 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.797803 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.813349 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.815365 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.816145 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.818968 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.846067 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.855670 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.872531 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.888490 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.891157 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.906662 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.908978 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.918899 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.921032 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.924147 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.933153 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.941615 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.945116 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.964006 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.976811 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.977162 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.979761 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.981193 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.990134 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:05.991931 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.077212 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.087721 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.102217 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.122775 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.128202 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.132368 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.132917 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.158783 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.183777 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.190682 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.196474 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.217456 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.224523 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.231364 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.294291 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.315297 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.409973 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.448051 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.463965 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.496785 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.499260 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.502435 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.503573 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.507129 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.510783 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.513280 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.545888 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.568095 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.573787 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.592468 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.601390 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.606799 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.607310 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.609921 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.614500 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.644831 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.648165 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.660435 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.680468 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.698059 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.715530 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.725665 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.730684 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.740977 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.741324 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.760549 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.769823 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.771362 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.784443 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.785085 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.789011 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.791631 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.799943 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.809954 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.810645 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.814486 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.857966 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.933623 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.967042 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.973016 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.987022 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:06.987920 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.028248 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.041069 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.079253 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.102250 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.103012 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.106510 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.117685 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.153907 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.169266 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.170030 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.177264 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.195929 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.199350 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.200677 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.205031 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.228419 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.240546 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.245996 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.257108 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.274870 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.285870 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.293856 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.295981 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.331747 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.343077 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.352384 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.355845 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.358479 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.362837 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.364993 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.375641 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.384136 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.386529 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.394597 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.412442 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.415481 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.422461 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.441189 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.452866 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.459935 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.463994 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.510500 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.526132 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.527779 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.530116 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.532243 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.543955 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.568847 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.601768 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.604889 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.611121 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.634466 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.645464 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.652228 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.656333 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.664147 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.676873 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.691338 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.702743 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.704684 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.716399 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.737798 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.742951 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.762688 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.770278 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.781348 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.821893 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.841803 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.860683 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.864574 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.870530 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.886109 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.887188 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.928044 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.930852 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.938076 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.956013 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.957373 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.958097 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.965787 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.966488 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:07.988919 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.032154 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.054633 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.056151 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.061233 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.069496 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.073652 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.076440 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.084576 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.085209 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.101466 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.113382 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.120309 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.161995 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.170151 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.192619 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.207912 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.235304 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.246332 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.259048 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.272060 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.278051 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.280107 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.284228 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.292962 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.297074 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.300675 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.303315 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.306958 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.309870 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.310590 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.310889 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.365593 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.380484 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.386880 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.419027 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.435850 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.442608 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.447899 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.461027 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.462485 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.481268 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.519476 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.530470 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.548253 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.552713 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.579714 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.590468 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.607455 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.635949 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.650592 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.658254 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.694526 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.719092 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.719094 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.728409 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.728711 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.770029 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.787935 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.808001 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.815345 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.819124 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.847971 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.852288 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.859379 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.863145 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.863322 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.883629 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.887220 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.888522 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.893339 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.897596 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.907587 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.917670 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.928996 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.931326 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.945596 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.947573 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.949330 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.952066 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.960536 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.964825 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.975580 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.991608 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:08.994093 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.029373 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.032630 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.064437 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.066689 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.104794 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.146664 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.224712 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.296716 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.319453 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.334229 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.339895 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.341654 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.353100 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.364862 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.367950 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.373899 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.377504 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.389565 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.403925 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.412178 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.420820 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.431001 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.450773 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.466912 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.511679 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.527882 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.535957 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.569494 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.589331 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.616950 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.621596 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.634718 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.641812 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.661984 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.689924 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.691294 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.695922 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.711736 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.726924 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.729616 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.734615 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.753734 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.756154 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.775522 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.775825 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.807073 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.835592 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.841600 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.868915 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.876909 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.887079 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.888034 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.889632 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.893080 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.899616 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.911295 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.911752 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.924366 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.933408 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.947560 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.971674 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.972993 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.984817 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.987742 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.996634 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:09.997863 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.001759 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.006828 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.008439 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.027347 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.049236 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.073972 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.080511 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.083514 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.100942 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.105417 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.108056 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.117997 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.135630 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.199147 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.204866 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.215650 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.219772 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.226669 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.231285 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.244929 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.256172 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.259881 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.261612 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.273266 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.294883 [ 12028 ] {59329567-961b-4bcb-b8f2-df7e4e206898} executeQuery: Code: 57. DB::Exception: Table test_5ghuamd1.test_table5 already exists. (TABLE_ALREADY_EXISTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52224) (comment: 02122_4letter_words_stress_zookeeper.sh) (in query: CREATE TABLE test_table5 (`key` UInt64, `value1` UInt8, `value2` UInt8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/02122_4letter_words_stress_zookeeper_test_5ghuamd1/test_table5', '0') ORDER BY key SETTINGS index_granularity = 62279, min_bytes_for_wide_part = 1073741824, ratio_of_defaults_for_sparse_serialization = 0.4699289798736572, merge_max_block_size = 10132, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 410799, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 5781364607, index_granularity_bytes = 8135443, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 17722, primary_key_compress_block_size = 62086), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000001843c0c8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1319: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7e8f55 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:24:10.296813 [ 12028 ] {59329567-961b-4bcb-b8f2-df7e4e206898} TCPHandler: Code: 57. DB::Exception: Table test_5ghuamd1.test_table5 already exists. (TABLE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000001843c0c8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1319: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7e8f55 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:24:10.312013 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.324703 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.343141 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.355053 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.364151 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.372526 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.375590 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.383157 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.400493 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.401096 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.415831 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.423994 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.454452 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.458464 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.476143 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.507135 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.520765 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.521529 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.527301 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.532134 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.535625 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.541001 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.548046 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.550108 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.550442 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.553011 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.577096 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.581623 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.604601 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.615437 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.618965 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.630658 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.646575 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.646653 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.679081 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.713590 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.724285 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.737083 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.739912 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.740691 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.741157 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.744731 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.751794 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.753475 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.759932 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.763529 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.767056 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.779631 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.786804 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.790081 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.797944 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.806322 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.812425 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.813752 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.813869 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.816323 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.823988 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.839070 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.848892 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.854325 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.857533 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.869441 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.877475 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.890940 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.915692 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.923291 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.924128 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:10.929287 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.047260 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.057119 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.066842 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.067502 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.080180 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.083863 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.096650 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.143540 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.190497 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.202856 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.216669 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.231387 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.242279 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.247328 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.251165 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.294905 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.298252 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.311454 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.365802 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.373003 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.386962 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.390872 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.391562 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.402234 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.406497 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.412942 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.472990 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.486277 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.520520 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.548924 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.554460 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.567276 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.602617 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.627146 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.640916 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.648346 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.651521 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.667131 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.681043 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.681611 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.689314 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.720401 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.725552 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.736856 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.745352 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.762853 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.791417 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.808345 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.817947 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.830405 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.836626 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.873552 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.897646 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.907351 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.936919 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.970624 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.976116 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.981147 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:11.991022 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.000316 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.010243 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.027849 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.036012 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.051316 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.060085 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.067163 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.069661 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.069849 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.082286 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.094274 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.096779 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.099225 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.110924 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.110998 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.115320 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.117889 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.144318 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.156433 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.157042 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.162939 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.180905 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.183867 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.187291 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.192550 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.201478 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.248094 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.257270 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.262675 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.263210 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.266396 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.283736 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.297573 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.328992 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.333250 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.338392 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.345790 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.358673 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.379313 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.395215 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.428862 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.443104 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.443467 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.471789 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.485589 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.499132 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.517730 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.531342 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.531884 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.534888 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.552134 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.555000 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.567718 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.576864 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.585121 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.586055 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.586447 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.587516 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.590313 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.597040 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.603981 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.605172 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.605844 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.629728 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.639496 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.641511 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.645685 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.662207 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.665505 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.676426 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.693041 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.716368 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.719977 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.735901 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.757182 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.759049 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.771438 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.795754 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.818357 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.836196 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.844815 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.849594 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.863757 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.866440 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.869444 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.876494 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.885483 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.887701 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.913036 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.917787 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.925130 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.944381 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.952219 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.960577 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.965623 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.969772 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.973362 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.976712 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.981156 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.982590 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.983264 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.989134 [ 12026 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:12.993555 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.014075 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.024566 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.039061 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.047806 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.105565 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.118251 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.136509 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.154891 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.160657 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.163530 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.169859 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.172784 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.178936 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.187139 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.188504 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.190808 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.194659 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.200207 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.230191 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.237920 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.240357 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.269819 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.277807 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.293238 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.317263 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.322012 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.350788 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.371120 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.386602 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.409477 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.508344 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.510195 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.512513 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.532700 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.544498 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.547629 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.549231 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.549918 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.555971 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.584331 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.588769 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.604861 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.607340 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.611557 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.622117 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.634149 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.634405 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.646039 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.650795 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.660941 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.661296 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.666479 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.669195 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.677580 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.685046 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.693148 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.707780 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.735171 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.741893 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.748691 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.751499 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.772552 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.774960 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.775199 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.781091 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.819001 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.823413 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.826280 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.839663 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.856525 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.872312 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.873789 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.887096 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.908184 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.910992 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.951674 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.955835 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.962513 [ 12037 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.963497 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.965067 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.971829 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.973368 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:13.999250 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.025592 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.061908 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.062688 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.088776 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.091046 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.091432 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.132635 [ 12030 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.179196 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.180214 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.189337 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.200639 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.207803 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.210709 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.213102 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.282894 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.295064 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.331436 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.336823 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.338393 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.361206 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.363650 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.367596 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.372031 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.377665 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.379364 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.387682 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.400302 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.425591 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.434512 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.439685 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.453769 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.457203 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.483961 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.486978 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.497479 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.499158 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.514725 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.515862 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.526963 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.530756 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.560983 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.567193 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.570069 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.571881 [ 12027 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.582566 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.585087 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.587450 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.589539 [ 12036 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.602090 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.627060 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.627817 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.631387 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.633526 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.640497 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.644946 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.660032 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.660763 [ 12022 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.670025 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.681803 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.689413 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.694822 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.695450 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.697539 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.707286 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.746789 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.747430 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.751922 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.754681 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.775870 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.785198 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.801851 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.803769 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.808634 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.809645 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.815478 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.832819 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.835494 [ 12040 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.857826 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.864949 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.880658 [ 5964 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.883645 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.909245 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.929410 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.939224 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.939567 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.950029 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.958445 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:14.979221 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.002252 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.012716 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.033232 [ 1132 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.042294 [ 1133 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.062830 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.069924 [ 12028 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.071116 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.080155 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.090983 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.091939 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.132362 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.138756 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.144009 [ 1080 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.144533 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.144616 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.151163 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.158626 [ 12023 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.166035 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.167596 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.188191 [ 12024 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.188675 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:15.198887 [ 5967 ] {} KeeperTCPHandler: Not enabled four letter command wchc 2024.05.01 13:24:21.342228 [ 12023 ] {19b566bd-484d-444f-9b83-232751b7f80e} executeQuery: Code: 1. DB::Exception: Set `store_polygon_key_column` setting in dictionary configuration to true to support reading from PolygonDictionary. (UNSUPPORTED_METHOD) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59484) (comment: 02097_polygon_dictionary_store_key.sql) (in query: SELECT * FROM polygons_test_dictionary_no_option;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [118]) @ 0x000000001849063e in /usr/bin/clickhouse 6. /build/src/Dictionaries/PolygonDictionary.cpp:150: DB::IPolygonDictionary::read(std::vector> const&, unsigned long, unsigned long) const @ 0x0000000018484dd4 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDictionary.cpp:178: DB::StorageDictionary::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d63b345 in /usr/bin/clickhouse 8. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:24:21.342977 [ 12023 ] {19b566bd-484d-444f-9b83-232751b7f80e} TCPHandler: Code: 1. DB::Exception: Set `store_polygon_key_column` setting in dictionary configuration to true to support reading from PolygonDictionary. (UNSUPPORTED_METHOD), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [118]) @ 0x000000001849063e in /usr/bin/clickhouse 6. /build/src/Dictionaries/PolygonDictionary.cpp:150: DB::IPolygonDictionary::read(std::vector> const&, unsigned long, unsigned long) const @ 0x0000000018484dd4 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDictionary.cpp:178: DB::StorageDictionary::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d63b345 in /usr/bin/clickhouse 8. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:24:27.722304 [ 5967 ] {7b01bb2b-4edb-4706-bbdd-51f80fca4ef0} executeQuery: Code: 47. DB::Exception: Missing columns: 'test_01103.t1_distr.id' while processing query: '_CAST(now(([NULL, NULL, NULL, [-2147483648], [NULL, NULL, NULL, NULL, NULL, NULL, NULL]] AND (1048576 AND NULL) AND (NULL AND 1048575 AND NULL AND -2147483649) AND NULL) IN (test_01103.t1_distr.id)) AS b_tmp_alter17963098278249137025, 'DateTime') AS b, b_tmp_alter17963098278249137025', required columns: 'test_01103.t1_distr.id' 'test_01103.t1_distr.id': default expression and column type are incompatible. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59670) (comment: 02041_test_fuzzy_alter.sql) (in query: ALTER TABLE alter_table MODIFY COLUMN `b` DateTime DEFAULT now(([NULL, NULL, NULL, [-2147483648], [NULL, NULL, NULL, NULL, NULL, NULL, NULL]] AND (1048576 AND NULL) AND (NULL AND 1048575 AND NULL AND -2147483649) AND NULL) IN (test_01103.t1_distr.id));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf92678 in /usr/bin/clickhouse 8. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 9. /build/src/Storages/AlterCommands.cpp:1389: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d58173d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:24:27.723446 [ 5967 ] {7b01bb2b-4edb-4706-bbdd-51f80fca4ef0} TCPHandler: Code: 47. DB::Exception: Missing columns: 'test_01103.t1_distr.id' while processing query: '_CAST(now(([NULL, NULL, NULL, [-2147483648], [NULL, NULL, NULL, NULL, NULL, NULL, NULL]] AND (1048576 AND NULL) AND (NULL AND 1048575 AND NULL AND -2147483649) AND NULL) IN (test_01103.t1_distr.id)) AS b_tmp_alter17963098278249137025, 'DateTime') AS b, b_tmp_alter17963098278249137025', required columns: 'test_01103.t1_distr.id' 'test_01103.t1_distr.id': default expression and column type are incompatible. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf92678 in /usr/bin/clickhouse 8. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 9. /build/src/Storages/AlterCommands.cpp:1389: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d58173d in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:24:30.028148 [ 12023 ] {04eee48b-c86f-4981-a3af-84b99ec62dc4} executeQuery: Code: 407. DB::Exception: Numeric overflow: While executing ConvertingAggregatedToChunksTransform. (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35794) (comment: 02029_quantile_sanitizer.sql) (in query: SELECT quantileTDigestWeighted(-0.)(toDateTime(10000000000.), 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/QuantileTDigest.h:486: unsigned int DB::QuantileTDigest::checkOverflow(float) @ 0x0000000014cb4a7f in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileTDigest.h:349: unsigned int DB::QuantileTDigest::getImpl(double) @ 0x0000000014cb47e8 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/QuantileTDigest.h:461: DB::QuantileTDigest::get(double) @ 0x0000000014cb475f in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:232: DB::AggregateFunctionQuantile, DB::NameQuantileTDigestWeighted, true, void, false>::insertResultInto(char*, DB::IColumn&, DB::Arena*) const @ 0x0000000014cfb792 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1898: void DB::Aggregator::insertAggregatesIntoColumns(char*&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::Arena*) const @ 0x000000001c0e3128 in /usr/bin/clickhouse 11. /build/src/Interpreters/Aggregator.cpp:2257: DB::Aggregator::prepareBlockAndFillWithoutKey(DB::AggregatedDataVariants&, bool, bool) const @ 0x000000001c01a53e in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:458: DB::ConvertingAggregatedToChunksTransform::initialize() @ 0x000000001eb28a41 in /usr/bin/clickhouse 13. /build/src/Processors/Transforms/AggregatingTransform.cpp:294: DB::ConvertingAggregatedToChunksTransform::work() @ 0x000000001eb25c7f in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 2024.05.01 13:24:30.033826 [ 12023 ] {04eee48b-c86f-4981-a3af-84b99ec62dc4} TCPHandler: Code: 407. DB::Exception: Numeric overflow: While executing ConvertingAggregatedToChunksTransform. (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/QuantileTDigest.h:486: unsigned int DB::QuantileTDigest::checkOverflow(float) @ 0x0000000014cb4a7f in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/QuantileTDigest.h:349: unsigned int DB::QuantileTDigest::getImpl(double) @ 0x0000000014cb47e8 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/QuantileTDigest.h:461: DB::QuantileTDigest::get(double) @ 0x0000000014cb475f in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:232: DB::AggregateFunctionQuantile, DB::NameQuantileTDigestWeighted, true, void, false>::insertResultInto(char*, DB::IColumn&, DB::Arena*) const @ 0x0000000014cfb792 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1898: void DB::Aggregator::insertAggregatesIntoColumns(char*&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::Arena*) const @ 0x000000001c0e3128 in /usr/bin/clickhouse 11. /build/src/Interpreters/Aggregator.cpp:2257: DB::Aggregator::prepareBlockAndFillWithoutKey(DB::AggregatedDataVariants&, bool, bool) const @ 0x000000001c01a53e in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:458: DB::ConvertingAggregatedToChunksTransform::initialize() @ 0x000000001eb28a41 in /usr/bin/clickhouse 13. /build/src/Processors/Transforms/AggregatingTransform.cpp:294: DB::ConvertingAggregatedToChunksTransform::work() @ 0x000000001eb25c7f in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 2024.05.01 13:24:31.293230 [ 12024 ] {} ServerErrorHandler: Code: 81. DB::Exception: Database no_such_database_could_exist does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/DatabaseCatalog.cpp:509: DB::DatabaseCatalog::assertDatabaseExists(String const&) const @ 0x000000001bed6c01 in /usr/bin/clickhouse 7. /build/src/Interpreters/Context.cpp:1922: DB::Context::setCurrentDatabase(String const&) @ 0x000000001bdba429 in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:265: DB::TCPHandler::runImpl() @ 0x000000001e5d7ab4 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 15. ? @ 0x00007fcde32fbac3 in ? 16. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:24:31.340648 [ 12024 ] {} ServerErrorHandler: Code: 81. DB::Exception: Database no_such_database_could_exist does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/DatabaseCatalog.cpp:509: DB::DatabaseCatalog::assertDatabaseExists(String const&) const @ 0x000000001bed6c01 in /usr/bin/clickhouse 7. /build/src/Interpreters/Context.cpp:1922: DB::Context::setCurrentDatabase(String const&) @ 0x000000001bdba429 in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:265: DB::TCPHandler::runImpl() @ 0x000000001e5d7ab4 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 15. ? @ 0x00007fcde32fbac3 in ? 16. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:24:41.380615 [ 50482 ] {d3ec6a08-d16d-4880-8dad-ac9dc23e48a3} executeQuery: Code: 36. DB::Exception: Parameter width must be in range [2, 1024]. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32830) (comment: 02016_aggregation_spark_bar.sql) (in query: -- { echoOff } SELECT sparkbar(0)(number, number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1f303e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.h:277: DB::AggregateFunctionSparkbar::AggregateFunctionSparkbar(std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017945147 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:28: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178e9347 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178e855b in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e83cd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 2024.05.01 13:24:41.409882 [ 50482 ] {d3ec6a08-d16d-4880-8dad-ac9dc23e48a3} TCPHandler: Code: 36. DB::Exception: Parameter width must be in range [2, 1024]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1f303e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.h:277: DB::AggregateFunctionSparkbar::AggregateFunctionSparkbar(std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017945147 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:28: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178e9347 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178e855b in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e83cd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 2024.05.01 13:24:41.651373 [ 50482 ] {694f5a57-9b0d-4f6f-b745-3bb48b40ff46} executeQuery: Code: 36. DB::Exception: Parameter width must be in range [2, 1024]. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32830) (comment: 02016_aggregation_spark_bar.sql) (in query: SELECT sparkbar(1)(number, number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1f303e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.h:277: DB::AggregateFunctionSparkbar::AggregateFunctionSparkbar(std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017945147 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:28: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178e9347 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178e855b in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e83cd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 2024.05.01 13:24:41.668137 [ 50482 ] {694f5a57-9b0d-4f6f-b745-3bb48b40ff46} TCPHandler: Code: 36. DB::Exception: Parameter width must be in range [2, 1024]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1f303e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.h:277: DB::AggregateFunctionSparkbar::AggregateFunctionSparkbar(std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017945147 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:28: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178e9347 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178e855b in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e83cd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 2024.05.01 13:24:41.836113 [ 50482 ] {4b6847e1-9748-494b-bc57-468ac671c3c2} executeQuery: Code: 36. DB::Exception: Parameter width must be in range [2, 1024]. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32830) (comment: 02016_aggregation_spark_bar.sql) (in query: SELECT sparkbar(1025)(number, number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1f303e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.h:277: DB::AggregateFunctionSparkbar::AggregateFunctionSparkbar(std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017945147 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:28: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178e9347 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178e855b in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e83cd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 2024.05.01 13:24:41.866658 [ 50482 ] {4b6847e1-9748-494b-bc57-468ac671c3c2} TCPHandler: Code: 36. DB::Exception: Parameter width must be in range [2, 1024]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1f303e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.h:277: DB::AggregateFunctionSparkbar::AggregateFunctionSparkbar(std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017945147 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:28: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178e9347 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178e855b in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e83cd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 2024.05.01 13:24:42.288385 [ 50482 ] {16cd103b-129d-4128-ba42-3f6416ef0187} executeQuery: Code: 36. DB::Exception: Parameter `min_x` must be less than `max_x`. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32830) (comment: 02016_aggregation_spark_bar.sql) (in query: SELECT sparkbar(2, 10, 9)(number, number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25047e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.h:280: DB::AggregateFunctionSparkbar::AggregateFunctionSparkbar(std::vector, std::allocator>> const&, DB::Array const&) @ 0x00000000179451fa in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:28: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178e9347 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178e855b in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e83cd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 2024.05.01 13:24:42.307289 [ 50482 ] {16cd103b-129d-4128-ba42-3f6416ef0187} TCPHandler: Code: 36. DB::Exception: Parameter `min_x` must be less than `max_x`. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25047e in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.h:280: DB::AggregateFunctionSparkbar::AggregateFunctionSparkbar(std::vector, std::allocator>> const&, DB::Array const&) @ 0x00000000179451fa in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:28: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178e9347 in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178e855b in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e83cd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 2024.05.01 13:24:42.652525 [ 50482 ] {933633e9-ff5f-4c61-806c-0a73ba565982} executeQuery: Code: 43. DB::Exception: The second and third parameters are not the same type as the first arguments for aggregate function sparkbar. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32830) (comment: 02016_aggregation_spark_bar.sql) (in query: SELECT sparkbar(2, -5, -1)(number, number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:61: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e82a2 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:24:42.673783 [ 50482 ] {933633e9-ff5f-4c61-806c-0a73ba565982} TCPHandler: Code: 43. DB::Exception: The second and third parameters are not the same type as the first arguments for aggregate function sparkbar. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:61: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e82a2 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:24:42.847502 [ 50482 ] {d03e92dd-148e-4d4a-a140-a52d1c453464} executeQuery: Code: 43. DB::Exception: The second and third parameters are not the same type as the first arguments for aggregate function sparkbar. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32830) (comment: 02016_aggregation_spark_bar.sql) (in query: SELECT sparkbar(2, -5, 1)(number, number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:61: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e82a2 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:24:42.894650 [ 50482 ] {d03e92dd-148e-4d4a-a140-a52d1c453464} TCPHandler: Code: 43. DB::Exception: The second and third parameters are not the same type as the first arguments for aggregate function sparkbar. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:61: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e82a2 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:24:43.124390 [ 50482 ] {fe5a5aa5-03fb-4fa1-b514-14033cb7ae5e} executeQuery: Code: 43. DB::Exception: The first argument type must be UInt or Date or DateTime for aggregate function sparkbar. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32830) (comment: 02016_aggregation_spark_bar.sql) (in query: SELECT sparkbar(2)(toInt32(number), number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:31: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178e94a4 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178e855b in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e83cd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 2024.05.01 13:24:43.130867 [ 50482 ] {fe5a5aa5-03fb-4fa1-b514-14033cb7ae5e} TCPHandler: Code: 43. DB::Exception: The first argument type must be UInt or Date or DateTime for aggregate function sparkbar. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:31: DB::IAggregateFunction* DB::(anonymous namespace)::createWithUIntegerOrTimeType, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, std::vector, std::allocator>>&&, DB::Array&&) @ 0x00000000178e94a4 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:41: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSparkbarImpl, std::allocator>>, DB::Array>(String const&, DB::IDataType const&, DB::IDataType const&, std::vector, std::allocator>>, DB::Array) @ 0x00000000178e855b in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:65: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e83cd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 2024.05.01 13:24:43.540863 [ 50482 ] {247dfbb2-2269-4231-80e4-31ebc0e06d92} executeQuery: Code: 42. DB::Exception: The number of params does not match for aggregate function 'sparkbar', expected 1 or 3, got 2. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32830) (comment: 02016_aggregation_spark_bar.sql) (in query: SELECT sparkbar(2, 0)(number, number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, unsigned long&&) @ 0x000000000c3b85cc in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:53: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e807b in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:24:43.580187 [ 50482 ] {247dfbb2-2269-4231-80e4-31ebc0e06d92} TCPHandler: Code: 42. DB::Exception: The number of params does not match for aggregate function 'sparkbar', expected 1 or 3, got 2. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, unsigned long&&) @ 0x000000000c3b85cc in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:53: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e807b in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:24:43.891608 [ 50482 ] {3748b4bd-d16a-4837-9921-3fee49c16889} executeQuery: Code: 42. DB::Exception: The number of params does not match for aggregate function 'sparkbar', expected 1 or 3, got 4. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32830) (comment: 02016_aggregation_spark_bar.sql) (in query: SELECT sparkbar(2, 0, 5, 8)(number, number) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, unsigned long&&) @ 0x000000000c3b85cc in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:53: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e807b in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:24:43.931550 [ 50482 ] {3748b4bd-d16a-4837-9921-3fee49c16889} TCPHandler: Code: 42. DB::Exception: The number of params does not match for aggregate function 'sparkbar', expected 1 or 3, got 4. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, unsigned long&&) @ 0x000000000c3b85cc in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSparkbar.cpp:53: DB::(anonymous namespace)::createAggregateFunctionSparkbar(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000178e807b in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:24:48.660858 [ 1191 ] {bd354168-6fc2-43e8-995c-307239d3eb7c} AsynchronousInsertQueue: Failed parsing for query 'INSERT INTO test_qri2wo4v.async_inserts FORMAT CSV' with query id 3a4b9fff-4962-4516-ab79-70202309ca9a. DB::ParsingException: Cannot parse input: expected ',' before: 'qqqqqqqqqqq': Could not print diagnostic info because two last rows aren't in buffer (rare case) : (at row 1) 2024.05.01 13:24:48.910630 [ 50595 ] {3a4b9fff-4962-4516-ab79-70202309ca9a} executeQuery: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: 'qqqqqqqqqqq': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing WaitForAsyncInsert: (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:34410) (comment: 02015_async_inserts_2.sh) (in query: INSERT INTO async_inserts FORMAT CSV ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e7b4e68 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:60: DB::StreamingFormatExecutor::execute() @ 0x000000001e693be1 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:44: DB::StreamingFormatExecutor::execute(DB::ReadBuffer&) @ 0x000000001e693772 in /usr/bin/clickhouse 15. /build/src/Interpreters/AsynchronousInsertQueue.cpp:582: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd7187c in /usr/bin/clickhouse 16. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd7400a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f75 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f55 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd73f35 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd73f00 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 2024.05.01 13:24:48.946328 [ 50595 ] {3a4b9fff-4962-4516-ab79-70202309ca9a} DynamicQueryHandler: Code: 27. DB::ParsingException: Cannot parse input: expected ',' before: 'qqqqqqqqqqq': Could not print diagnostic info because two last rows aren't in buffer (rare case) : While executing WaitForAsyncInsert: (at row 1) . (CANNOT_PARSE_INPUT_ASSERTION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException(int, FormatStringHelperImpl::type>, String&) @ 0x0000000013985833 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:92: DB::throwAtAssertionFailed(char const*, DB::ReadBuffer&) @ 0x0000000013978caa in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:201: DB::assertChar(char, DB::ReadBuffer&) @ 0x000000000b5d9560 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/Impl/CSVRowInputFormat.cpp:224: DB::CSVFormatReader::skipFieldDelimiter() @ 0x000000001e7b4e68 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/RowInputFormatWithNamesAndTypes.cpp:0: DB::RowInputFormatWithNamesAndTypes::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e7808d3 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 11. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 12. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 13. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:60: DB::StreamingFormatExecutor::execute() @ 0x000000001e693be1 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/StreamingFormatExecutor.cpp:44: DB::StreamingFormatExecutor::execute(DB::ReadBuffer&) @ 0x000000001e693772 in /usr/bin/clickhouse 15. /build/src/Interpreters/AsynchronousInsertQueue.cpp:582: DB::AsynchronousInsertQueue::processData(DB::AsynchronousInsertQueue::InsertQuery, std::unique_ptr>, std::shared_ptr) @ 0x000000001bd7187c in /usr/bin/clickhouse 16. /build/src/Interpreters/AsynchronousInsertQueue.cpp:202: DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0::operator()() @ 0x000000001bd7400a in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>, std::shared_ptr)::$_0&>()()) std::__invoke[abi:v15000]>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f75 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call>, std::shared_ptr)::$_0&>(DB::AsynchronousInsertQueue::scheduleDataProcessingJob(DB::AsynchronousInsertQueue::InsertQuery const&, std::unique_ptr>, std::shared_ptr)::$_0&) @ 0x000000001bd73f55 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func>, std::shared_ptr)::$_0, void ()>::operator()[abi:v15000]() @ 0x000000001bd73f35 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>, std::shared_ptr)::$_0, void ()>>(std::__function::__policy_storage const*) @ 0x000000001bd73f00 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:24:51.937936 [ 50482 ] {09f932cd-7bb8-498e-a992-36b23d438619} executeQuery: Code: 43. DB::Exception: Nested type LowCardinality(Nullable(String)) cannot be inside Nullable type: While processing JSONExtract(toNullable('{"string_value":null}'), 'string_value', 'LowCardinality(Nullable(String))') AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60518) (comment: 02013_json_function_null_column.sql) (in query: SELECT JSONExtract(toNullable('{"string_value":null}'), 'string_value', 'LowCardinality(Nullable(String))') as x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeNullable.cpp:28: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000001b98becc in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeNullable* std::construct_at[abi:v15000] const&, DB::DataTypeNullable*>(DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017aec946 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, void, void>(std::allocator&, DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017aec8c1 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&>(std::allocator, std::shared_ptr const&) @ 0x0000000017aec847 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x0000000017aec777 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, void>(std::shared_ptr const&) @ 0x0000000017aec726 in /usr/bin/clickhouse 12. /build/src/DataTypes/DataTypeNullable.cpp:86: DB::makeNullable(std::shared_ptr const&) @ 0x000000001b98c5ae in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsJSON.h:468: DB::JSONOverloadResolver::build(std::vector> const&) const @ 0x000000000c0eeaf8 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:24:51.938982 [ 50482 ] {09f932cd-7bb8-498e-a992-36b23d438619} TCPHandler: Code: 43. DB::Exception: Nested type LowCardinality(Nullable(String)) cannot be inside Nullable type: While processing JSONExtract(toNullable('{"string_value":null}'), 'string_value', 'LowCardinality(Nullable(String))') AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeNullable.cpp:28: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000001b98becc in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeNullable* std::construct_at[abi:v15000] const&, DB::DataTypeNullable*>(DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017aec946 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, void, void>(std::allocator&, DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017aec8c1 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&>(std::allocator, std::shared_ptr const&) @ 0x0000000017aec847 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x0000000017aec777 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, void>(std::shared_ptr const&) @ 0x0000000017aec726 in /usr/bin/clickhouse 12. /build/src/DataTypes/DataTypeNullable.cpp:86: DB::makeNullable(std::shared_ptr const&) @ 0x000000001b98c5ae in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsJSON.h:468: DB::JSONOverloadResolver::build(std::vector> const&) const @ 0x000000000c0eeaf8 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:24:52.195064 [ 50482 ] {a56c50e9-8891-4d4b-bf13-c5df35e2ba4e} executeQuery: Code: 43. DB::Exception: The argument 2 of function JSONExtractInt should be a string specifying key or an integer specifying index, illegal type: Nullable(UInt8): While processing JSONExtractInt('[1]', toLowCardinality(toNullable(1))). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60518) (comment: 02013_json_function_null_column.sql) (in query: SELECT JSONExtractInt('[1]', toLowCardinality(toNullable(1)));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsJSON.h:200: DB::FunctionJSONHelpers::prepareMoves(char const*, std::vector> const&, unsigned long, unsigned long) @ 0x000000000c0b2229 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsJSON.h:108: DB::FunctionJSONHelpers::Executor::run(std::vector> const&, std::shared_ptr const&, unsigned long) @ 0x000000000c0d4322 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsJSON.h:371: DB::ExecutableFunctionJSON::chooseAndRunJSONParser(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c0d3d6a in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsJSON.h:358: DB::ExecutableFunctionJSON::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c0d3c21 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 2024.05.01 13:24:52.196283 [ 50482 ] {a56c50e9-8891-4d4b-bf13-c5df35e2ba4e} TCPHandler: Code: 43. DB::Exception: The argument 2 of function JSONExtractInt should be a string specifying key or an integer specifying index, illegal type: Nullable(UInt8): While processing JSONExtractInt('[1]', toLowCardinality(toNullable(1))). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsJSON.h:200: DB::FunctionJSONHelpers::prepareMoves(char const*, std::vector> const&, unsigned long, unsigned long) @ 0x000000000c0b2229 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsJSON.h:108: DB::FunctionJSONHelpers::Executor::run(std::vector> const&, std::shared_ptr const&, unsigned long) @ 0x000000000c0d4322 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsJSON.h:371: DB::ExecutableFunctionJSON::chooseAndRunJSONParser(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c0d3d6a in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsJSON.h:358: DB::ExecutableFunctionJSON::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c0d3c21 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 2024.05.01 13:24:52.325154 [ 50482 ] {da9d3486-bacd-4593-926a-8d0a01768e4d} executeQuery: Code: 43. DB::Exception: Nested type Array(String) cannot be inside Nullable type: While processing JSONExtractArrayRaw('["1"]', toNullable(1)). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60518) (comment: 02013_json_function_null_column.sql) (in query: SELECT JSONExtractArrayRaw('["1"]', toNullable(1));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeNullable.cpp:28: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000001b98becc in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeNullable* std::construct_at[abi:v15000] const&, DB::DataTypeNullable*>(DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017aec946 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, void, void>(std::allocator&, DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017aec8c1 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&>(std::allocator, std::shared_ptr const&) @ 0x0000000017aec847 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x0000000017aec777 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, void>(std::shared_ptr const&) @ 0x0000000017aec726 in /usr/bin/clickhouse 12. /build/src/DataTypes/DataTypeNullable.cpp:86: DB::makeNullable(std::shared_ptr const&) @ 0x000000001b98c5ae in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsJSON.h:468: DB::JSONOverloadResolver::build(std::vector> const&) const @ 0x000000000c1387f8 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:24:52.326236 [ 50482 ] {da9d3486-bacd-4593-926a-8d0a01768e4d} TCPHandler: Code: 43. DB::Exception: Nested type Array(String) cannot be inside Nullable type: While processing JSONExtractArrayRaw('["1"]', toNullable(1)). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeNullable.cpp:28: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000001b98becc in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeNullable* std::construct_at[abi:v15000] const&, DB::DataTypeNullable*>(DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017aec946 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, void, void>(std::allocator&, DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017aec8c1 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&>(std::allocator, std::shared_ptr const&) @ 0x0000000017aec847 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x0000000017aec777 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, void>(std::shared_ptr const&) @ 0x0000000017aec726 in /usr/bin/clickhouse 12. /build/src/DataTypes/DataTypeNullable.cpp:86: DB::makeNullable(std::shared_ptr const&) @ 0x000000001b98c5ae in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsJSON.h:468: DB::JSONOverloadResolver::build(std::vector> const&) const @ 0x000000000c1387f8 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:24:52.457140 [ 50482 ] {ff38d4a2-5ef0-4f39-95cd-80dfde413f2e} executeQuery: Code: 43. DB::Exception: Nested type Array(Tuple(String, String)) cannot be inside Nullable type: While processing JSONExtractKeysAndValuesRaw('["1"]', toNullable(1)). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60518) (comment: 02013_json_function_null_column.sql) (in query: SELECT JSONExtractKeysAndValuesRaw('["1"]', toNullable(1));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeNullable.cpp:28: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000001b98becc in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeNullable* std::construct_at[abi:v15000] const&, DB::DataTypeNullable*>(DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017aec946 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, void, void>(std::allocator&, DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017aec8c1 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&>(std::allocator, std::shared_ptr const&) @ 0x0000000017aec847 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x0000000017aec777 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, void>(std::shared_ptr const&) @ 0x0000000017aec726 in /usr/bin/clickhouse 12. /build/src/DataTypes/DataTypeNullable.cpp:86: DB::makeNullable(std::shared_ptr const&) @ 0x000000001b98c5ae in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsJSON.h:468: DB::JSONOverloadResolver::build(std::vector> const&) const @ 0x000000000c13d358 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:24:52.458797 [ 50482 ] {ff38d4a2-5ef0-4f39-95cd-80dfde413f2e} TCPHandler: Code: 43. DB::Exception: Nested type Array(Tuple(String, String)) cannot be inside Nullable type: While processing JSONExtractKeysAndValuesRaw('["1"]', toNullable(1)). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeNullable.cpp:28: DB::DataTypeNullable::DataTypeNullable(std::shared_ptr const&) @ 0x000000001b98becc in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeNullable* std::construct_at[abi:v15000] const&, DB::DataTypeNullable*>(DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017aec946 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, void, void>(std::allocator&, DB::DataTypeNullable*, std::shared_ptr const&) @ 0x0000000017aec8c1 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&>(std::allocator, std::shared_ptr const&) @ 0x0000000017aec847 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], std::shared_ptr const&, void>(std::allocator const&, std::shared_ptr const&) @ 0x0000000017aec777 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, void>(std::shared_ptr const&) @ 0x0000000017aec726 in /usr/bin/clickhouse 12. /build/src/DataTypes/DataTypeNullable.cpp:86: DB::makeNullable(std::shared_ptr const&) @ 0x000000001b98c5ae in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsJSON.h:468: DB::JSONOverloadResolver::build(std::vector> const&) const @ 0x000000000c13d358 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:24:52.598680 [ 50482 ] {c2d44c5e-aa5f-42f5-8cdf-dc96bb91135e} executeQuery: Code: 44. DB::Exception: The last argument of function JSONExtractKeysAndValues should be a constant string specifying the values' data type, illegal value: toNullable(1): While processing JSONExtractKeysAndValues('["1"]', toNullable(1)). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60518) (comment: 02013_json_function_null_column.sql) (in query: SELECT JSONExtractKeysAndValues('["1"]', toNullable(1));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsJSON.h:1379: DB::JSONExtractKeysAndValuesImpl::getReturnType(char const*, std::vector> const&) @ 0x000000000c12db3e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsJSON.h:460: DB::JSONOverloadResolver::build(std::vector> const&) const @ 0x000000000c12d38c in /usr/bin/clickhouse 8. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 2024.05.01 13:24:52.599771 [ 50482 ] {c2d44c5e-aa5f-42f5-8cdf-dc96bb91135e} TCPHandler: Code: 44. DB::Exception: The last argument of function JSONExtractKeysAndValues should be a constant string specifying the values' data type, illegal value: toNullable(1): While processing JSONExtractKeysAndValues('["1"]', toNullable(1)). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsJSON.h:1379: DB::JSONExtractKeysAndValuesImpl::getReturnType(char const*, std::vector> const&) @ 0x000000000c12db3e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsJSON.h:460: DB::JSONOverloadResolver::build(std::vector> const&) const @ 0x000000000c12d38c in /usr/bin/clickhouse 8. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 2024.05.01 13:24:56.137100 [ 50482 ] {75d48842-d739-430f-8188-8b74f9286423} executeQuery: Code: 621. DB::Exception: Normalization failed (strFromUTF8): U_INVALID_CHAR_FOUND: While processing char(228) AS value, normalizeUTF8NFC(value). (CANNOT_NORMALIZE_STRING) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60634) (comment: 02011_normalize_utf8.sql) (in query: SELECT char(228) AS value, normalizeUTF8NFC(value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&&) @ 0x000000001150a713 in /usr/bin/clickhouse 6. /build/src/Functions/normalizeString.cpp:120: DB::(anonymous namespace)::NormalizeUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000011504a46 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionStringToString.h:68: DB::FunctionStringToString, DB::(anonymous namespace)::NormalizeNFCImpl, false>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000115041a6 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:56.138119 [ 50482 ] {75d48842-d739-430f-8188-8b74f9286423} TCPHandler: Code: 621. DB::Exception: Normalization failed (strFromUTF8): U_INVALID_CHAR_FOUND: While processing char(228) AS value, normalizeUTF8NFC(value). (CANNOT_NORMALIZE_STRING), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&&) @ 0x000000001150a713 in /usr/bin/clickhouse 6. /build/src/Functions/normalizeString.cpp:120: DB::(anonymous namespace)::NormalizeUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000011504a46 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionStringToString.h:68: DB::FunctionStringToString, DB::(anonymous namespace)::NormalizeNFCImpl, false>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000115041a6 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:56.247806 [ 50482 ] {4fab240a-22c4-4e8d-8b5a-a758cece334a} executeQuery: Code: 621. DB::Exception: Normalization failed (strFromUTF8): U_INVALID_CHAR_FOUND: While processing char(228) AS value, normalizeUTF8NFD(value). (CANNOT_NORMALIZE_STRING) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60634) (comment: 02011_normalize_utf8.sql) (in query: SELECT char(228) AS value, normalizeUTF8NFD(value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&&) @ 0x000000001150a713 in /usr/bin/clickhouse 6. /build/src/Functions/normalizeString.cpp:120: DB::(anonymous namespace)::NormalizeUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000011506666 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionStringToString.h:68: DB::FunctionStringToString, DB::(anonymous namespace)::NormalizeNFDImpl, false>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011505e35 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:56.248955 [ 50482 ] {4fab240a-22c4-4e8d-8b5a-a758cece334a} TCPHandler: Code: 621. DB::Exception: Normalization failed (strFromUTF8): U_INVALID_CHAR_FOUND: While processing char(228) AS value, normalizeUTF8NFD(value). (CANNOT_NORMALIZE_STRING), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&&) @ 0x000000001150a713 in /usr/bin/clickhouse 6. /build/src/Functions/normalizeString.cpp:120: DB::(anonymous namespace)::NormalizeUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000011506666 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionStringToString.h:68: DB::FunctionStringToString, DB::(anonymous namespace)::NormalizeNFDImpl, false>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011505e35 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:56.364477 [ 5967 ] {22ae7a29-6889-4598-95cb-17afa632d9b3} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60652) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:24:56.364498 [ 50482 ] {5ba9b633-296a-4c30-946b-10a6fb418c8e} executeQuery: Code: 621. DB::Exception: Normalization failed (strFromUTF8): U_INVALID_CHAR_FOUND: While processing char(228) AS value, normalizeUTF8NFKC(value). (CANNOT_NORMALIZE_STRING) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60634) (comment: 02011_normalize_utf8.sql) (in query: SELECT char(228) AS value, normalizeUTF8NFKC(value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&&) @ 0x000000001150a713 in /usr/bin/clickhouse 6. /build/src/Functions/normalizeString.cpp:120: DB::(anonymous namespace)::NormalizeUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000011508206 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionStringToString.h:68: DB::FunctionStringToString, DB::(anonymous namespace)::NormalizeNFKCImpl, false>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000115079d5 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:56.365341 [ 5967 ] {22ae7a29-6889-4598-95cb-17afa632d9b3} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:24:56.365755 [ 50482 ] {5ba9b633-296a-4c30-946b-10a6fb418c8e} TCPHandler: Code: 621. DB::Exception: Normalization failed (strFromUTF8): U_INVALID_CHAR_FOUND: While processing char(228) AS value, normalizeUTF8NFKC(value). (CANNOT_NORMALIZE_STRING), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&&) @ 0x000000001150a713 in /usr/bin/clickhouse 6. /build/src/Functions/normalizeString.cpp:120: DB::(anonymous namespace)::NormalizeUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000011508206 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionStringToString.h:68: DB::FunctionStringToString, DB::(anonymous namespace)::NormalizeNFKCImpl, false>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000115079d5 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:56.474586 [ 50482 ] {bd137ef1-fda6-4e7a-816a-11216ed45f94} executeQuery: Code: 621. DB::Exception: Normalization failed (strFromUTF8): U_INVALID_CHAR_FOUND: While processing char(228) AS value, normalizeUTF8NFKD(value). (CANNOT_NORMALIZE_STRING) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60634) (comment: 02011_normalize_utf8.sql) (in query: SELECT char(228) AS value, normalizeUTF8NFKD(value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&&) @ 0x000000001150a713 in /usr/bin/clickhouse 6. /build/src/Functions/normalizeString.cpp:120: DB::(anonymous namespace)::NormalizeUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000011509da6 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionStringToString.h:68: DB::FunctionStringToString, DB::(anonymous namespace)::NormalizeNFKDImpl, false>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011509575 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:56.475540 [ 50482 ] {bd137ef1-fda6-4e7a-816a-11216ed45f94} TCPHandler: Code: 621. DB::Exception: Normalization failed (strFromUTF8): U_INVALID_CHAR_FOUND: While processing char(228) AS value, normalizeUTF8NFKD(value). (CANNOT_NORMALIZE_STRING), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&&) @ 0x000000001150a713 in /usr/bin/clickhouse 6. /build/src/Functions/normalizeString.cpp:120: DB::(anonymous namespace)::NormalizeUTF8Impl::vector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&) @ 0x0000000011509da6 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionStringToString.h:68: DB::FunctionStringToString, DB::(anonymous namespace)::NormalizeNFKDImpl, false>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011509575 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:56.883174 [ 50481 ] {57a4ee8d-ad6d-4c12-8fa1-c15c60bfc12e} executeQuery: Code: 43. DB::Exception: Wrong order of arguments for function divide: argument of numeric type cannot be first: While processing 2 / (1, 1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT 2 / (1, 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const* const&) @ 0x000000000b2421b3 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:966: DB::FunctionBinaryArithmetic::getFunctionForTupleAndNumberArithmetic(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000000dc504ea in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:1489: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000dd3733f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000da02e8f in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:24:56.884165 [ 50481 ] {57a4ee8d-ad6d-4c12-8fa1-c15c60bfc12e} TCPHandler: Code: 43. DB::Exception: Wrong order of arguments for function divide: argument of numeric type cannot be first: While processing 2 / (1, 1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const* const&) @ 0x000000000b2421b3 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:966: DB::FunctionBinaryArithmetic::getFunctionForTupleAndNumberArithmetic(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000000dc504ea in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:1489: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000dd3733f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000da02e8f in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:24:57.785251 [ 50481 ] {c9b272ed-73c4-4659-9e9e-788ec51e1f94} executeQuery: Code: 43. DB::Exception: Argument 0 of function L1Norm should be tuple, got UInt8: While processing L1Norm(1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT L1Norm(1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:724: DB::FunctionLNorm::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127e0269 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1433: DB::TupleOrArrayFunction::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127de9a1 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:24:57.786428 [ 50481 ] {c9b272ed-73c4-4659-9e9e-788ec51e1f94} TCPHandler: Code: 43. DB::Exception: Argument 0 of function L1Norm should be tuple, got UInt8: While processing L1Norm(1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:724: DB::FunctionLNorm::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127e0269 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1433: DB::TupleOrArrayFunction::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127de9a1 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:24:57.915304 [ 50481 ] {a99bfd67-3806-4650-9780-1779e01bc2d6} executeQuery: Code: 43. DB::Exception: Illegal types Tuple(UInt8, UInt8) and String of arguments of function divide: While processing (1, 1) / toString(1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT (1, 1) / toString(1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1618: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000dd37792 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000da02e8f in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:24:57.916497 [ 50481 ] {a99bfd67-3806-4650-9780-1779e01bc2d6} TCPHandler: Code: 43. DB::Exception: Illegal types Tuple(UInt8, UInt8) and String of arguments of function divide: While processing (1, 1) / toString(1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1618: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000dd37792 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000da02e8f in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:24:58.006234 [ 50481 ] {ac12205e-2e0a-49ec-a099-373e9a016519} executeQuery: Code: 43. DB::Exception: Illegal type String of argument of function negate: While executing function tupleNegate for tuple element 1: While processing -(1, toString(1)). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT -(1, toString(1));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionUnaryArithmetic.h:332: DB::FunctionUnaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000114f803f in /usr/bin/clickhouse 7. /build/src/Functions/FunctionUnaryArithmetic.h:260: DB::FunctionUnaryArithmetic::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000114f167a in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Functions/vectorFunctions.cpp:190: DB::FunctionTupleNegate::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127c5dea in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionUnaryArithmetic.h:272: DB::FunctionUnaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000114f7e06 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionUnaryArithmetic.h:260: DB::FunctionUnaryArithmetic::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000114f167a in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 2024.05.01 13:24:58.007522 [ 50481 ] {ac12205e-2e0a-49ec-a099-373e9a016519} TCPHandler: Code: 43. DB::Exception: Illegal type String of argument of function negate: While executing function tupleNegate for tuple element 1: While processing -(1, toString(1)). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionUnaryArithmetic.h:332: DB::FunctionUnaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000114f803f in /usr/bin/clickhouse 7. /build/src/Functions/FunctionUnaryArithmetic.h:260: DB::FunctionUnaryArithmetic::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000114f167a in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Functions/vectorFunctions.cpp:190: DB::FunctionTupleNegate::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127c5dea in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionUnaryArithmetic.h:272: DB::FunctionUnaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000114f7e06 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionUnaryArithmetic.h:260: DB::FunctionUnaryArithmetic::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000114f167a in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 2024.05.01 13:24:58.120884 [ 50481 ] {cbaa20c7-4f64-4d61-b66e-5d80cdf35665} executeQuery: Code: 43. DB::Exception: Illegal type Decimal(9, 4) of argument of function pow: While executing function LpNorm for tuple element 0: While processing LpNorm((1, 2), toDecimal32(2, 4)). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((1, 2), toDecimal32(2, 4));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionMathBinaryFloat64.h:45: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x00000000123e4647 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionMathBinaryFloat64.h:52: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001233c5d6 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Functions/vectorFunctions.cpp:1108: DB::FunctionLNorm::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127eee34 in /usr/bin/clickhouse 14. /build/src/Functions/vectorFunctions.cpp:1433: DB::TupleOrArrayFunction::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127ebbe1 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 2024.05.01 13:24:58.121771 [ 50481 ] {cbaa20c7-4f64-4d61-b66e-5d80cdf35665} TCPHandler: Code: 43. DB::Exception: Illegal type Decimal(9, 4) of argument of function pow: While executing function LpNorm for tuple element 0: While processing LpNorm((1, 2), toDecimal32(2, 4)). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionMathBinaryFloat64.h:45: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x00000000123e4647 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionMathBinaryFloat64.h:52: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001233c5d6 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Functions/vectorFunctions.cpp:1108: DB::FunctionLNorm::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127eee34 in /usr/bin/clickhouse 14. /build/src/Functions/vectorFunctions.cpp:1433: DB::TupleOrArrayFunction::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127ebbe1 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 2024.05.01 13:24:58.254682 [ 50481 ] {d28b92cf-baf3-41d2-80cf-82c1b03813ed} executeQuery: Code: 43. DB::Exception: Expected tuples of the same size as arguments of function dotProduct. Got Tuple(UInt8, UInt8) and Tuple(UInt8, UInt8, UInt8): While processing cosineDistance((1, 2), (2, 3, 4)). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT cosineDistance((1, 2), (2, 3, 4));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:351: DB::FunctionDotProduct::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127dc932 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1348: DB::FunctionCosineDistance::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012805d13 in /usr/bin/clickhouse 8. /build/src/Functions/vectorFunctions.cpp:1433: DB::TupleOrArrayFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012803421 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:24:58.380301 [ 50481 ] {d28b92cf-baf3-41d2-80cf-82c1b03813ed} TCPHandler: Code: 43. DB::Exception: Expected tuples of the same size as arguments of function dotProduct. Got Tuple(UInt8, UInt8) and Tuple(UInt8, UInt8, UInt8): While processing cosineDistance((1, 2), (2, 3, 4)). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:351: DB::FunctionDotProduct::getReturnTypeImpl(std::vector> const&) const @ 0x00000000127dc932 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1348: DB::FunctionCosineDistance::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012805d13 in /usr/bin/clickhouse 8. /build/src/Functions/vectorFunctions.cpp:1433: DB::TupleOrArrayFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012803421 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:24:58.380301 [ 5967 ] {f5aaf15c-8421-4a89-856a-929f6b1f9b9e} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(1 :: 0) -> throwIf(1) UInt8 : 1'. (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60728) (comment: 02006_client_test_hint_error_name.sql) (in query: select throwIf(1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 2024.05.01 13:24:58.381376 [ 5967 ] {f5aaf15c-8421-4a89-856a-929f6b1f9b9e} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(1 :: 0) -> throwIf(1) UInt8 : 1'. (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 2024.05.01 13:24:58.524988 [ 50481 ] {20b969b6-aed3-4b6a-9955-aad88a64b0ce} executeQuery: Code: 42. DB::Exception: Function tuple requires at least one argument.: While processing tuple() + tuple(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT tuple() + tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/tuple.h:49: DB::FunctionTuple::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001279c5d2 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:445: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe69f5 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:24:58.525938 [ 50481 ] {20b969b6-aed3-4b6a-9955-aad88a64b0ce} TCPHandler: Code: 42. DB::Exception: Function tuple requires at least one argument.: While processing tuple() + tuple(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/tuple.h:49: DB::FunctionTuple::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001279c5d2 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:445: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe69f5 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:24:58.534419 [ 50481 ] {f6e7c575-f94a-4575-a790-ff0b4e845b9e} executeQuery: Code: 42. DB::Exception: Number of arguments for function LpNorm doesn't match: passed 1, should be 2: While processing LpNorm((1, 2, 3)). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((1, 2, 3));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:24:58.535262 [ 50481 ] {f6e7c575-f94a-4575-a790-ff0b4e845b9e} TCPHandler: Code: 42. DB::Exception: Number of arguments for function LpNorm doesn't match: passed 1, should be 2: While processing LpNorm((1, 2, 3)). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:24:58.543084 [ 50481 ] {5a000fc3-c0ff-4ee8-ab46-c8a37d6ec2a9} executeQuery: Code: 42. DB::Exception: Number of arguments for function max2 doesn't match: passed 3, should be 2: While processing max2(1, 2, -1). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT max2(1, 2, -1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:24:58.543982 [ 50481 ] {5a000fc3-c0ff-4ee8-ab46-c8a37d6ec2a9} TCPHandler: Code: 42. DB::Exception: Number of arguments for function max2 doesn't match: passed 3, should be 2: While processing max2(1, 2, -1). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:24:58.688709 [ 50481 ] {fb1b7e9b-1092-429c-afdd-e87656c3bfab} executeQuery: Code: 44. DB::Exception: Second argument for function LpNorm must be either constant Float64 or constant UInt. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((1, 2, 3), materialize(4.));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1145: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ec72c in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ebabe in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc7fb68 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc7f568 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001eb604e7 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001edc6286 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cabd031 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cab1882 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa9645 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 2024.05.01 13:24:58.689741 [ 50481 ] {fb1b7e9b-1092-429c-afdd-e87656c3bfab} TCPHandler: Code: 44. DB::Exception: Second argument for function LpNorm must be either constant Float64 or constant UInt. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1145: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ec72c in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ebabe in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc7fb68 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc7f568 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001eb604e7 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001edc6286 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cabd031 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cab1882 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa9645 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 2024.05.01 13:24:58.829946 [ 50481 ] {148e5ae7-367c-4dfb-9c83-a9cf8f7c7764} executeQuery: Code: 44. DB::Exception: Second argument for function LpNorm must be either constant Float64 or constant UInt. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpDistance(tuple(*, 1), tuple(2, *), * + 1.) FROM numbers(3, 2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1145: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ec72c in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ebabe in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 13. /build/src/Functions/vectorFunctions.cpp:1252: DB::FunctionLDistance::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127fbf41 in /usr/bin/clickhouse 14. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127fb0be in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc7fb68 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc7f568 in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001eb604e7 in /usr/bin/clickhouse 23. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001edc6286 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cabd031 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cab1882 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa9645 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 2024.05.01 13:24:58.830989 [ 50481 ] {148e5ae7-367c-4dfb-9c83-a9cf8f7c7764} TCPHandler: Code: 44. DB::Exception: Second argument for function LpNorm must be either constant Float64 or constant UInt. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1145: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ec72c in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ebabe in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 13. /build/src/Functions/vectorFunctions.cpp:1252: DB::FunctionLDistance::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127fbf41 in /usr/bin/clickhouse 14. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127fb0be in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc7fb68 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc7f568 in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001eb604e7 in /usr/bin/clickhouse 23. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001edc6286 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cabd031 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:2769: DB::InterpreterSelectQuery::executeExpression(DB::QueryPlan&, std::shared_ptr const&, String const&) @ 0x000000001cab1882 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:1720: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa9645 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 2024.05.01 13:24:59.130735 [ 50481 ] {fa85afbf-084d-494a-bb89-36fe29fd64e0} executeQuery: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((3, 1, 4), 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((3, 1, 4), 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ecb25 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ebabe in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:59.131703 [ 50481 ] {fa85afbf-084d-494a-bb89-36fe29fd64e0} TCPHandler: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((3, 1, 4), 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ecb25 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ebabe in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:59.140524 [ 50481 ] {66c36e64-9d85-4700-b745-e2ee9aeb00db} executeQuery: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((1, 2, 3), 0.5). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((1, 2, 3), 0.5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ecb25 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ebabe in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:59.141430 [ 50481 ] {66c36e64-9d85-4700-b745-e2ee9aeb00db} TCPHandler: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((1, 2, 3), 0.5). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ecb25 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ebabe in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:59.149765 [ 50481 ] {ab1af491-d0f4-436b-8797-9d415662d4f7} executeQuery: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((1, 2, 3), inf). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((1, 2, 3), inf);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ecb25 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ebabe in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:59.150679 [ 50481 ] {ab1af491-d0f4-436b-8797-9d415662d4f7} TCPHandler: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((1, 2, 3), inf). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ecb25 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ebabe in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:59.159185 [ 50481 ] {9b3377ac-9f70-43d5-9000-553ae89d3daa} executeQuery: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((1, 2, 3), -1.). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((1, 2, 3), -1.);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ecb25 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ebabe in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:59.160161 [ 50481 ] {9b3377ac-9f70-43d5-9000-553ae89d3daa} TCPHandler: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((1, 2, 3), -1.). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ecb25 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ebabe in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:59.275544 [ 50481 ] {4f126790-3030-48e5-9313-87adb15df30f} executeQuery: Code: 44. DB::Exception: Second argument for function LpNorm must be either constant Float64 or constant UInt: While processing LpNorm((1, 2, 3), -1). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((1, 2, 3), -1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1153: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ec9c4 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ebabe in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:59.276442 [ 50481 ] {4f126790-3030-48e5-9313-87adb15df30f} TCPHandler: Code: 44. DB::Exception: Second argument for function LpNorm must be either constant Float64 or constant UInt: While processing LpNorm((1, 2, 3), -1). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1153: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ec9c4 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ebabe in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:59.284814 [ 50481 ] {1905edfb-f884-42e5-a122-f25ec156e943} executeQuery: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((1, 2, 3), 0.). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60650) (comment: 02011_tuple_vector_functions.sql) (in query: SELECT LpNorm((1, 2, 3), 0.);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ecb25 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ebabe in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:24:59.285670 [ 50481 ] {1905edfb-f884-42e5-a122-f25ec156e943} TCPHandler: Code: 69. DB::Exception: Second argument for function LpNorm must be not less than one and not be an infinity: While processing LpNorm((1, 2, 3), 0.). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/vectorFunctions.cpp:1156: DB::FunctionLNorm::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ecb25 in /usr/bin/clickhouse 7. /build/src/Functions/vectorFunctions.cpp:1439: DB::TupleOrArrayFunction::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ebabe in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:25:05.067627 [ 50595 ] {a7d4d0ec-4e92-4345-a6ef-1e595db6381f} executeQuery: Code: 497. DB::Exception: u_02015_denied: Not enough privileges. To execute this query, it's necessary to have the grant INSERT(id, s) ON test_fq62bzje.async_inserts. (ACCESS_DENIED) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:54648) (comment: 02015_async_inserts_4.sh) (in query: INSERT INTO async_inserts FORMAT JSONEachRow ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:517: auto bool DB::ContextAccess::checkAccessImplHelper>, std::basic_string_view>, std::vector>>(DB::AccessFlags, std::basic_string_view> const&, std::basic_string_view> const&, std::vector> const&) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04f06d in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:557: bool DB::ContextAccess::checkAccessImplHelper>, std::basic_string_view>, std::vector>>(DB::AccessFlags, std::basic_string_view> const&, std::basic_string_view> const&, std::vector> const&) const @ 0x000000001b04da36 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:628: bool DB::ContextAccess::checkAccessImpl>, std::vector>>(DB::AccessFlags const&, std::basic_string_view>, std::basic_string_view> const&, std::vector> const&) const @ 0x000000001b015130 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:700: DB::ContextAccess::checkAccess(DB::AccessFlags const&, std::basic_string_view>, std::basic_string_view>, std::vector> const&) const @ 0x000000001b0105b1 in /usr/bin/clickhouse 10. /build/src/Interpreters/Context.cpp:1186: void DB::Context::checkAccessImpl>>(DB::AccessFlags const&, String const&, String const&, std::vector> const&) const @ 0x000000001bdda84e in /usr/bin/clickhouse 11. /build/src/Interpreters/Context.cpp:1198: DB::Context::checkAccess(DB::AccessFlags const&, DB::StorageID const&, std::vector> const&) const @ 0x000000001bdbb160 in /usr/bin/clickhouse 12. /build/src/Interpreters/AsynchronousInsertQueue.cpp:224: DB::AsynchronousInsertQueue::push(std::shared_ptr, std::shared_ptr) @ 0x000000001bd6d572 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:948: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09f6bf in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 15. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 16. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 17. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:05.068827 [ 50595 ] {a7d4d0ec-4e92-4345-a6ef-1e595db6381f} DynamicQueryHandler: Code: 497. DB::Exception: u_02015_denied: Not enough privileges. To execute this query, it's necessary to have the grant INSERT(id, s) ON test_fq62bzje.async_inserts. (ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:517: auto bool DB::ContextAccess::checkAccessImplHelper>, std::basic_string_view>, std::vector>>(DB::AccessFlags, std::basic_string_view> const&, std::basic_string_view> const&, std::vector> const&) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04f06d in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:557: bool DB::ContextAccess::checkAccessImplHelper>, std::basic_string_view>, std::vector>>(DB::AccessFlags, std::basic_string_view> const&, std::basic_string_view> const&, std::vector> const&) const @ 0x000000001b04da36 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:628: bool DB::ContextAccess::checkAccessImpl>, std::vector>>(DB::AccessFlags const&, std::basic_string_view>, std::basic_string_view> const&, std::vector> const&) const @ 0x000000001b015130 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:700: DB::ContextAccess::checkAccess(DB::AccessFlags const&, std::basic_string_view>, std::basic_string_view>, std::vector> const&) const @ 0x000000001b0105b1 in /usr/bin/clickhouse 10. /build/src/Interpreters/Context.cpp:1186: void DB::Context::checkAccessImpl>>(DB::AccessFlags const&, String const&, String const&, std::vector> const&) const @ 0x000000001bdda84e in /usr/bin/clickhouse 11. /build/src/Interpreters/Context.cpp:1198: DB::Context::checkAccess(DB::AccessFlags const&, DB::StorageID const&, std::vector> const&) const @ 0x000000001bdbb160 in /usr/bin/clickhouse 12. /build/src/Interpreters/AsynchronousInsertQueue.cpp:224: DB::AsynchronousInsertQueue::push(std::shared_ptr, std::shared_ptr) @ 0x000000001bd6d572 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:948: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09f6bf in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 15. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 16. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 17. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:25:06.998326 [ 5967 ] {70654654-e7df-4ae5-9c1f-34b8a7ff6e3d} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::1]:9000 -> [::1]:32772). (NETWORK_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32772) (comment: 02003_memory_limit_in_client.sh) (in query: SELECT arrayMap(x -> range(x), range(number)) FROM numbers(1000) -- { clientError MEMORY_LIMIT_EXCEEDED }), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:96: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6904 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/IO/WriteBuffer.h:71: DB::WriteBuffer::nextIfAtEnd() @ 0x000000000b1fe0f8 in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:86: DB::WriteBuffer::write(char const*, unsigned long) @ 0x000000000b210fd3 in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationNumber.cpp:151: DB::SerializationNumber::serializeBinaryBulk(DB::IColumn const&, DB::WriteBuffer&, unsigned long, unsigned long) const @ 0x000000001ba66cc0 in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationArray.cpp:312: DB::SerializationArray::serializeBinaryBulkWithMultipleStreams(DB::IColumn const&, unsigned long, unsigned long, DB::ISerialization::SerializeBinaryBulkSettings&, std::shared_ptr&) const @ 0x000000001ba22f7a in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationArray.cpp:339: DB::SerializationArray::serializeBinaryBulkWithMultipleStreams(DB::IColumn const&, unsigned long, unsigned long, DB::ISerialization::SerializeBinaryBulkSettings&, std::shared_ptr&) const @ 0x000000001ba23192 in /usr/bin/clickhouse 13. /build/src/Formats/NativeWriter.cpp:62: DB::writeData(DB::ISerialization const&, COW::immutable_ptr const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x000000001e62c335 in /usr/bin/clickhouse 14. /build/src/Formats/NativeWriter.cpp:163: DB::NativeWriter::write(DB::Block const&) @ 0x000000001e62c036 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2035: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e5e4a55 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e2099 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:07.087488 [ 12027 ] {dcab5a44-0b5f-4898-9487-ccf84bf12600} executeQuery: Code: 62. DB::Exception: Syntax error: failed at position 8 ('$'): $$ab . Expected one of: ALL, DISTINCT ON, DISTINCT, TOP, not empty list of expressions, list of expressions, list of elements, expression with optional alias, element of expression with optional alias, lambda expression, CAST operator, NOT, INTERVAL, CASE, DATE, TIMESTAMP, tuple, collection of literals, array, number, literal, NULL, Bool, true, false, string literal, asterisk, qualified asterisk, compound identifier, identifier, COLUMNS matcher, COLUMNS, qualified COLUMNS matcher, substitution, MySQL-style global variable. (SYNTAX_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:54696) (comment: 01949_heredoc_unfinished.sh) (in query: SELECT $$ab ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b1f8915 in /usr/bin/clickhouse 6. /build/src/Parsers/parseQuery.cpp:363: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long) @ 0x000000001f45f687 in /usr/bin/clickhouse 7. /build/src/Parsers/parseQuery.cpp:375: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long) @ 0x000000001f45f766 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:714: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09d288 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:07.087511 [ 5967 ] {70654654-e7df-4ae5-9c1f-34b8a7ff6e3d} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::1]:9000 -> [::1]:32772). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:96: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6904 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/IO/WriteBuffer.h:71: DB::WriteBuffer::nextIfAtEnd() @ 0x000000000b1fe0f8 in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:86: DB::WriteBuffer::write(char const*, unsigned long) @ 0x000000000b210fd3 in /usr/bin/clickhouse 10. /build/src/DataTypes/Serializations/SerializationNumber.cpp:151: DB::SerializationNumber::serializeBinaryBulk(DB::IColumn const&, DB::WriteBuffer&, unsigned long, unsigned long) const @ 0x000000001ba66cc0 in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationArray.cpp:312: DB::SerializationArray::serializeBinaryBulkWithMultipleStreams(DB::IColumn const&, unsigned long, unsigned long, DB::ISerialization::SerializeBinaryBulkSettings&, std::shared_ptr&) const @ 0x000000001ba22f7a in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationArray.cpp:339: DB::SerializationArray::serializeBinaryBulkWithMultipleStreams(DB::IColumn const&, unsigned long, unsigned long, DB::ISerialization::SerializeBinaryBulkSettings&, std::shared_ptr&) const @ 0x000000001ba23192 in /usr/bin/clickhouse 13. /build/src/Formats/NativeWriter.cpp:62: DB::writeData(DB::ISerialization const&, COW::immutable_ptr const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x000000001e62c335 in /usr/bin/clickhouse 14. /build/src/Formats/NativeWriter.cpp:163: DB::NativeWriter::write(DB::Block const&) @ 0x000000001e62c036 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2035: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e5e4a55 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e2099 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:07.259035 [ 50481 ] {df21fe68-70e4-4222-8440-54ed6f686ce2} executeQuery: Code: 6. DB::Exception: Illegal character '\x0d' in partition id starting with 'test_'. (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32828) (comment: 01944_insert_partition_by.sql) (in query: INSERT INTO FUNCTION s3('http://localhost:9001/foo/test_{_partition_id}.csv', 'admin', '[HIDDEN]', 'CSV', 'id Int32, val String') PARTITION BY val FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d5fb30c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d5fa6ff in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:967: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d90b096 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d90acce in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d5f921d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d5fa275 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:25:07.259194 [ 5967 ] {70654654-e7df-4ae5-9c1f-34b8a7ff6e3d} TCPHandler: Client has gone away. 2024.05.01 13:25:07.259268 [ 12027 ] {dcab5a44-0b5f-4898-9487-ccf84bf12600} DynamicQueryHandler: Code: 62. DB::Exception: Syntax error: failed at position 8 ('$'): $$ab . Expected one of: ALL, DISTINCT ON, DISTINCT, TOP, not empty list of expressions, list of expressions, list of elements, expression with optional alias, element of expression with optional alias, lambda expression, CAST operator, NOT, INTERVAL, CASE, DATE, TIMESTAMP, tuple, collection of literals, array, number, literal, NULL, Bool, true, false, string literal, asterisk, qualified asterisk, compound identifier, identifier, COLUMNS matcher, COLUMNS, qualified COLUMNS matcher, substitution, MySQL-style global variable. (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b1f8915 in /usr/bin/clickhouse 6. /build/src/Parsers/parseQuery.cpp:363: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long) @ 0x000000001f45f687 in /usr/bin/clickhouse 7. /build/src/Parsers/parseQuery.cpp:375: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long) @ 0x000000001f45f766 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:714: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09d288 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:25:07.273797 [ 50482 ] {2dbe47a6-d9b7-49ec-84c0-d3d2bd7ca217} executeQuery: Code: 62. DB::Exception: Syntax error: failed at position 8 ('$'): $$ . Expected one of: ALL, DISTINCT ON, DISTINCT, TOP, not empty list of expressions, list of expressions, list of elements, expression with optional alias, element of expression with optional alias, lambda expression, CAST operator, NOT, INTERVAL, CASE, DATE, TIMESTAMP, tuple, collection of literals, array, number, literal, NULL, Bool, true, false, string literal, asterisk, qualified asterisk, compound identifier, identifier, COLUMNS matcher, COLUMNS, qualified COLUMNS matcher, substitution, MySQL-style global variable. (SYNTAX_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:54712) (comment: 01949_heredoc_unfinished.sh) (in query: SELECT $$ ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b1f8915 in /usr/bin/clickhouse 6. /build/src/Parsers/parseQuery.cpp:363: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long) @ 0x000000001f45f687 in /usr/bin/clickhouse 7. /build/src/Parsers/parseQuery.cpp:375: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long) @ 0x000000001f45f766 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:714: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09d288 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:07.274655 [ 50482 ] {2dbe47a6-d9b7-49ec-84c0-d3d2bd7ca217} DynamicQueryHandler: Code: 62. DB::Exception: Syntax error: failed at position 8 ('$'): $$ . Expected one of: ALL, DISTINCT ON, DISTINCT, TOP, not empty list of expressions, list of expressions, list of elements, expression with optional alias, element of expression with optional alias, lambda expression, CAST operator, NOT, INTERVAL, CASE, DATE, TIMESTAMP, tuple, collection of literals, array, number, literal, NULL, Bool, true, false, string literal, asterisk, qualified asterisk, compound identifier, identifier, COLUMNS matcher, COLUMNS, qualified COLUMNS matcher, substitution, MySQL-style global variable. (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b1f8915 in /usr/bin/clickhouse 6. /build/src/Parsers/parseQuery.cpp:363: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long) @ 0x000000001f45f687 in /usr/bin/clickhouse 7. /build/src/Parsers/parseQuery.cpp:375: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long) @ 0x000000001f45f766 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:714: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09d288 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:25:07.286897 [ 50482 ] {bab2a959-5846-4662-9c81-2c183586ba98} executeQuery: Code: 62. DB::Exception: Syntax error: failed at position 8 ('$'): $ . Expected one of: ALL, DISTINCT ON, DISTINCT, TOP, not empty list of expressions, list of expressions, list of elements, expression with optional alias, element of expression with optional alias, lambda expression, CAST operator, NOT, INTERVAL, CASE, DATE, TIMESTAMP, tuple, collection of literals, array, number, literal, NULL, Bool, true, false, string literal, asterisk, qualified asterisk, compound identifier, identifier, COLUMNS matcher, COLUMNS, qualified COLUMNS matcher, substitution, MySQL-style global variable. (SYNTAX_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:54718) (comment: 01949_heredoc_unfinished.sh) (in query: SELECT $ ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b1f8915 in /usr/bin/clickhouse 6. /build/src/Parsers/parseQuery.cpp:363: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long) @ 0x000000001f45f687 in /usr/bin/clickhouse 7. /build/src/Parsers/parseQuery.cpp:375: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long) @ 0x000000001f45f766 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:714: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09d288 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:07.287781 [ 50482 ] {bab2a959-5846-4662-9c81-2c183586ba98} DynamicQueryHandler: Code: 62. DB::Exception: Syntax error: failed at position 8 ('$'): $ . Expected one of: ALL, DISTINCT ON, DISTINCT, TOP, not empty list of expressions, list of expressions, list of elements, expression with optional alias, element of expression with optional alias, lambda expression, CAST operator, NOT, INTERVAL, CASE, DATE, TIMESTAMP, tuple, collection of literals, array, number, literal, NULL, Bool, true, false, string literal, asterisk, qualified asterisk, compound identifier, identifier, COLUMNS matcher, COLUMNS, qualified COLUMNS matcher, substitution, MySQL-style global variable. (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b1f8915 in /usr/bin/clickhouse 6. /build/src/Parsers/parseQuery.cpp:363: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long) @ 0x000000001f45f687 in /usr/bin/clickhouse 7. /build/src/Parsers/parseQuery.cpp:375: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long) @ 0x000000001f45f766 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:714: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09d288 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:25:07.325879 [ 50481 ] {df21fe68-70e4-4222-8440-54ed6f686ce2} TCPHandler: Code: 6. DB::Exception: Illegal character '\x0d' in partition id starting with 'test_'. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d5fb30c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d5fa6ff in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:967: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d90b096 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d90acce in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d5f921d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d5fa275 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:25:07.486940 [ 50481 ] {1928ade3-9746-4c0a-a223-65b4af1b23a0} executeQuery: Code: 6. DB::Exception: Illegal character '\x00' in partition id starting with 'test_abc'. (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32828) (comment: 01944_insert_partition_by.sql) (in query: INSERT INTO FUNCTION s3('http://localhost:9001/foo/test_{_partition_id}.csv', 'admin', '[HIDDEN]', 'CSV', 'id Int32, val String') PARTITION BY val FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d5fb30c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d5fa6ff in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:967: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d90b096 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d90acce in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d5f921d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d5fa275 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:25:07.534158 [ 50482 ] {bae380cb-b0f6-4ab2-bc94-68a39ba044c8} ConnectionPoolWithFailover: Connection failed at try â„–1, reason: Code: 210. DB::NetException: Net Exception: Network is unreachable (255.255.255.255:9000). (NETWORK_ERROR) (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:25:07.663688 [ 50481 ] {1928ade3-9746-4c0a-a223-65b4af1b23a0} TCPHandler: Code: 6. DB::Exception: Illegal character '\x00' in partition id starting with 'test_abc'. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d5fb30c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d5fa6ff in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:967: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d90b096 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d90acce in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d5f921d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d5fa275 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:25:07.663771 [ 50482 ] {bae380cb-b0f6-4ab2-bc94-68a39ba044c8} executeQuery: Code: 519. DB::NetException: All attempts to get table structure failed. Log: . (NO_REMOTE_SHARD_AVAILABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32866) (comment: 01956_skip_unavailable_shards_excessive_attempts.sh) (in query: select * from remote('255.255.255.255', system.one) settings use_hedged_requests=0), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type>, String&) @ 0x000000001d9e91d3 in /usr/bin/clickhouse 6. /build/src/Storages/getStructureOfRemoteTable.cpp:166: DB::getStructureOfRemoteTable(DB::Cluster const&, DB::StorageID const&, std::shared_ptr, std::shared_ptr const&) @ 0x000000001d9e7d76 in /usr/bin/clickhouse 7. /build/src/TableFunctions/TableFunctionRemote.cpp:345: DB::TableFunctionRemote::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000001a944162 in /usr/bin/clickhouse 8. /build/src/TableFunctions/TableFunctionRemote.cpp:305: DB::TableFunctionRemote::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a943676 in /usr/bin/clickhouse 9. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 10. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 11. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:07.665624 [ 50482 ] {bae380cb-b0f6-4ab2-bc94-68a39ba044c8} TCPHandler: Code: 519. DB::NetException: All attempts to get table structure failed. Log: . (NO_REMOTE_SHARD_AVAILABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type>, String&) @ 0x000000001d9e91d3 in /usr/bin/clickhouse 6. /build/src/Storages/getStructureOfRemoteTable.cpp:166: DB::getStructureOfRemoteTable(DB::Cluster const&, DB::StorageID const&, std::shared_ptr, std::shared_ptr const&) @ 0x000000001d9e7d76 in /usr/bin/clickhouse 7. /build/src/TableFunctions/TableFunctionRemote.cpp:345: DB::TableFunctionRemote::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000001a944162 in /usr/bin/clickhouse 8. /build/src/TableFunctions/TableFunctionRemote.cpp:305: DB::TableFunctionRemote::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001a943676 in /usr/bin/clickhouse 9. /build/src/TableFunctions/ITableFunction.cpp:37: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001ac041f3 in /usr/bin/clickhouse 10. /build/src/Interpreters/Context.cpp:1730: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbf557 in /usr/bin/clickhouse 11. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:07.919830 [ 50481 ] {66ef8f58-a91a-4d2b-b8ed-e4abebb6d3e5} executeQuery: Code: 6. DB::Exception: Incorrect non-UTF8 sequence in key. (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32828) (comment: 01944_insert_partition_by.sql) (in query: INSERT INTO FUNCTION s3('http://localhost:9001/foo/test_{_partition_id}.csv', 'admin', '[HIDDEN]', 'CSV', 'id Int32, val String') PARTITION BY val FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [35]) @ 0x000000000b1fc59e in /usr/bin/clickhouse 6. /build/src/Storages/StorageS3.cpp:964: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d90b052 in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d90acce in /usr/bin/clickhouse 8. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d5f921d in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d5fa275 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:25:07.977275 [ 50481 ] {66ef8f58-a91a-4d2b-b8ed-e4abebb6d3e5} TCPHandler: Code: 6. DB::Exception: Incorrect non-UTF8 sequence in key. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [35]) @ 0x000000000b1fc59e in /usr/bin/clickhouse 6. /build/src/Storages/StorageS3.cpp:964: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d90b052 in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d90acce in /usr/bin/clickhouse 8. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d5f921d in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d5fa275 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:25:08.086766 [ 50481 ] {4c896340-2bc0-4b80-952b-52b4df28be21} executeQuery: Code: 6. DB::Exception: Illegal character '\x7d' in partition id starting with 'test_abc'. (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32828) (comment: 01944_insert_partition_by.sql) (in query: INSERT INTO FUNCTION s3('http://localhost:9001/foo/test_{_partition_id}.csv', 'admin', '[HIDDEN]', 'CSV', 'id Int32, val String') PARTITION BY val FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d5fb30c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d5fa6ff in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:967: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d90b096 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d90acce in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d5f921d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d5fa275 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:25:08.146253 [ 50481 ] {4c896340-2bc0-4b80-952b-52b4df28be21} TCPHandler: Code: 6. DB::Exception: Illegal character '\x7d' in partition id starting with 'test_abc'. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d5fb30c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d5fa6ff in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:967: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d90b096 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d90acce in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d5f921d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d5fa275 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:25:08.262799 [ 50481 ] {a5528784-534a-426d-a3e2-fd3a0680b28f} executeQuery: Code: 6. DB::Exception: Illegal character '\x2a' in partition id starting with 'test_abc'. (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32828) (comment: 01944_insert_partition_by.sql) (in query: INSERT INTO FUNCTION s3('http://localhost:9001/foo/test_{_partition_id}.csv', 'admin', '[HIDDEN]', 'CSV', 'id Int32, val String') PARTITION BY val FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d5fb30c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d5fa6ff in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:967: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d90b096 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d90acce in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d5f921d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d5fa275 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:25:08.331278 [ 50481 ] {a5528784-534a-426d-a3e2-fd3a0680b28f} TCPHandler: Code: 6. DB::Exception: Illegal character '\x2a' in partition id starting with 'test_abc'. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d5fb30c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d5fa6ff in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:967: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d90b096 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d90acce in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d5f921d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d5fa275 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:25:08.580120 [ 50481 ] {80c0e159-0a51-4c9d-bde8-5b2f84124dcb} executeQuery: Code: 36. DB::Exception: Incorrect key length (not empty, max 1023 characters), got: 0. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32828) (comment: 01944_insert_partition_by.sql) (in query: INSERT INTO FUNCTION s3('http://localhost:9001/foo/{_partition_id}', 'admin', '[HIDDEN]', 'CSV', 'id Int32, val String') PARTITION BY val FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9158f3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageS3.cpp:961: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d90afc9 in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d90acce in /usr/bin/clickhouse 8. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d5f921d in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d5fa275 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:25:08.637436 [ 50481 ] {80c0e159-0a51-4c9d-bde8-5b2f84124dcb} TCPHandler: Code: 36. DB::Exception: Incorrect key length (not empty, max 1023 characters), got: 0. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9158f3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageS3.cpp:961: DB::PartitionedStorageS3Sink::validateKey(String const&) @ 0x000000001d90afc9 in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:918: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d90acce in /usr/bin/clickhouse 8. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d5f921d in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d5fa275 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:25:08.878111 [ 50481 ] {9fa8e811-de7c-4894-b6ec-5c6b2b206190} executeQuery: Code: 36. DB::Exception: Bucket name length is out of bounds in virtual hosted style S3 URI: ''. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32828) (comment: 01944_insert_partition_by.sql) (in query: INSERT INTO FUNCTION s3('http://localhost:9001/{_partition_id}/key.csv', 'admin', '[HIDDEN]', 'CSV', 'id Int32, val String') PARTITION BY val FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/IO/S3/URI.cpp:119: DB::S3::URI::validateBucket(String const&, Poco::URI const&) @ 0x000000001a9a01eb in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:946: DB::PartitionedStorageS3Sink::validateBucket(String const&) @ 0x000000001d90ae20 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:915: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d90ac9c in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d5f921d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d5fa275 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:25:08.936852 [ 50481 ] {9fa8e811-de7c-4894-b6ec-5c6b2b206190} TCPHandler: Code: 36. DB::Exception: Bucket name length is out of bounds in virtual hosted style S3 URI: ''. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/IO/S3/URI.cpp:119: DB::S3::URI::validateBucket(String const&, Poco::URI const&) @ 0x000000001a9a01eb in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:946: DB::PartitionedStorageS3Sink::validateBucket(String const&) @ 0x000000001d90ae20 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:915: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d90ac9c in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d5f921d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d5fa275 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:25:09.191389 [ 50481 ] {9a813a3e-c8df-402d-a2e6-2389980955dc} executeQuery: Code: 6. DB::Exception: Illegal character '\x2f' in partition id starting with 'aa'. (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32828) (comment: 01944_insert_partition_by.sql) (in query: INSERT INTO FUNCTION s3('http://localhost:9001/{_partition_id}/key.csv', 'admin', '[HIDDEN]', 'CSV', 'id Int32, val String') PARTITION BY val FORMAT Values), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d5fb30c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d5fa6ff in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:952: DB::PartitionedStorageS3Sink::validateBucket(String const&) @ 0x000000001d90af04 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:915: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d90ac9c in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d5f921d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d5fa275 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:25:09.251878 [ 50481 ] {9a813a3e-c8df-402d-a2e6-2389980955dc} TCPHandler: Code: 6. DB::Exception: Illegal character '\x2f' in partition id starting with 'aa'. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned int&, String&&) @ 0x000000001d5fb30c in /usr/bin/clickhouse 6. /build/src/Storages/PartitionedSink.cpp:139: DB::PartitionedSink::validatePartitionKey(String const&, bool) @ 0x000000001d5fa6ff in /usr/bin/clickhouse 7. /build/src/Storages/StorageS3.cpp:952: DB::PartitionedStorageS3Sink::validateBucket(String const&) @ 0x000000001d90af04 in /usr/bin/clickhouse 8. /build/src/Storages/StorageS3.cpp:915: DB::PartitionedStorageS3Sink::createSinkForPartition(String const&) @ 0x000000001d90ac9c in /usr/bin/clickhouse 9. /build/src/Storages/PartitionedSink.cpp:50: DB::PartitionedSink::getSinkForPartitionKey(StringRef) @ 0x000000001d5f921d in /usr/bin/clickhouse 10. /build/src/Storages/PartitionedSink.cpp:109: DB::PartitionedSink::consume(DB::Chunk) @ 0x000000001d5fa275 in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:25:09.868443 [ 5026 ] {ab7aa178-aa5b-4eb6-a484-4209807267b6} ConnectionPoolWithFailover: Connection failed at try â„–1, reason: Code: 210. DB::NetException: Net Exception: Network is unreachable (255.255.255.255:9000). (NETWORK_ERROR) (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:25:11.694294 [ 12022 ] {2536dbeb-206e-43e2-959c-352098513591} ConnectionPoolWithFailover: Connection failed at try â„–1, reason: Code: 210. DB::NetException: Net Exception: Network is unreachable (255.255.255.255:9000). (NETWORK_ERROR) (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:25:11.956273 [ 3787 ] {2536dbeb-206e-43e2-959c-352098513591} ConnectionPoolWithFailover: Connection failed at try â„–1, reason: Code: 210. DB::NetException: Net Exception: Network is unreachable (255.255.255.255:9000). (NETWORK_ERROR) (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:25:15.611414 [ 12024 ] {ed754e8f-2ce2-4023-a0d9-d35e840de0e3} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:55086). (NETWORK_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55086) (in query: SELECT DISTINCT arrayJoin(extractAll(name, '[\\w_]{2,}')) AS res FROM (SELECT * FROM viewIfPermitted(SELECT name FROM system.functions ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT name FROM system.table_engines ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT name FROM system.formats ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT name FROM system.table_functions ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT name FROM system.data_type_families ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT name FROM system.merge_tree_settings ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT name FROM system.settings ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT cluster FROM system.clusters ELSE null('cluster String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT macro FROM system.macros ELSE null('macro String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT policy_name FROM system.storage_policies ELSE null('policy_name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT concat(func.name, comb.name) AS x FROM system.functions AS func CROSS JOIN system.aggregate_function_combinators AS comb WHERE is_aggregate ELSE null('x String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT name FROM system.databases LIMIT 10000 ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT DISTINCT name FROM system.tables LIMIT 10000 ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT DISTINCT name FROM system.dictionaries LIMIT 10000 ELSE null('name String')) UNION ALL SELECT * FROM viewIfPermitted(SELECT DISTINCT name FROM system.columns LIMIT 10000 ELSE null('name String'))) WHERE notEmpty(res)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6ba4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2036: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e5e4a72 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e2099 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:15.702825 [ 12024 ] {ed754e8f-2ce2-4023-a0d9-d35e840de0e3} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:55086). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6ba4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2036: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e5e4a72 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e2099 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:15.703348 [ 12024 ] {ed754e8f-2ce2-4023-a0d9-d35e840de0e3} TCPHandler: Client has gone away. 2024.05.01 13:25:17.132790 [ 12036 ] {a5d435be-0b43-49da-ab3a-36f28119ecdc} executeQuery: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt32: While processing accurateCast(1e35, 'UInt32'). (CANNOT_CONVERT_TYPE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55124) (comment: 01906_bigint_accurate_cast_ubsan.sql) (in query: SELECT accurateCast(1e35, 'UInt32');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7cf86e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)::operator(), DB::DataTypeNumber>>(DB::DataTypeNumber const&) const @ 0x000000000b7c7b57 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)&&) @ 0x000000000b7c6a80 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7c66c9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7c6626 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7c65c0 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7c6560 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7c6508 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:17.134986 [ 12036 ] {a5d435be-0b43-49da-ab3a-36f28119ecdc} TCPHandler: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt32: While processing accurateCast(1e35, 'UInt32'). (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7cf86e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)::operator(), DB::DataTypeNumber>>(DB::DataTypeNumber const&) const @ 0x000000000b7c7b57 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)&&) @ 0x000000000b7c6a80 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7c66c9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7c6626 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7c65c0 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7c6560 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7c6508 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:17.356418 [ 12036 ] {90412ac1-89e4-43ce-96e7-9b6dadddadca} executeQuery: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt64: While processing accurateCast(1e35, 'UInt64'). (CANNOT_CONVERT_TYPE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55124) (comment: 01906_bigint_accurate_cast_ubsan.sql) (in query: SELECT accurateCast(1e35, 'UInt64');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7dc7ce in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)::operator(), DB::DataTypeNumber>>(DB::DataTypeNumber const&) const @ 0x000000000b7d4a57 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)&&) @ 0x000000000b7d3980 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7d35c9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d3526 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d34c0 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d3460 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7d3408 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:17.357814 [ 12036 ] {90412ac1-89e4-43ce-96e7-9b6dadddadca} TCPHandler: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt64: While processing accurateCast(1e35, 'UInt64'). (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7dc7ce in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)::operator(), DB::DataTypeNumber>>(DB::DataTypeNumber const&) const @ 0x000000000b7d4a57 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)&&) @ 0x000000000b7d3980 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7d35c9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d3526 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d34c0 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d3460 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7d3408 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:17.592319 [ 12036 ] {b49a8491-4044-482e-a669-5010d16f768e} executeQuery: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt128: While processing accurateCast(1e35, 'UInt128'). (CANNOT_CONVERT_TYPE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55124) (comment: 01906_bigint_accurate_cast_ubsan.sql) (in query: SELECT accurateCast(1e35, 'UInt128');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber>, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7e974e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)::operator(), DB::DataTypeNumber>>>(DB::DataTypeNumber> const&) const @ 0x000000000b7e19d7 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)&&) @ 0x000000000b7e0900 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7e0549 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7e04a6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7e0440 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7e03e0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7e0388 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:17.593779 [ 12036 ] {b49a8491-4044-482e-a669-5010d16f768e} TCPHandler: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt128: While processing accurateCast(1e35, 'UInt128'). (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber>, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7e974e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)::operator(), DB::DataTypeNumber>>>(DB::DataTypeNumber> const&) const @ 0x000000000b7e19d7 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)&&) @ 0x000000000b7e0900 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7e0549 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7e04a6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7e0440 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7e03e0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7e0388 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:17.811499 [ 12036 ] {57e24940-0469-4cbb-aaba-dd0a48d69976} executeQuery: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt256: While processing accurateCast(1e35, 'UInt256'). (CANNOT_CONVERT_TYPE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55124) (comment: 01906_bigint_accurate_cast_ubsan.sql) (in query: SELECT accurateCast(1e35, 'UInt256');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber>, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7f66ae in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)::operator(), DB::DataTypeNumber>>>(DB::DataTypeNumber> const&) const @ 0x000000000b7ee977 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)&&) @ 0x000000000b7ed8a0 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7ed4e9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ed446 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ed3e0 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ed380 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7ed328 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:17.812901 [ 12036 ] {57e24940-0469-4cbb-aaba-dd0a48d69976} TCPHandler: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt256: While processing accurateCast(1e35, 'UInt256'). (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber>, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7f66ae in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)::operator(), DB::DataTypeNumber>>>(DB::DataTypeNumber> const&) const @ 0x000000000b7ee977 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)&&) @ 0x000000000b7ed8a0 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7ed4e9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ed446 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ed3e0 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ed380 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7ed328 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:18.217341 [ 12036 ] {33e057ae-a0ae-4a5f-9163-16812b339122} executeQuery: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt64: While processing accurateCast(100000000000000000000., 'UInt64'). (CANNOT_CONVERT_TYPE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55124) (comment: 01906_bigint_accurate_cast_ubsan.sql) (in query: SELECT accurateCast(1e20, 'UInt64');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7dc7ce in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)::operator(), DB::DataTypeNumber>>(DB::DataTypeNumber const&) const @ 0x000000000b7d4a57 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)&&) @ 0x000000000b7d3980 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7d35c9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d3526 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d34c0 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d3460 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7d3408 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:18.218745 [ 12036 ] {33e057ae-a0ae-4a5f-9163-16812b339122} TCPHandler: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt64: While processing accurateCast(100000000000000000000., 'UInt64'). (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7dc7ce in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)::operator(), DB::DataTypeNumber>>(DB::DataTypeNumber const&) const @ 0x000000000b7d4a57 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)&&) @ 0x000000000b7d3980 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7d35c9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d3526 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d34c0 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7d3460 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7d3408 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:18.227627 [ 12036 ] {4d72891d-a841-436e-9bbb-4cf71f477d33} executeQuery: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt128: While processing accurateCast(100000000000000000000., 'UInt128'). (CANNOT_CONVERT_TYPE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55124) (comment: 01906_bigint_accurate_cast_ubsan.sql) (in query: SELECT accurateCast(1e20, 'UInt128');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber>, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7e974e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)::operator(), DB::DataTypeNumber>>>(DB::DataTypeNumber> const&) const @ 0x000000000b7e19d7 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)&&) @ 0x000000000b7e0900 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7e0549 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7e04a6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7e0440 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7e03e0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7e0388 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:18.228969 [ 12036 ] {4d72891d-a841-436e-9bbb-4cf71f477d33} TCPHandler: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt128: While processing accurateCast(100000000000000000000., 'UInt128'). (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber>, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7e974e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)::operator(), DB::DataTypeNumber>>>(DB::DataTypeNumber> const&) const @ 0x000000000b7e19d7 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)&&) @ 0x000000000b7e0900 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7e0549 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7e04a6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7e0440 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7e03e0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7e0388 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:18.237141 [ 12036 ] {c5272ff7-0443-436b-8f8e-cc9c5aea364a} executeQuery: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt256: While processing accurateCast(100000000000000000000., 'UInt256'). (CANNOT_CONVERT_TYPE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55124) (comment: 01906_bigint_accurate_cast_ubsan.sql) (in query: SELECT accurateCast(1e20, 'UInt256');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber>, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7f66ae in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)::operator(), DB::DataTypeNumber>>>(DB::DataTypeNumber> const&) const @ 0x000000000b7ee977 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)&&) @ 0x000000000b7ed8a0 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7ed4e9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ed446 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ed3e0 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ed380 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7ed328 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:18.238649 [ 12036 ] {c5272ff7-0443-436b-8f8e-cc9c5aea364a} TCPHandler: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type UInt256: While processing accurateCast(100000000000000000000., 'UInt256'). (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber>, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b7f66ae in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)::operator(), DB::DataTypeNumber>>>(DB::DataTypeNumber> const&) const @ 0x000000000b7ee977 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber> const&)&&) @ 0x000000000b7ed8a0 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7ed4e9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ed446 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ed3e0 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ed380 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>>(std::shared_ptr const&, DB::DataTypeNumber> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7ed328 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:18.489208 [ 12036 ] {70ed5d66-3706-4391-af1d-7e47a961fa09} executeQuery: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type Int64: While processing accurateCast(10000000000000000000., 'Int64'). (CANNOT_CONVERT_TYPE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55124) (comment: 01906_bigint_accurate_cast_ubsan.sql) (in query: SELECT accurateCast(1e19, 'Int64');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b82a24e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)::operator(), DB::DataTypeNumber>>(DB::DataTypeNumber const&) const @ 0x000000000b8224d7 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)&&) @ 0x000000000b821400 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b821049 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b820fa6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b820f40 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b820ee0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b820e88 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:18.490644 [ 12036 ] {70ed5d66-3706-4391-af1d-7e47a961fa09} TCPHandler: Code: 70. DB::Exception: Value in column Float64 cannot be safely converted into type Int64: While processing accurateCast(10000000000000000000., 'Int64'). (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:307: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeNumber, DB::CastName, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::AccurateConvertStrategyAdditions) @ 0x000000000b82a24e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:2972: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)::operator(), DB::DataTypeNumber>>(DB::DataTypeNumber const&) const @ 0x000000000b8224d7 in /usr/bin/clickhouse 8. /build/src/Core/callOnTypeIndex.h:192: bool DB::callOnIndexAndDataType, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeNumber const&)&&) @ 0x000000000b821400 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2961: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b821049 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeNumber&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b820fa6 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b820f40 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b820ee0 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createWrapper>(std::shared_ptr const&, DB::DataTypeNumber const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b820e88 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 16. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:21.271842 [ 12028 ] {6da6e954-7243-4480-86d3-0f2689b5cda2} executeQuery: Code: 43. DB::Exception: Illegal type AggregateFunction(quantile, UInt8) of argument for aggregate function sum: While processing toTypeName(initializeAggregation('sumState', initializeAggregation('quantileState', 0))). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43066) (comment: 01890_state_of_state.sql) (in query: SELECT toTypeName(initializeAggregation('sumState', initializeAggregation('quantileState', 0)));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSum.cpp:66: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSum(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000015dbb4a7 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:199: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abfa31e in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 17. /build/src/Functions/initializeAggregation.cpp:86: DB::(anonymous namespace)::FunctionInitializeAggregation::getReturnTypeImpl(std::vector> const&) const @ 0x000000000f1d2a4d in /usr/bin/clickhouse 18. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:21.272915 [ 12028 ] {6da6e954-7243-4480-86d3-0f2689b5cda2} TCPHandler: Code: 43. DB::Exception: Illegal type AggregateFunction(quantile, UInt8) of argument for aggregate function sum: While processing toTypeName(initializeAggregation('sumState', initializeAggregation('quantileState', 0))). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionSum.cpp:66: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionSum(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000015dbb4a7 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:199: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abfa31e in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 17. /build/src/Functions/initializeAggregation.cpp:86: DB::(anonymous namespace)::FunctionInitializeAggregation::getReturnTypeImpl(std::vector> const&) const @ 0x000000000f1d2a4d in /usr/bin/clickhouse 18. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 2024.05.01 13:25:21.525996 [ 12028 ] {28fb4bc0-5ddb-4d97-8e4f-87c3de9dd906} executeQuery: Code: 43. DB::Exception: Illegal type AggregateFunction(uniq, UInt8) of argument of aggregate function max because the values of that data type are not comparable: While processing hex(toString(initializeAggregation('maxState', initializeAggregation('uniqState', 0)))). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43066) (comment: 01890_state_of_state.sql) (in query: SELECT hex(toString(initializeAggregation('maxState', initializeAggregation('uniqState', 0))));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:1315: DB::AggregateFunctionsSingleValue>>::AggregateFunctionsSingleValue(std::shared_ptr const&) @ 0x00000000153bb5b5 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/HelpersMinMaxAny.h:47: DB::IAggregateFunction* DB::createAggregateFunctionSingleValue(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000153a7fbf in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMax.cpp:16: DB::(anonymous namespace)::createAggregateFunctionMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000153a768d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:199: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abfa31e in /usr/bin/clickhouse 18. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 19. /build/src/Functions/initializeAggregation.cpp:86: DB::(anonymous namespace)::FunctionInitializeAggregation::getReturnTypeImpl(std::vector> const&) const @ 0x000000000f1d2a4d in /usr/bin/clickhouse 20. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 2024.05.01 13:25:21.527030 [ 12028 ] {28fb4bc0-5ddb-4d97-8e4f-87c3de9dd906} TCPHandler: Code: 43. DB::Exception: Illegal type AggregateFunction(uniq, UInt8) of argument of aggregate function max because the values of that data type are not comparable: While processing hex(toString(initializeAggregation('maxState', initializeAggregation('uniqState', 0)))). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionMinMaxAny.h:1315: DB::AggregateFunctionsSingleValue>>::AggregateFunctionsSingleValue(std::shared_ptr const&) @ 0x00000000153bb5b5 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/HelpersMinMaxAny.h:47: DB::IAggregateFunction* DB::createAggregateFunctionSingleValue(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000153a7fbf in /usr/bin/clickhouse 8. /build/src/AggregateFunctions/AggregateFunctionMax.cpp:16: DB::(anonymous namespace)::createAggregateFunctionMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000153a768d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:199: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abfa31e in /usr/bin/clickhouse 18. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 19. /build/src/Functions/initializeAggregation.cpp:86: DB::(anonymous namespace)::FunctionInitializeAggregation::getReturnTypeImpl(std::vector> const&) const @ 0x000000000f1d2a4d in /usr/bin/clickhouse 20. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 2024.05.01 13:25:21.693328 [ 12028 ] {d23979bd-4118-41af-91e1-b5f3c565900e} executeQuery: Code: 43. DB::Exception: Illegal type AggregateFunction(uniq, UInt64) of argument for aggregate function quantile. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43066) (comment: 01890_state_of_state.sql) (in query: SELECT toTypeName(quantileState(x)) FROM (SELECT uniqState(number) AS x FROM numbers(1000));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionQuantile.cpp:53: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionQuantile(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000014685d69 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:199: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abfa31e in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 2024.05.01 13:25:21.694473 [ 12028 ] {d23979bd-4118-41af-91e1-b5f3c565900e} TCPHandler: Code: 43. DB::Exception: Illegal type AggregateFunction(uniq, UInt64) of argument for aggregate function quantile. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionQuantile.cpp:53: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionQuantile(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000014685d69 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:199: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abfa31e in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 2024.05.01 13:25:21.713686 [ 12028 ] {d3d8e55e-dada-43a4-ab25-0414c48f5666} executeQuery: Code: 43. DB::Exception: Illegal type AggregateFunction(uniq, UInt64) of argument for aggregate function quantile. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43066) (comment: 01890_state_of_state.sql) (in query: SELECT hex(toString(quantileState(x))) FROM (SELECT uniqState(number) AS x FROM numbers(1000));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionQuantile.cpp:53: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionQuantile(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000014685d69 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:199: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abfa31e in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 2024.05.01 13:25:21.714719 [ 12028 ] {d3d8e55e-dada-43a4-ab25-0414c48f5666} TCPHandler: Code: 43. DB::Exception: Illegal type AggregateFunction(uniq, UInt64) of argument for aggregate function quantile. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionQuantile.cpp:53: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionQuantile(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000014685d69 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:199: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abfa31e in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 2024.05.01 13:25:24.038008 [ 50483 ] {5504beab-9321-4bd6-900d-debb07bd5605} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 100.00, current rows: 1.00 million: While executing Remote: While processing (SELECT count() FROM nums_in_mem_dist WHERE rand() > 0) AS _subquery56: While processing count() / ((SELECT count() FROM nums_in_mem_dist WHERE rand() > 0) AS _subquery56). (TOO_MANY_ROWS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43106) (comment: 01882_scalar_subquery_exception.sql) (in query: select count() / (select count() from nums_in_mem_dist where rand() > 0) from system.one;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b86de24 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683891 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:25:24.037822 [ 1276 ] {78b8d66d-1f96-4d9e-a89d-453d915bafcd} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::1]:9000 -> [::1]:48718). (NETWORK_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48718) (comment: 01882_scalar_subquery_exception.sql) (in query: SELECT count() FROM `test_8i1hrncp`.`nums_in_mem` WHERE rand() > 0), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:96: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6904 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2121: DB::TCPHandler::sendProgress() @ 0x000000001e5e249d in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:979: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e231b in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:24.039622 [ 50483 ] {5504beab-9321-4bd6-900d-debb07bd5605} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 100.00, current rows: 1.00 million: While executing Remote: While processing (SELECT count() FROM nums_in_mem_dist WHERE rand() > 0) AS _subquery56: While processing count() / ((SELECT count() FROM nums_in_mem_dist WHERE rand() > 0) AS _subquery56). (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b86de24 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683891 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 26. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:25:24.044554 [ 1276 ] {78b8d66d-1f96-4d9e-a89d-453d915bafcd} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::1]:9000 -> [::1]:48718). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:96: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6904 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2121: DB::TCPHandler::sendProgress() @ 0x000000001e5e249d in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:979: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e231b in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:24.045166 [ 1276 ] {78b8d66d-1f96-4d9e-a89d-453d915bafcd} TCPHandler: Client has gone away. 2024.05.01 13:25:26.502356 [ 50483 ] {e3caf83c-5a64-49aa-9d78-168c9a8394e1} executeQuery: Code: 403. DB::Exception: Illegal expression '0' in JOIN ON section: While processing 0. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT t1.key FROM t1 INNER ANY JOIN t2 ON t1.id == t2.id AND t2.key == t2.key2 AND t1.key == t1.key2 AND 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:25:26.503425 [ 50483 ] {e3caf83c-5a64-49aa-9d78-168c9a8394e1} TCPHandler: Code: 403. DB::Exception: Illegal expression '0' in JOIN ON section: While processing 0. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:25:26.683675 [ 1132 ] {f8c4d008-dd81-4b3b-b981-c554256a982c} executeQuery: Code: 36. DB::Exception: Illegal address passed to function parseAddress: the address begins with opening square bracket, but no closing square bracket found. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43154) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('[::1', system.one) FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [133]) @ 0x000000001a98bb3e in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:28: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b706 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:26.784109 [ 5964 ] {7d517ccc-c2df-4ed0-b2a2-ac06d054e96c} executeQuery: Code: 70. DB::Exception: Conversion from AggregateFunction(sum, UInt8) to AggregateFunction(sum, Int32) is not supported: while converting source column pv to destination column pv. (CANNOT_CONVERT_TYPE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43168) (comment: 01880_materialized_view_to_table_type_check.sql) (in query: CREATE MATERIALIZED VIEW test_mv to test(`id` Int32, `pv` AggregateFunction(sum, Int32)) as SELECT id, sumState(1) as pv from test_input group by id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:3224: DB::FunctionCast::createAggregateFunctionWrapper(std::shared_ptr const&, DB::DataTypeAggregateFunction const*) const @ 0x000000000b1f78cf in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:4192: DB::FunctionCast::prepareImpl(std::shared_ptr const&, std::shared_ptr const&, bool) const @ 0x000000000b1f4f6e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:3922: DB::FunctionCast::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const @ 0x000000000b1f31fc in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:3848: DB::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x000000000b1ee1ed in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2875: DB::FunctionCast::prepare(std::vector> const&) const @ 0x000000000b1eda1c in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:272: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b5c9 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:1310: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x000000001bc84a0c in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1207: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e583d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:26.784166 [ 1132 ] {f8c4d008-dd81-4b3b-b981-c554256a982c} TCPHandler: Code: 36. DB::Exception: Illegal address passed to function parseAddress: the address begins with opening square bracket, but no closing square bracket found. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [133]) @ 0x000000001a98bb3e in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:28: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b706 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:26.785125 [ 5964 ] {7d517ccc-c2df-4ed0-b2a2-ac06d054e96c} TCPHandler: Code: 70. DB::Exception: Conversion from AggregateFunction(sum, UInt8) to AggregateFunction(sum, Int32) is not supported: while converting source column pv to destination column pv. (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:3224: DB::FunctionCast::createAggregateFunctionWrapper(std::shared_ptr const&, DB::DataTypeAggregateFunction const*) const @ 0x000000000b1f78cf in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:4192: DB::FunctionCast::prepareImpl(std::shared_ptr const&, std::shared_ptr const&, bool) const @ 0x000000000b1f4f6e in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:3922: DB::FunctionCast::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const @ 0x000000000b1f31fc in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:3848: DB::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x000000000b1ee1ed in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2875: DB::FunctionCast::prepare(std::vector> const&) const @ 0x000000000b1eda1c in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:272: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b5c9 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:1310: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x000000001bc84a0c in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1207: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e583d in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:26.910783 [ 1132 ] {45313186-6128-4923-a115-d3e3797bdb67} executeQuery: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1]. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43154) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('::1]', system.one) FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b934 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:26.911800 [ 1132 ] {45313186-6128-4923-a115-d3e3797bdb67} TCPHandler: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b934 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:26.919372 [ 1132 ] {b2a85e39-9168-457f-a9b5-2934a68b7318} executeQuery: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43154) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('::1', system.one) FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b934 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:26.920389 [ 1132 ] {b2a85e39-9168-457f-a9b5-2934a68b7318} TCPHandler: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b934 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.045117 [ 1132 ] {710843da-a546-42af-ae5b-59a91d66f48b} executeQuery: Code: 36. DB::Exception: Illegal port prefix passed to function parseAddress: [::1]. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43154) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('[::1][::1]', system.one) FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:39: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b7e3 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.046456 [ 1132 ] {710843da-a546-42af-ae5b-59a91d66f48b} TCPHandler: Code: 36. DB::Exception: Illegal port prefix passed to function parseAddress: [::1]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:39: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b7e3 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.054128 [ 1132 ] {77a0a2ac-59d5-4108-a02d-de5b3dc66ccf} executeQuery: Code: 36. DB::Exception: Illegal port prefix passed to function parseAddress: [::1. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43154) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('[::1][::1', system.one) FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:39: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b7e3 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.054989 [ 1132 ] {77a0a2ac-59d5-4108-a02d-de5b3dc66ccf} TCPHandler: Code: 36. DB::Exception: Illegal port prefix passed to function parseAddress: [::1. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:39: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b7e3 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.061998 [ 1132 ] {0be39ded-56ac-4605-b35a-d48f6e4d5739} executeQuery: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1]. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43154) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('[::1]::1]', system.one) FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b934 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.063116 [ 1132 ] {0be39ded-56ac-4605-b35a-d48f6e4d5739} TCPHandler: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b934 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.110660 [ 1132 ] {e45f75b2-a1e9-4bfd-ba77-c84a8e510e28} executeQuery: Code: 36. DB::Exception: Illegal address passed to function parseAddress: the address begins with opening square bracket, but no closing square bracket found. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43154) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('[::1') FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [133]) @ 0x000000001a98bb3e in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:28: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b706 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.111743 [ 1132 ] {e45f75b2-a1e9-4bfd-ba77-c84a8e510e28} TCPHandler: Code: 36. DB::Exception: Illegal address passed to function parseAddress: the address begins with opening square bracket, but no closing square bracket found. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [133]) @ 0x000000001a98bb3e in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:28: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b706 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.119941 [ 1132 ] {bda36c79-5705-44b0-955e-73efc4a809fa} executeQuery: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1]. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43154) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('::1]') FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b934 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.121021 [ 1132 ] {bda36c79-5705-44b0-955e-73efc4a809fa} TCPHandler: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b934 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.128884 [ 1132 ] {842efb06-b54f-480a-b433-1d3174aefef4} executeQuery: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43154) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('::1') FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b934 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.130412 [ 1132 ] {842efb06-b54f-480a-b433-1d3174aefef4} TCPHandler: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b934 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.139000 [ 1132 ] {47e56ea6-05d4-477e-bc89-f84ba173661f} executeQuery: Code: 36. DB::Exception: Illegal port prefix passed to function parseAddress: [::1]. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43154) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('[::1][::1]') FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:39: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b7e3 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.140268 [ 1132 ] {47e56ea6-05d4-477e-bc89-f84ba173661f} TCPHandler: Code: 36. DB::Exception: Illegal port prefix passed to function parseAddress: [::1]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:39: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b7e3 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.148993 [ 1132 ] {73fb59ea-1315-4ec7-b3aa-dff44c8a1957} executeQuery: Code: 36. DB::Exception: Illegal port prefix passed to function parseAddress: [::1. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43154) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('[::1][::1') FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:39: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b7e3 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.150285 [ 1132 ] {73fb59ea-1315-4ec7-b3aa-dff44c8a1957} TCPHandler: Code: 36. DB::Exception: Illegal port prefix passed to function parseAddress: [::1. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:39: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b7e3 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.157956 [ 1132 ] {564bb27b-817c-429f-839e-58423f8ed63b} executeQuery: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1]. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43154) (comment: 01880_remote_ipv6.sql) (in query: SELECT * FROM remote('[::1]::1]') FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b934 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.158850 [ 1132 ] {564bb27b-817c-429f-839e-58423f8ed63b} TCPHandler: Code: 36. DB::Exception: Illegal port passed to function parseAddress: :1]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const*&) @ 0x000000000b8e8a53 in /usr/bin/clickhouse 6. /build/src/Common/parseAddress.cpp:48: DB::parseAddress(String const&, unsigned short) @ 0x000000001a98b934 in /usr/bin/clickhouse 7. /build/src/Interpreters/Cluster.cpp:141: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9bff3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 18. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 19. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 20. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 21. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:25:27.667332 [ 50483 ] {eea1861a-e17d-4f7d-9b66-1ea30c451c55} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(toUInt8(id), 1)' of type 'UInt16'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: -- `e + 1` is UInt16 SELECT DISTINCT t1.key, toUInt8(t1.id) as e FROM t1 INNER ANY JOIN t2 ON t1.id == t2.id AND e + 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc085f2 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:27.668268 [ 50483 ] {eea1861a-e17d-4f7d-9b66-1ea30c451c55} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(toUInt8(id), 1)' of type 'UInt16'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc085f2 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:27.998451 [ 50483 ] {41b33f2c-7338-4bb6-b168-41ec4978cc14} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'id' of type 'Int32'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t1.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc085f2 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:27.999537 [ 50483 ] {41b33f2c-7338-4bb6-b168-41ec4978cc14} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'id' of type 'Int32'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc085f2 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:28.141237 [ 50483 ] {5749c665-2edd-462d-b65d-28e1166f2ab2} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 't2.id' of type 'Int32'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc08603 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:28.142126 [ 50483 ] {5749c665-2edd-462d-b65d-28e1166f2ab2} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 't2.id' of type 'Int32'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc08603 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:28.166693 [ 50483 ] {2add50f0-b8cb-4597-a7ad-5135cda0cb8b} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(id, 2)' of type 'Int64'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t1.id + 2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc085f2 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:28.167433 [ 50483 ] {2add50f0-b8cb-4597-a7ad-5135cda0cb8b} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(id, 2)' of type 'Int64'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc085f2 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:28.190636 [ 50483 ] {552512bc-034d-478c-bc9d-5f44bcd30806} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(t2.id, 2)' of type 'Int64'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t2.id + 2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc08603 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:28.191429 [ 50483 ] {552512bc-034d-478c-bc9d-5f44bcd30806} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(t2.id, 2)' of type 'Int64'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc08603 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:28.214311 [ 50483 ] {5857c777-99d9-44fc-970d-652d2388e872} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'key' of type 'String'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t1.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc085f2 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:28.215063 [ 50483 ] {5857c777-99d9-44fc-970d-652d2388e872} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'key' of type 'String'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc085f2 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:28.237621 [ 50483 ] {5a3cfb86-cd2f-4ea2-a9f7-957899a7b72c} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 't2.key' of type 'String'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t2.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc08603 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:28.238488 [ 50483 ] {5a3cfb86-cd2f-4ea2-a9f7-957899a7b72c} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 't2.key' of type 'String'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc08603 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:28.256734 [ 50483 ] {0c03a87c-0bfb-48fd-98b4-b8f1083bb7a5} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t2.id) OR (t2.key2 IS NULL)': While processing (id = t2.id) OR (t2.key2 IS NULL). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 JOIN t2 ON t2.key == t2.key2 AND (t1.id == t2.id OR isNull(t2.key2));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:28.258055 [ 50483 ] {0c03a87c-0bfb-48fd-98b4-b8f1083bb7a5} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t2.id) OR (t2.key2 IS NULL)': While processing (id = t2.id) OR (t2.key2 IS NULL). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:28.387736 [ 50483 ] {b4fe5ef9-20c3-45d4-a59e-9a3e5b994468} executeQuery: Code: 403. DB::Exception: Cannot get JOIN keys from JOIN ON section: '(t2.key = t2.key2) OR (id = t2.id)', found keys: [Left keys: [] Right keys [] Condition columns: '', 'equals(t2.key, t2.key2)']; [Left keys: [id] Right keys [t2.id] Condition columns: '', '']. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 JOIN t2 ON t2.key == t2.key2 OR t1.id == t2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:658: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf914dd in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:28.388628 [ 50483 ] {b4fe5ef9-20c3-45d4-a59e-9a3e5b994468} TCPHandler: Code: 403. DB::Exception: Cannot get JOIN keys from JOIN ON section: '(t2.key = t2.key2) OR (id = t2.id)', found keys: [Left keys: [] Right keys [] Condition columns: '', 'equals(t2.key, t2.key2)']; [Left keys: [id] Right keys [t2.id] Condition columns: '', '']. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:658: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf914dd in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:28.546064 [ 50483 ] {dd2e0437-7d0a-403b-ae58-be954f8d5e2e} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '((key = key2) AND (key != 'XXX')) OR (id = t2.id)': While processing ((key = key2) AND (key != 'XXX')) OR (id = t2.id). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 JOIN t2 ON (t2.key == t2.key2 AND (t1.key == t1.key2 AND t1.key != 'XXX' OR t1.id == t2.id)) AND t1.id == t2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 24. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 25. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:25:28.547240 [ 50483 ] {dd2e0437-7d0a-403b-ae58-be954f8d5e2e} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '((key = key2) AND (key != 'XXX')) OR (id = t2.id)': While processing ((key = key2) AND (key != 'XXX')) OR (id = t2.id). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 24. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 25. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:25:28.627821 [ 50483 ] {6d3d518d-8f57-4480-8617-8b7857966cce} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected 'id >= t2.id': While processing id >= t2.id. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: -- non-equi condition containing columns from different tables doesn't supported yet SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t1.id >= t2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:28.628952 [ 50483 ] {6d3d518d-8f57-4480-8617-8b7857966cce} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected 'id >= t2.id': While processing id >= t2.id. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:28.648414 [ 50483 ] {d2d3a36c-d7c9-4ec1-8c12-2977ccb5de1c} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected 'id >= length(t2.key)': While processing id >= length(t2.key). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ANY JOIN t2 ON t1.id == t2.id AND t2.key == t2.key2 AND t1.key == t1.key2 AND t1.id >= length(t2.key);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:28.649389 [ 50483 ] {d2d3a36c-d7c9-4ec1-8c12-2977ccb5de1c} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected 'id >= length(t2.key)': While processing id >= length(t2.key). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:28.742615 [ 50483 ] {f8656e3d-82b6-4b99-9427-3bac07b7803d} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(t22.key = t22.key2) OR (id = t22.id)': While processing (t22.key = t22.key2) OR (id = t22.id). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON t1.id == t22.idd and (t22.key == t22.key2 OR t1.id == t22.id);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:28.743994 [ 50483 ] {f8656e3d-82b6-4b99-9427-3bac07b7803d} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(t22.key = t22.key2) OR (id = t22.id)': While processing (t22.key = t22.key2) OR (id = t22.id). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:28.764749 [ 50483 ] {019a21fd-3848-4eb5-9954-74c2a8bed863} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON t1.id == t22.idd and (t1.id == t22.id OR t22.key == t22.key2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:28.766337 [ 50483 ] {019a21fd-3848-4eb5-9954-74c2a8bed863} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:28.786580 [ 50483 ] {4078f518-8e82-418f-86cc-c6c8b1d168a5} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(t22.key = t22.key2) OR (id = t22.id)': While processing (t22.key = t22.key2) OR (id = t22.id). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON (t22.key == t22.key2 OR t1.id == t22.id) and t1.id == t22.idd;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:28.787864 [ 50483 ] {4078f518-8e82-418f-86cc-c6c8b1d168a5} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(t22.key = t22.key2) OR (id = t22.id)': While processing (t22.key = t22.key2) OR (id = t22.id). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:28.805682 [ 50483 ] {9a985aa2-17c9-4f37-a200-11844b8f13ed} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON (t1.id == t22.id OR t22.key == t22.key2) and t1.id == t22.idd;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:28.806836 [ 50483 ] {9a985aa2-17c9-4f37-a200-11844b8f13ed} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:28.838392 [ 50483 ] {e69c22cf-9ba8-4fe7-b615-66ef8bee5a62} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON (t1.id == t22.id OR t22.key == t22.key2) and (t1.id == t22.idd AND (t1.key2 = 'a1' OR t1.key2 = 'a2' OR t1.key2 = 'a3' OR t1.key2 = 'a4' OR t1.key2 = 'a5' OR t1.key2 = 'a6' OR t1.key2 = 'a7' OR t1.key2 = 'a8' OR t1.key2 = 'a9' OR t1.key2 = 'a10' OR t1.key2 = 'a11' OR t1.key2 = 'a12' OR t1.key2 = 'a13' OR t1.key2 = 'a14' OR t1.key2 = 'a15' OR t1.key2 = 'a16' OR t1.key2 = 'a17' OR t1.key2 = 'a18' OR t1.key2 = 'a19' OR t1.key2 = '111'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:28.839781 [ 50483 ] {e69c22cf-9ba8-4fe7-b615-66ef8bee5a62} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:29.253610 [ 5967 ] {d9f90637-a770-47cd-b479-a3aa9448568d} executeQuery: Code: 524. DB::Exception: Trying to ALTER DROP column n3 which is referenced by materialized view ['01851_merge_tree_mv']. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33634) (comment: 01851_clear_column_referenced_by_mv.sql) (in query: ALTER TABLE `01851_merge_tree` DROP COLUMN n3;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3324: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2bcf6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:29.254348 [ 5967 ] {d9f90637-a770-47cd-b479-a3aa9448568d} TCPHandler: Code: 524. DB::Exception: Trying to ALTER DROP column n3 which is referenced by materialized view ['01851_merge_tree_mv']. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3324: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2bcf6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:29.268008 [ 5967 ] {595cb238-b658-4b46-b88e-c4e4c316b41e} executeQuery: Code: 524. DB::Exception: Trying to ALTER DROP column n2 which is referenced by materialized view ['01851_merge_tree_mv']. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33634) (comment: 01851_clear_column_referenced_by_mv.sql) (in query: ALTER TABLE `01851_merge_tree` DROP COLUMN n2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3324: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2bcf6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:29.268572 [ 5967 ] {595cb238-b658-4b46-b88e-c4e4c316b41e} TCPHandler: Code: 524. DB::Exception: Trying to ALTER DROP column n2 which is referenced by materialized view ['01851_merge_tree_mv']. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3324: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2bcf6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:29.291540 [ 50483 ] {9e6dbad7-fa16-4d9b-a399-93714c66efdf} executeQuery: Code: 403. DB::Exception: Illegal expression '0' in JOIN ON section: While processing 0. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT t1.key FROM t1 INNER ANY JOIN t2 ON t1.id == t2.id AND t2.key == t2.key2 AND t1.key == t1.key2 AND 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:25:29.292528 [ 50483 ] {9e6dbad7-fa16-4d9b-a399-93714c66efdf} TCPHandler: Code: 403. DB::Exception: Illegal expression '0' in JOIN ON section: While processing 0. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:76: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1ff6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:25:29.660204 [ 5964 ] {771d661b-4f7f-431e-a863-937e9ea9731f} executeQuery: Code: 80. DB::Exception: Query from view test_77hbpqg1.view_no_nulls returned Nullable column having not Nullable type in structure. If query from view has JOIN, it may be cause by different values of 'join_use_nulls' setting. You may explicitly specify 'join_use_nulls' in 'CREATE VIEW' query to avoid this error. (INCORRECT_QUERY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33608) (comment: 01866_view_persist_settings.sql) (in query: SELECT * FROM view_no_nulls;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageView.cpp:182: DB::StorageView::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d9c2d60 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:29.660978 [ 5964 ] {771d661b-4f7f-431e-a863-937e9ea9731f} TCPHandler: Code: 80. DB::Exception: Query from view test_77hbpqg1.view_no_nulls returned Nullable column having not Nullable type in structure. If query from view has JOIN, it may be cause by different values of 'join_use_nulls' setting. You may explicitly specify 'join_use_nulls' in 'CREATE VIEW' query to avoid this error. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageView.cpp:182: DB::StorageView::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d9c2d60 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.343471 [ 50483 ] {be9d9770-9f60-4450-81fc-0d36a7184582} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(toUInt8(id), 1)' of type 'UInt16'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: -- `e + 1` is UInt16 SELECT DISTINCT t1.key, toUInt8(t1.id) as e FROM t1 INNER ANY JOIN t2 ON t1.id == t2.id AND e + 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc085f2 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.344264 [ 50483 ] {be9d9770-9f60-4450-81fc-0d36a7184582} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(toUInt8(id), 1)' of type 'UInt16'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc085f2 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.439372 [ 5964 ] {671a9a61-0fd3-4aa4-afd2-552b9b7f5da6} executeQuery: Code: 80. DB::Exception: Query from view test_77hbpqg1.view_no_nulls returned Nullable column having not Nullable type in structure. If query from view has JOIN, it may be cause by different values of 'join_use_nulls' setting. You may explicitly specify 'join_use_nulls' in 'CREATE VIEW' query to avoid this error. (INCORRECT_QUERY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33608) (comment: 01866_view_persist_settings.sql) (in query: SELECT * FROM view_no_nulls;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageView.cpp:182: DB::StorageView::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d9c2d60 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.440037 [ 5964 ] {671a9a61-0fd3-4aa4-afd2-552b9b7f5da6} TCPHandler: Code: 80. DB::Exception: Query from view test_77hbpqg1.view_no_nulls returned Nullable column having not Nullable type in structure. If query from view has JOIN, it may be cause by different values of 'join_use_nulls' setting. You may explicitly specify 'join_use_nulls' in 'CREATE VIEW' query to avoid this error. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageView.cpp:182: DB::StorageView::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d9c2d60 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.752888 [ 50483 ] {eab5c648-5a03-4cc9-b77d-87240c250ff5} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'id' of type 'Int32'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t1.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc085f2 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.753749 [ 50483 ] {eab5c648-5a03-4cc9-b77d-87240c250ff5} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'id' of type 'Int32'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc085f2 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.856461 [ 50483 ] {0bbabc4c-c96c-423e-bcab-5e87647a45ff} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 't2.id' of type 'Int32'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc08603 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.856642 [ 50482 ] {} ServerErrorHandler: Code: 210. DB::NetException: Connection reset by peer, while reading from socket ([::ffff:127.0.0.1]:40360). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000013ce5a0c in /usr/bin/clickhouse 6. /build/src/IO/ReadBufferFromPocoSocket.cpp:86: DB::ReadBufferFromPocoSocket::nextImpl() @ 0x0000000013ce4c80 in /usr/bin/clickhouse 7. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21033c in /usr/bin/clickhouse 8. /build/src/IO/ReadBuffer.h:105: void DB::impl::readVarUInt(unsigned long&, DB::ReadBuffer&) @ 0x000000001396d36f in /usr/bin/clickhouse 9. /build/src/IO/VarInt.h:111: DB::readVarUInt(unsigned long&, DB::ReadBuffer&) @ 0x000000001396d0cc in /usr/bin/clickhouse 10. /build/src/IO/ReadHelpers.h:143: DB::readStringBinary(String&, DB::ReadBuffer&, unsigned long) @ 0x000000001398a8e9 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:0: DB::TCPHandler::receiveAddendum() @ 0x000000001e5e13f4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:255: DB::TCPHandler::runImpl() @ 0x000000001e5d7979 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:25:30.857781 [ 50483 ] {0bbabc4c-c96c-423e-bcab-5e87647a45ff} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 't2.id' of type 'Int32'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc08603 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.885136 [ 50483 ] {7bf3d59a-fe24-4c1b-b55e-88dc3bec9bb2} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(id, 2)' of type 'Int64'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t1.id + 2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc085f2 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.886114 [ 50483 ] {7bf3d59a-fe24-4c1b-b55e-88dc3bec9bb2} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(id, 2)' of type 'Int64'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc085f2 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.911301 [ 50483 ] {1a452bb6-3484-4e9e-902f-c1c823a03498} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(t2.id, 2)' of type 'Int64'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t2.id + 2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc08603 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.912257 [ 50483 ] {1a452bb6-3484-4e9e-902f-c1c823a03498} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'plus(t2.id, 2)' of type 'Int64'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc08603 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.933381 [ 50483 ] {05039c80-ff7b-4dec-9b54-cd6ffe2d3d45} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'key' of type 'String'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t1.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc085f2 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.934396 [ 50483 ] {05039c80-ff7b-4dec-9b54-cd6ffe2d3d45} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 'key' of type 'String'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:474: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc085f2 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.960591 [ 50483 ] {b145078f-2b02-4bce-9dd5-e8fbc0ad26e7} executeQuery: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 't2.key' of type 'String'. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t2.key;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc08603 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.961558 [ 50483 ] {b145078f-2b02-4bce-9dd5-e8fbc0ad26e7} TCPHandler: Code: 403. DB::Exception: Expected logical expression in JOIN ON section, got unexpected column 't2.key' of type 'String'. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/JoinUtils.cpp:469: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&)::$_0::operator()(DB::Block const&, String const&) const @ 0x000000001cc087e1 in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:475: DB::JoinCommon::checkTypesOfMasks(DB::Block const&, String const&, DB::Block const&, String const&) @ 0x000000001cc08603 in /usr/bin/clickhouse 8. /build/src/Interpreters/JoinUtils.cpp:456: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, String const&, DB::Block const&, std::vector> const&, String const&) @ 0x000000001cc085aa in /usr/bin/clickhouse 9. /build/src/Interpreters/HashJoin.cpp:1756: DB::HashJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001c57d41c in /usr/bin/clickhouse 10. /build/src/Processors/Transforms/JoiningTransform.cpp:21: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f94 in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.976379 [ 50483 ] {f6f39fc9-f7e3-4416-a8bc-0f96abe10ee9} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t2.id) OR (t2.key2 IS NULL)': While processing (id = t2.id) OR (t2.key2 IS NULL). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 JOIN t2 ON t2.key == t2.key2 AND (t1.id == t2.id OR isNull(t2.key2));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:30.977342 [ 50483 ] {f6f39fc9-f7e3-4416-a8bc-0f96abe10ee9} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t2.id) OR (t2.key2 IS NULL)': While processing (id = t2.id) OR (t2.key2 IS NULL). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:30.989594 [ 50483 ] {72fc595d-db6b-45ba-87e6-32f551665b86} executeQuery: Code: 403. DB::Exception: Cannot get JOIN keys from JOIN ON section: '(t2.key = t2.key2) OR (id = t2.id)', found keys: [Left keys: [] Right keys [] Condition columns: '', 'equals(t2.key, t2.key2)']; [Left keys: [id] Right keys [t2.id] Condition columns: '', '']. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 JOIN t2 ON t2.key == t2.key2 OR t1.id == t2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:658: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf914dd in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:30.990326 [ 50483 ] {72fc595d-db6b-45ba-87e6-32f551665b86} TCPHandler: Code: 403. DB::Exception: Cannot get JOIN keys from JOIN ON section: '(t2.key = t2.key2) OR (id = t2.id)', found keys: [Left keys: [] Right keys [] Condition columns: '', 'equals(t2.key, t2.key2)']; [Left keys: [id] Right keys [t2.id] Condition columns: '', '']. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:658: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf914dd in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:31.006424 [ 50483 ] {7b82afbd-9417-4da0-a85c-bc8fbba8f4cc} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '((key = key2) AND (key != 'XXX')) OR (id = t2.id)': While processing ((key = key2) AND (key != 'XXX')) OR (id = t2.id). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 JOIN t2 ON (t2.key == t2.key2 AND (t1.key == t1.key2 AND t1.key != 'XXX' OR t1.id == t2.id)) AND t1.id == t2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 24. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 25. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:25:31.007383 [ 50483 ] {7b82afbd-9417-4da0-a85c-bc8fbba8f4cc} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '((key = key2) AND (key != 'XXX')) OR (id = t2.id)': While processing ((key = key2) AND (key != 'XXX')) OR (id = t2.id). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 24. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 25. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:25:31.073848 [ 50705 ] {} ServerErrorHandler: Code: 210. DB::NetException: Connection reset by peer, while reading from socket ([::ffff:127.0.0.1]:52124). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000013ce5a0c in /usr/bin/clickhouse 6. /build/src/IO/ReadBufferFromPocoSocket.cpp:86: DB::ReadBufferFromPocoSocket::nextImpl() @ 0x0000000013ce4c80 in /usr/bin/clickhouse 7. /build/src/IO/ReadBuffer.h:71: DB::ReadBuffer::next() @ 0x000000000b21033c in /usr/bin/clickhouse 8. /build/src/IO/ReadBuffer.h:105: DB::TCPHandler::runImpl() @ 0x000000001e5d8fa1 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 15. ? @ 0x00007fcde32fbac3 in ? 16. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:25:31.078240 [ 50483 ] {f847f408-f3be-4ec3-85b4-5c270231fc73} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected 'id >= t2.id': While processing id >= t2.id. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: -- non-equi condition containing columns from different tables doesn't supported yet SELECT * FROM t1 INNER ALL JOIN t2 ON t1.id == t2.id AND t1.id >= t2.id;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:31.079114 [ 50483 ] {f847f408-f3be-4ec3-85b4-5c270231fc73} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected 'id >= t2.id': While processing id >= t2.id. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:31.093169 [ 50483 ] {0a86f788-0383-4169-921a-5286a20c856c} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected 'id >= length(t2.key)': While processing id >= length(t2.key). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT * FROM t1 INNER ANY JOIN t2 ON t1.id == t2.id AND t2.key == t2.key2 AND t1.key == t1.key2 AND t1.id >= length(t2.key);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:31.094303 [ 50483 ] {0a86f788-0383-4169-921a-5286a20c856c} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected 'id >= length(t2.key)': While processing id >= length(t2.key). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:31.170993 [ 50483 ] {23d8e93c-2438-4557-87f6-e0f950432721} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(t22.key = t22.key2) OR (id = t22.id)': While processing (t22.key = t22.key2) OR (id = t22.id). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON t1.id == t22.idd and (t22.key == t22.key2 OR t1.id == t22.id);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:31.171912 [ 50483 ] {23d8e93c-2438-4557-87f6-e0f950432721} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(t22.key = t22.key2) OR (id = t22.id)': While processing (t22.key = t22.key2) OR (id = t22.id). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:31.185126 [ 50483 ] {f1ee1ad2-9fac-4770-a0f0-ee1c96f1c383} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON t1.id == t22.idd and (t1.id == t22.id OR t22.key == t22.key2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:31.186077 [ 50483 ] {f1ee1ad2-9fac-4770-a0f0-ee1c96f1c383} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:31.199641 [ 50483 ] {54296f5f-f6a2-4f16-a4ee-81386f208b82} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(t22.key = t22.key2) OR (id = t22.id)': While processing (t22.key = t22.key2) OR (id = t22.id). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON (t22.key == t22.key2 OR t1.id == t22.id) and t1.id == t22.idd;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:31.200633 [ 50483 ] {54296f5f-f6a2-4f16-a4ee-81386f208b82} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(t22.key = t22.key2) OR (id = t22.id)': While processing (t22.key = t22.key2) OR (id = t22.id). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:31.216276 [ 50483 ] {c5e085b0-18cd-412b-a6c5-1132a162a553} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON (t1.id == t22.id OR t22.key == t22.key2) and t1.id == t22.idd;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:31.217695 [ 50483 ] {c5e085b0-18cd-412b-a6c5-1132a162a553} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:31.247073 [ 50483 ] {6d252084-b766-450a-ac7b-276dd45c268d} executeQuery: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43152) (comment: 01881_join_on_conditions_hash.gen.sql) (in query: SELECT 't22', * FROM t1 JOIN t22 ON (t1.id == t22.id OR t22.key == t22.key2) and (t1.id == t22.idd AND (t1.key2 = 'a1' OR t1.key2 = 'a2' OR t1.key2 = 'a3' OR t1.key2 = 'a4' OR t1.key2 = 'a5' OR t1.key2 = 'a6' OR t1.key2 = 'a7' OR t1.key2 = 'a8' OR t1.key2 = 'a9' OR t1.key2 = 'a10' OR t1.key2 = 'a11' OR t1.key2 = 'a12' OR t1.key2 = 'a13' OR t1.key2 = 'a14' OR t1.key2 = 'a15' OR t1.key2 = 'a16' OR t1.key2 = 'a17' OR t1.key2 = 'a18' OR t1.key2 = 'a19' OR t1.key2 = '111'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:31.248941 [ 50483 ] {6d252084-b766-450a-ac7b-276dd45c268d} TCPHandler: Code: 403. DB::Exception: Unsupported JOIN ON conditions. Unexpected '(id = t22.id) OR (t22.key = t22.key2)': While processing (id = t22.id) OR (t22.key = t22.key2). (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/CollectJoinOnKeysVisitor.cpp:151: DB::CollectJoinOnKeysMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001d0085d6 in /usr/bin/clickhouse 7. /build/src/Interpreters/CollectJoinOnKeysVisitor.h:68: DB::CollectJoinOnKeysMatcher::visit(std::shared_ptr const&, DB::CollectJoinOnKeysMatcher::Data&) @ 0x000000001cfa1f24 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001cfa1d20 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa2121 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x000000001cfa21c6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001cfa212e in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001cfa1caa in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001cfa1b65 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:650: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf9131c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:25:31.962088 [ 50482 ] {e8d3cb9f-b1d7-4d64-8598-5cb28b70033b} executeQuery: Code: 36. DB::Exception: CellId is invalid.: While processing s2ToGeo(toUInt64(-1)). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33668) (comment: 01849_geoToS2.sql) (in query: SELECT s2ToGeo(toUInt64(-1));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [19]) @ 0x000000000b2150de in /usr/bin/clickhouse 6. /build/src/Functions/s2ToGeo.cpp:100: DB::(anonymous namespace)::FunctionS2ToGeo::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012512324 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:25:31.963240 [ 50482 ] {e8d3cb9f-b1d7-4d64-8598-5cb28b70033b} TCPHandler: Code: 36. DB::Exception: CellId is invalid.: While processing s2ToGeo(toUInt64(-1)). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [19]) @ 0x000000000b2150de in /usr/bin/clickhouse 6. /build/src/Functions/s2ToGeo.cpp:100: DB::(anonymous namespace)::FunctionS2ToGeo::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012512324 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:25:32.083777 [ 50482 ] {f6544fba-6abe-4e55-9928-4de4cdec00c0} executeQuery: Code: 43. DB::Exception: Illegal type Float64 of argument 1 of function s2ToGeo. Must be UInt64: While processing s2ToGeo(nan). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33668) (comment: 01849_geoToS2.sql) (in query: SELECT s2ToGeo(nan);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, int&&, String&&) @ 0x000000000e470728 in /usr/bin/clickhouse 6. /build/src/Functions/s2ToGeo.cpp:59: DB::(anonymous namespace)::FunctionS2ToGeo::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000125128ea in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:25:32.084739 [ 50482 ] {f6544fba-6abe-4e55-9928-4de4cdec00c0} TCPHandler: Code: 43. DB::Exception: Illegal type Float64 of argument 1 of function s2ToGeo. Must be UInt64: While processing s2ToGeo(nan). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, int&&, String&&) @ 0x000000000e470728 in /usr/bin/clickhouse 6. /build/src/Functions/s2ToGeo.cpp:59: DB::(anonymous namespace)::FunctionS2ToGeo::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000125128ea in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:25:32.209791 [ 50482 ] {7998907a-d0ad-44e7-8b61-81d2b30f82f6} executeQuery: Code: 36. DB::Exception: Point is invalid. For valid point the latitude is between -90 and 90 degrees inclusiveand the longitude is between -180 and 180 degrees inclusive.: While processing geoToS2(toFloat64(toUInt64(-1)), toFloat64(toUInt64(-1))). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33668) (comment: 01849_geoToS2.sql) (in query: SELECT geoToS2(toFloat64(toUInt64(-1)), toFloat64(toUInt64(-1)));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [147]) @ 0x000000000e47335e in /usr/bin/clickhouse 6. /build/src/Functions/geoToS2.cpp:114: DB::(anonymous namespace)::FunctionGeoToS2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e472bbb in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:25:32.211192 [ 50482 ] {7998907a-d0ad-44e7-8b61-81d2b30f82f6} TCPHandler: Code: 36. DB::Exception: Point is invalid. For valid point the latitude is between -90 and 90 degrees inclusiveand the longitude is between -180 and 180 degrees inclusive.: While processing geoToS2(toFloat64(toUInt64(-1)), toFloat64(toUInt64(-1))). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [147]) @ 0x000000000e47335e in /usr/bin/clickhouse 6. /build/src/Functions/geoToS2.cpp:114: DB::(anonymous namespace)::FunctionGeoToS2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e472bbb in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:25:32.347557 [ 50482 ] {08f11799-cc60-4d5e-9bee-3935cb4d95b9} executeQuery: Code: 43. DB::Exception: Arguments must not be NaN: While processing geoToS2(nan, nan). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33668) (comment: 01849_geoToS2.sql) (in query: SELECT geoToS2(nan, nan);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5d97de in /usr/bin/clickhouse 6. /build/src/Functions/geoToS2.cpp:105: DB::(anonymous namespace)::FunctionGeoToS2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e4729fc in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:25:32.348580 [ 50482 ] {08f11799-cc60-4d5e-9bee-3935cb4d95b9} TCPHandler: Code: 43. DB::Exception: Arguments must not be NaN: While processing geoToS2(nan, nan). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5d97de in /usr/bin/clickhouse 6. /build/src/Functions/geoToS2.cpp:105: DB::(anonymous namespace)::FunctionGeoToS2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e4729fc in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:25:32.465998 [ 50482 ] {c1891448-3935-4565-bc97-6805c35590f7} executeQuery: Code: 43. DB::Exception: Arguments must not be infinite: While processing geoToS2(-inf, 1.1754943508222875e-38). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33668) (comment: 01849_geoToS2.sql) (in query: SELECT geoToS2(-inf, 1.1754943508222875e-38);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [31]) @ 0x000000000d56aede in /usr/bin/clickhouse 6. /build/src/Functions/geoToS2.cpp:108: DB::(anonymous namespace)::FunctionGeoToS2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e472ad9 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:25:32.467131 [ 50482 ] {c1891448-3935-4565-bc97-6805c35590f7} TCPHandler: Code: 43. DB::Exception: Arguments must not be infinite: While processing geoToS2(-inf, 1.1754943508222875e-38). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [31]) @ 0x000000000d56aede in /usr/bin/clickhouse 6. /build/src/Functions/geoToS2.cpp:108: DB::(anonymous namespace)::FunctionGeoToS2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e472ad9 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:25:44.300454 [ 12027 ] {ed00941d-5974-42ba-b53d-0fe0e96da392} executeQuery: Code: 48. DB::Exception: Table engine Join supports only DELETE mutations. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41374) (comment: 01821_join_table_mutation.sql) (in query: ALTER TABLE join_table_mutation UPDATE name = 'some' WHERE 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4bb9be in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:120: DB::StorageJoin::checkMutationIsPossible(DB::MutationCommands const&, DB::Settings const&) const @ 0x000000001d6c3314 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:176: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7ca8ce in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:44.301223 [ 12027 ] {ed00941d-5974-42ba-b53d-0fe0e96da392} TCPHandler: Code: 48. DB::Exception: Table engine Join supports only DELETE mutations. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4bb9be in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:120: DB::StorageJoin::checkMutationIsPossible(DB::MutationCommands const&, DB::Settings const&) const @ 0x000000001d6c3314 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:176: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7ca8ce in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:47.685271 [ 50481 ] {a9a45d5c-d407-48f4-8082-611b817f07bc} executeQuery: Code: 42. DB::Exception: Storage Buffer requires from 9 to 12 parameters: destination_database, destination_table, num_buckets, min_time, max_time, min_rows, max_rows, min_bytes, max_bytes[, flush_time, flush_rows, flush_bytes]. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41444) (comment: 01817_storage_buffer_parameters.sql) (in query: -- not enough args create table buffer_01817 (key Int) Engine=Buffer(currentDatabase(), data_01817, /* num_layers= */ 1, /* min_time= */ 1, /* max_time= */ 86400, /* min_rows= */ 1e9, /* max_rows= */ 1e6, /* min_bytes= */ 0 /* max_bytes= 4e6 */ );), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [205]) @ 0x000000001da2fa3e in /usr/bin/clickhouse 6. /build/src/Storages/StorageBuffer.cpp:1093: DB::registerStorageBuffer(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001da28ff6 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageBuffer(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da28f5d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageBuffer(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da28efd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001da28ebd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001da28e85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 13. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:47.686247 [ 50481 ] {a9a45d5c-d407-48f4-8082-611b817f07bc} TCPHandler: Code: 42. DB::Exception: Storage Buffer requires from 9 to 12 parameters: destination_database, destination_table, num_buckets, min_time, max_time, min_rows, max_rows, min_bytes, max_bytes[, flush_time, flush_rows, flush_bytes]. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [205]) @ 0x000000001da2fa3e in /usr/bin/clickhouse 6. /build/src/Storages/StorageBuffer.cpp:1093: DB::registerStorageBuffer(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001da28ff6 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageBuffer(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da28f5d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageBuffer(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da28efd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001da28ebd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001da28e85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 13. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:47.694416 [ 50481 ] {462c3fd0-0003-43bc-8d26-b872bbe5ca4c} executeQuery: Code: 42. DB::Exception: Storage Buffer requires from 9 to 12 parameters: destination_database, destination_table, num_buckets, min_time, max_time, min_rows, max_rows, min_bytes, max_bytes[, flush_time, flush_rows, flush_bytes]. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41444) (comment: 01817_storage_buffer_parameters.sql) (in query: -- too much args create table buffer_01817 (key Int) Engine=Buffer(currentDatabase(), data_01817, /* num_layers= */ 1, /* min_time= */ 1, /* max_time= */ 86400, /* min_rows= */ 1e9, /* max_rows= */ 1e6, /* min_bytes= */ 0, /* max_bytes= */ 4e6, /* flush_time= */ 86400, /* flush_rows= */ 10, /* flush_bytes= */0, 0 );), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [205]) @ 0x000000001da2fa3e in /usr/bin/clickhouse 6. /build/src/Storages/StorageBuffer.cpp:1093: DB::registerStorageBuffer(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001da28ff6 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageBuffer(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da28f5d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageBuffer(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da28efd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001da28ebd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001da28e85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 13. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:47.695313 [ 50481 ] {462c3fd0-0003-43bc-8d26-b872bbe5ca4c} TCPHandler: Code: 42. DB::Exception: Storage Buffer requires from 9 to 12 parameters: destination_database, destination_table, num_buckets, min_time, max_time, min_rows, max_rows, min_bytes, max_bytes[, flush_time, flush_rows, flush_bytes]. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [205]) @ 0x000000001da2fa3e in /usr/bin/clickhouse 6. /build/src/Storages/StorageBuffer.cpp:1093: DB::registerStorageBuffer(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001da28ff6 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageBuffer(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da28f5d in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageBuffer(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001da28efd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001da28ebd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001da28e85 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 13. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:50.471702 [ 50482 ] {34468345-13a8-4400-84cd-e416872d7234} executeQuery: Code: 70. DB::Exception: Cannot convert out of range floating point value to integer type. (CANNOT_CONVERT_TYPE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42466) (comment: 01804_uniq_up_to_ubsan.sql) (in query: SELECT uniqUpTo(1e100)(number) FROM numbers(5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [65]) @ 0x000000000e1c729e in /usr/bin/clickhouse 6. /build/src/Common/FieldVisitorConvertToNumber.h:74: DB::FieldVisitorConvertToNumber::operator()(double const&) const @ 0x000000001240aba0 in /usr/bin/clickhouse 7. /build/src/Core/Field.h:638: auto DB::Field::dispatch, DB::Field const&>(DB::FieldVisitorConvertToNumber&&, DB::Field const&) @ 0x000000001468403a in /usr/bin/clickhouse 8. /build/src/Common/FieldVisitors.h:24: auto DB::applyVisitor, DB::Field const&>(DB::FieldVisitorConvertToNumber&&, DB::Field const&) @ 0x0000000014680c5d in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionUniqUpTo.cpp:39: DB::(anonymous namespace)::createAggregateFunctionUniqUpTo(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000173c25de in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 2024.05.01 13:25:50.472693 [ 50482 ] {34468345-13a8-4400-84cd-e416872d7234} TCPHandler: Code: 70. DB::Exception: Cannot convert out of range floating point value to integer type. (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [65]) @ 0x000000000e1c729e in /usr/bin/clickhouse 6. /build/src/Common/FieldVisitorConvertToNumber.h:74: DB::FieldVisitorConvertToNumber::operator()(double const&) const @ 0x000000001240aba0 in /usr/bin/clickhouse 7. /build/src/Core/Field.h:638: auto DB::Field::dispatch, DB::Field const&>(DB::FieldVisitorConvertToNumber&&, DB::Field const&) @ 0x000000001468403a in /usr/bin/clickhouse 8. /build/src/Common/FieldVisitors.h:24: auto DB::applyVisitor, DB::Field const&>(DB::FieldVisitorConvertToNumber&&, DB::Field const&) @ 0x0000000014680c5d in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionUniqUpTo.cpp:39: DB::(anonymous namespace)::createAggregateFunctionUniqUpTo(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000173c25de in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 2024.05.01 13:25:50.481777 [ 50482 ] {af5f67ae-bd78-4edd-b744-9870e2790af1} executeQuery: Code: 70. DB::Exception: Cannot convert out of range floating point value to integer type. (CANNOT_CONVERT_TYPE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42466) (comment: 01804_uniq_up_to_ubsan.sql) (in query: SELECT uniqUpTo(-1e100)(number) FROM numbers(5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [65]) @ 0x000000000e1c729e in /usr/bin/clickhouse 6. /build/src/Common/FieldVisitorConvertToNumber.h:74: DB::FieldVisitorConvertToNumber::operator()(double const&) const @ 0x000000001240aba0 in /usr/bin/clickhouse 7. /build/src/Core/Field.h:638: auto DB::Field::dispatch, DB::Field const&>(DB::FieldVisitorConvertToNumber&&, DB::Field const&) @ 0x000000001468403a in /usr/bin/clickhouse 8. /build/src/Common/FieldVisitors.h:24: auto DB::applyVisitor, DB::Field const&>(DB::FieldVisitorConvertToNumber&&, DB::Field const&) @ 0x0000000014680c5d in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionUniqUpTo.cpp:39: DB::(anonymous namespace)::createAggregateFunctionUniqUpTo(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000173c25de in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 2024.05.01 13:25:50.482700 [ 50482 ] {af5f67ae-bd78-4edd-b744-9870e2790af1} TCPHandler: Code: 70. DB::Exception: Cannot convert out of range floating point value to integer type. (CANNOT_CONVERT_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [65]) @ 0x000000000e1c729e in /usr/bin/clickhouse 6. /build/src/Common/FieldVisitorConvertToNumber.h:74: DB::FieldVisitorConvertToNumber::operator()(double const&) const @ 0x000000001240aba0 in /usr/bin/clickhouse 7. /build/src/Core/Field.h:638: auto DB::Field::dispatch, DB::Field const&>(DB::FieldVisitorConvertToNumber&&, DB::Field const&) @ 0x000000001468403a in /usr/bin/clickhouse 8. /build/src/Common/FieldVisitors.h:24: auto DB::applyVisitor, DB::Field const&>(DB::FieldVisitorConvertToNumber&&, DB::Field const&) @ 0x0000000014680c5d in /usr/bin/clickhouse 9. /build/src/AggregateFunctions/AggregateFunctionUniqUpTo.cpp:39: DB::(anonymous namespace)::createAggregateFunctionUniqUpTo(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000173c25de in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 16. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 17. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 2024.05.01 13:25:55.501069 [ 919 ] {89b8441b-8b30-4df7-ae35-3fb0b45cea4f::all_1_1_0_7} MutatePlainMergeTreeTask: Code: 190. DB::Exception: Elements '[100, 200]' and '['a', 'b', 'c']' of Nested data structure (Array columns) have different array sizes (2 and 3 respectively) on row 0: while executing 'FUNCTION validateNestedArraySizes(equals(id, 0) : 13, [100, 200] :: 5, ['a', 'b', 'c'] :: 6, [10, 20, 30] :: 7) -> validateNestedArraySizes(equals(id, 0), [100, 200], ['a', 'b', 'c'], [10, 20, 30]) UInt8 : 4'. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:25:55.740927 [ 50481 ] {8f832d07-4c9c-4e3a-bff6-2203a6007bf9} executeQuery: Code: 341. DB::Exception: Exception happened during execution of mutation 'mutation_7.txt' with part 'all_1_1_0_6' reason: 'Code: 190. DB::Exception: Elements '[100, 200]' and '['a', 'b', 'c']' of Nested data structure (Array columns) have different array sizes (2 and 3 respectively) on row 0: while executing 'FUNCTION validateNestedArraySizes(equals(id, 0) : 13, [100, 200] :: 5, ['a', 'b', 'c'] :: 6, [10, 20, 30] :: 7) -> validateNestedArraySizes(equals(id, 0), [100, 200], ['a', 'b', 'c'], [10, 20, 30]) UInt8 : 4'. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.11.29.altinitystable (altinity build))'. This error maybe retryable or not. In case of unretryable error, mutation can be killed with KILL MUTATION query. (UNFINISHED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42552) (comment: 01788_update_nested_type_subcolumn_check.sql) (in query: alter table test_wide_nested update `info.id` = [100,200], `info.age` = [10,20,30], `info.name` = ['a','b','c'] where id = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&&, String&, String&) @ 0x000000001e06c8a4 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeMutationStatus.cpp:26: DB::checkMutationStatus(std::optional&, std::set, std::allocator> const&) @ 0x000000001e06c650 in /usr/bin/clickhouse 7. /build/src/Storages/StorageMergeTree.cpp:580: DB::StorageMergeTree::waitForMutation(long, String const&, bool) @ 0x000000001e2fe4b8 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:550: DB::StorageMergeTree::waitForMutation(long, bool) @ 0x000000001e2fc068 in /usr/bin/clickhouse 9. /build/src/Storages/StorageMergeTree.cpp:619: DB::StorageMergeTree::mutate(DB::MutationCommands const&, std::shared_ptr) @ 0x000000001e2ff74e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:179: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caaba in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:55.741191 [ 919 ] {89b8441b-8b30-4df7-ae35-3fb0b45cea4f::all_1_1_0_7} virtual bool DB::MutatePlainMergeTreeTask::executeStep(): Code: 190. DB::Exception: Elements '[100, 200]' and '['a', 'b', 'c']' of Nested data structure (Array columns) have different array sizes (2 and 3 respectively) on row 0: while executing 'FUNCTION validateNestedArraySizes(equals(id, 0) : 13, [100, 200] :: 5, ['a', 'b', 'c'] :: 6, [10, 20, 30] :: 7) -> validateNestedArraySizes(equals(id, 0), [100, 200], ['a', 'b', 'c'], [10, 20, 30]) UInt8 : 4'. (SIZES_OF_ARRAYS_DONT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String const&, unsigned long&, unsigned long&, unsigned long&) @ 0x00000000127abcda in /usr/bin/clickhouse 6. /build/src/Functions/validateNestedArraySizes.cpp:108: DB::FunctionValidateNestedArraySizes::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ab8d3 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 13. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 14. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e68d821 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MutateTask.cpp:1137: DB::PartMergerWriter::mutateOriginalPartAndPrepareProjections() @ 0x000000001e1a6c2a in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MutateTask.cpp:1062: DB::PartMergerWriter::execute() @ 0x000000001e1c92e3 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MutateTask.cpp:1506: DB::MutateSomePartColumnsTask::executeStep() @ 0x000000001e1cd7aa in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/MutateTask.cpp:1754: DB::MutateTask::execute() @ 0x000000001e1a7e6f in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/MutatePlainMergeTreeTask.cpp:90: DB::MutatePlainMergeTreeTask::executeStep() @ 0x000000001e346db7 in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c15 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:25:55.741671 [ 50481 ] {8f832d07-4c9c-4e3a-bff6-2203a6007bf9} TCPHandler: Code: 341. DB::Exception: Exception happened during execution of mutation 'mutation_7.txt' with part 'all_1_1_0_6' reason: 'Code: 190. DB::Exception: Elements '[100, 200]' and '['a', 'b', 'c']' of Nested data structure (Array columns) have different array sizes (2 and 3 respectively) on row 0: while executing 'FUNCTION validateNestedArraySizes(equals(id, 0) : 13, [100, 200] :: 5, ['a', 'b', 'c'] :: 6, [10, 20, 30] :: 7) -> validateNestedArraySizes(equals(id, 0), [100, 200], ['a', 'b', 'c'], [10, 20, 30]) UInt8 : 4'. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.11.29.altinitystable (altinity build))'. This error maybe retryable or not. In case of unretryable error, mutation can be killed with KILL MUTATION query. (UNFINISHED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&&, String&, String&) @ 0x000000001e06c8a4 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeMutationStatus.cpp:26: DB::checkMutationStatus(std::optional&, std::set, std::allocator> const&) @ 0x000000001e06c650 in /usr/bin/clickhouse 7. /build/src/Storages/StorageMergeTree.cpp:580: DB::StorageMergeTree::waitForMutation(long, String const&, bool) @ 0x000000001e2fe4b8 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:550: DB::StorageMergeTree::waitForMutation(long, bool) @ 0x000000001e2fc068 in /usr/bin/clickhouse 9. /build/src/Storages/StorageMergeTree.cpp:619: DB::StorageMergeTree::mutate(DB::MutationCommands const&, std::shared_ptr) @ 0x000000001e2ff74e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:179: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caaba in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:55.960444 [ 4411 ] {71d3901f-b137-4a9d-ac81-a86991b192c1} DistributedSink: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 1)), implicit conversion will be done. 2024.05.01 13:25:55.960461 [ 4176 ] {71d3901f-b137-4a9d-ac81-a86991b192c1} DistributedSink: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 1)), implicit conversion will be done. 2024.05.01 13:25:56.214260 [ 919 ] {d10a24c3-67a0-4d5a-bc43-60ecdbe98597::all_1_1_0_3} MutatePlainMergeTreeTask: Code: 190. DB::Exception: Elements '[10, 20, 30]' and 'info.age' of Nested data structure (Array columns) have different array sizes (3 and 2 respectively) on row 1: while executing 'FUNCTION validateNestedArraySizes(equals(id, 1) : 9, [10, 20, 30] :: 4, info.age : 2) -> validateNestedArraySizes(equals(id, 1), [10, 20, 30], info.age) UInt8 : 3'. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:25:56.215402 [ 50481 ] {91027e1b-d29a-4273-ab1b-dc3427f19423} executeQuery: Code: 341. DB::Exception: Exception happened during execution of mutation 'mutation_3.txt' with part 'all_1_1_0_2' reason: 'Code: 190. DB::Exception: Elements '[10, 20, 30]' and 'info.age' of Nested data structure (Array columns) have different array sizes (3 and 2 respectively) on row 1: while executing 'FUNCTION validateNestedArraySizes(equals(id, 1) : 9, [10, 20, 30] :: 4, info.age : 2) -> validateNestedArraySizes(equals(id, 1), [10, 20, 30], info.age) UInt8 : 3'. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.11.29.altinitystable (altinity build))'. This error maybe retryable or not. In case of unretryable error, mutation can be killed with KILL MUTATION query. (UNFINISHED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42552) (comment: 01788_update_nested_type_subcolumn_check.sql) (in query: alter table test_wide_nested update `info.id` = [100,200,300], `info.age` = [10,20,30] where id = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&&, String&, String&) @ 0x000000001e06c8a4 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeMutationStatus.cpp:26: DB::checkMutationStatus(std::optional&, std::set, std::allocator> const&) @ 0x000000001e06c650 in /usr/bin/clickhouse 7. /build/src/Storages/StorageMergeTree.cpp:580: DB::StorageMergeTree::waitForMutation(long, String const&, bool) @ 0x000000001e2fe4b8 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:550: DB::StorageMergeTree::waitForMutation(long, bool) @ 0x000000001e2fc068 in /usr/bin/clickhouse 9. /build/src/Storages/StorageMergeTree.cpp:619: DB::StorageMergeTree::mutate(DB::MutationCommands const&, std::shared_ptr) @ 0x000000001e2ff74e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:179: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caaba in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:56.216468 [ 50481 ] {91027e1b-d29a-4273-ab1b-dc3427f19423} TCPHandler: Code: 341. DB::Exception: Exception happened during execution of mutation 'mutation_3.txt' with part 'all_1_1_0_2' reason: 'Code: 190. DB::Exception: Elements '[10, 20, 30]' and 'info.age' of Nested data structure (Array columns) have different array sizes (3 and 2 respectively) on row 1: while executing 'FUNCTION validateNestedArraySizes(equals(id, 1) : 9, [10, 20, 30] :: 4, info.age : 2) -> validateNestedArraySizes(equals(id, 1), [10, 20, 30], info.age) UInt8 : 3'. (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.11.29.altinitystable (altinity build))'. This error maybe retryable or not. In case of unretryable error, mutation can be killed with KILL MUTATION query. (UNFINISHED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&&, String&, String&) @ 0x000000001e06c8a4 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeMutationStatus.cpp:26: DB::checkMutationStatus(std::optional&, std::set, std::allocator> const&) @ 0x000000001e06c650 in /usr/bin/clickhouse 7. /build/src/Storages/StorageMergeTree.cpp:580: DB::StorageMergeTree::waitForMutation(long, String const&, bool) @ 0x000000001e2fe4b8 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:550: DB::StorageMergeTree::waitForMutation(long, bool) @ 0x000000001e2fc068 in /usr/bin/clickhouse 9. /build/src/Storages/StorageMergeTree.cpp:619: DB::StorageMergeTree::mutate(DB::MutationCommands const&, std::shared_ptr) @ 0x000000001e2ff74e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:179: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caaba in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:56.219111 [ 919 ] {d10a24c3-67a0-4d5a-bc43-60ecdbe98597::all_1_1_0_3} virtual bool DB::MutatePlainMergeTreeTask::executeStep(): Code: 190. DB::Exception: Elements '[10, 20, 30]' and 'info.age' of Nested data structure (Array columns) have different array sizes (3 and 2 respectively) on row 1: while executing 'FUNCTION validateNestedArraySizes(equals(id, 1) : 9, [10, 20, 30] :: 4, info.age : 2) -> validateNestedArraySizes(equals(id, 1), [10, 20, 30], info.age) UInt8 : 3'. (SIZES_OF_ARRAYS_DONT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String const&, unsigned long&, unsigned long&, unsigned long&) @ 0x00000000127abcda in /usr/bin/clickhouse 6. /build/src/Functions/validateNestedArraySizes.cpp:108: DB::FunctionValidateNestedArraySizes::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000127ab8d3 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 13. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 14. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e68d821 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MutateTask.cpp:1137: DB::PartMergerWriter::mutateOriginalPartAndPrepareProjections() @ 0x000000001e1a6c2a in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MutateTask.cpp:1062: DB::PartMergerWriter::execute() @ 0x000000001e1c92e3 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MutateTask.cpp:1506: DB::MutateSomePartColumnsTask::executeStep() @ 0x000000001e1cd7aa in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/MutateTask.cpp:1754: DB::MutateTask::execute() @ 0x000000001e1a7e6f in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/MutatePlainMergeTreeTask.cpp:90: DB::MutatePlainMergeTreeTask::executeStep() @ 0x000000001e346db7 in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c15 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:25:56.283958 [ 12026 ] {92ac4da6-0351-4897-afe4-3fc6602eab41} test_19f9mdkh.dist_01683.DirectoryMonitor.default: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 0)), implicit conversion will be done 2024.05.01 13:25:56.295971 [ 12026 ] {92ac4da6-0351-4897-afe4-3fc6602eab41} test_19f9mdkh.dist_01683.DirectoryMonitor.default: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 0)), implicit conversion will be done 2024.05.01 13:25:56.618931 [ 12027 ] {b07e081f-a45b-4f3c-962e-48db1c16755c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.00 GiB (attempt to allocate chunk of 8590372046 bytes), maximum: 953.67 MiB. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42606) (comment: 01784_parallel_formatting_memory.sql) (in query: SELECT range(65535) FROM system.one ARRAY JOIN range(65536) AS number;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001386fdce in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b282ce5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b282b79 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:235: COW::immutable_ptr DB::ColumnArray::replicateNumber(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d202604 in /usr/bin/clickhouse 14. /build/src/Columns/ColumnArray.cpp:975: DB::ColumnArray::replicate(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d1f3fdb in /usr/bin/clickhouse 15. /build/src/Columns/ColumnConst.cpp:48: DB::ColumnConst::convertToFullColumn() const @ 0x000000001d22bf82 in /usr/bin/clickhouse 16. /build/src/Columns/ColumnConst.h:39: DB::ColumnConst::convertToFullColumnIfConst() const @ 0x000000000bcb8800 in /usr/bin/clickhouse 17. /build/src/Formats/NativeWriter.cpp:53: DB::writeData(DB::ISerialization const&, COW::immutable_ptr const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x000000001e62c278 in /usr/bin/clickhouse 18. /build/src/Formats/NativeWriter.cpp:163: DB::NativeWriter::write(DB::Block const&) @ 0x000000001e62c036 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2035: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e5e4a55 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e2099 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:56.619942 [ 12027 ] {b07e081f-a45b-4f3c-962e-48db1c16755c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.00 GiB (attempt to allocate chunk of 8590372046 bytes), maximum: 953.67 MiB. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001386fdce in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b282ce5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b282b79 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:235: COW::immutable_ptr DB::ColumnArray::replicateNumber(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d202604 in /usr/bin/clickhouse 14. /build/src/Columns/ColumnArray.cpp:975: DB::ColumnArray::replicate(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d1f3fdb in /usr/bin/clickhouse 15. /build/src/Columns/ColumnConst.cpp:48: DB::ColumnConst::convertToFullColumn() const @ 0x000000001d22bf82 in /usr/bin/clickhouse 16. /build/src/Columns/ColumnConst.h:39: DB::ColumnConst::convertToFullColumnIfConst() const @ 0x000000000bcb8800 in /usr/bin/clickhouse 17. /build/src/Formats/NativeWriter.cpp:53: DB::writeData(DB::ISerialization const&, COW::immutable_ptr const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x000000001e62c278 in /usr/bin/clickhouse 18. /build/src/Formats/NativeWriter.cpp:163: DB::NativeWriter::write(DB::Block const&) @ 0x000000001e62c036 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2035: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e5e4a55 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e2099 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:57.251949 [ 50482 ] {c3772aec-f40a-4360-98dc-7b22ca5d64a9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.00 GiB (attempt to allocate chunk of 8590372542 bytes), maximum: 953.67 MiB. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42608) (comment: 01785_parallel_formatting_memory.sh) (in query: SELECT range(65535) FROM system.one ARRAY JOIN range(65536) AS number), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001386fdce in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b282ce5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b282b79 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:235: COW::immutable_ptr DB::ColumnArray::replicateNumber(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d202604 in /usr/bin/clickhouse 14. /build/src/Columns/ColumnArray.cpp:975: DB::ColumnArray::replicate(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d1f3fdb in /usr/bin/clickhouse 15. /build/src/Columns/ColumnConst.cpp:48: DB::ColumnConst::convertToFullColumn() const @ 0x000000001d22bf82 in /usr/bin/clickhouse 16. /build/src/Columns/ColumnConst.h:39: DB::ColumnConst::convertToFullColumnIfConst() const @ 0x000000000bcb8800 in /usr/bin/clickhouse 17. /build/src/Formats/NativeWriter.cpp:53: DB::writeData(DB::ISerialization const&, COW::immutable_ptr const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x000000001e62c278 in /usr/bin/clickhouse 18. /build/src/Formats/NativeWriter.cpp:163: DB::NativeWriter::write(DB::Block const&) @ 0x000000001e62c036 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2035: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e5e4a55 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e2099 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:57.253766 [ 50482 ] {c3772aec-f40a-4360-98dc-7b22ca5d64a9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.00 GiB (attempt to allocate chunk of 8590372542 bytes), maximum: 953.67 MiB. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001386fdce in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b282ce5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b282b79 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:235: COW::immutable_ptr DB::ColumnArray::replicateNumber(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d202604 in /usr/bin/clickhouse 14. /build/src/Columns/ColumnArray.cpp:975: DB::ColumnArray::replicate(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d1f3fdb in /usr/bin/clickhouse 15. /build/src/Columns/ColumnConst.cpp:48: DB::ColumnConst::convertToFullColumn() const @ 0x000000001d22bf82 in /usr/bin/clickhouse 16. /build/src/Columns/ColumnConst.h:39: DB::ColumnConst::convertToFullColumnIfConst() const @ 0x000000000bcb8800 in /usr/bin/clickhouse 17. /build/src/Formats/NativeWriter.cpp:53: DB::writeData(DB::ISerialization const&, COW::immutable_ptr const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x000000001e62c278 in /usr/bin/clickhouse 18. /build/src/Formats/NativeWriter.cpp:163: DB::NativeWriter::write(DB::Block const&) @ 0x000000001e62c036 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2035: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e5e4a55 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e2099 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:57.941188 [ 50482 ] {8636df1f-fcb2-4efd-88eb-c855983c4d6b} executeQuery: Code: 44. DB::Exception: Illegal columns of arguments of function range, the function only implemented for unsigned/signed integers up to 64 bit: While processing range(toUInt256(1), 1). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42626) (comment: 01780_range_msan.sql) (in query: SELECT range(toUInt256(1), 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:398: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000138271b2 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:25:57.943322 [ 50482 ] {8636df1f-fcb2-4efd-88eb-c855983c4d6b} TCPHandler: Code: 44. DB::Exception: Illegal columns of arguments of function range, the function only implemented for unsigned/signed integers up to 64 bit: While processing range(toUInt256(1), 1). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/array/range.cpp:398: DB::FunctionRange::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000138271b2 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:25:59.166501 [ 12027 ] {ce922ed6-2a13-4b3c-9e5a-70bf034d04d5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.00 GiB (attempt to allocate chunk of 8589943992 bytes), maximum: 953.67 MiB. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47434) (comment: 01785_parallel_formatting_memory.sh) (in query: SELECT range(65535) FROM system.one ARRAY JOIN range(65536) AS number), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001386fdce in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b282ce5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b282b79 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:235: COW::immutable_ptr DB::ColumnArray::replicateNumber(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d202604 in /usr/bin/clickhouse 14. /build/src/Columns/ColumnArray.cpp:975: DB::ColumnArray::replicate(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d1f3fdb in /usr/bin/clickhouse 15. /build/src/Columns/ColumnConst.cpp:48: DB::ColumnConst::convertToFullColumn() const @ 0x000000001d22bf82 in /usr/bin/clickhouse 16. /build/src/Columns/ColumnConst.h:39: DB::ColumnConst::convertToFullColumnIfConst() const @ 0x000000000bcb8800 in /usr/bin/clickhouse 17. /build/src/Formats/NativeWriter.cpp:53: DB::writeData(DB::ISerialization const&, COW::immutable_ptr const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x000000001e62c278 in /usr/bin/clickhouse 18. /build/src/Formats/NativeWriter.cpp:163: DB::NativeWriter::write(DB::Block const&) @ 0x000000001e62c036 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2035: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e5e4a55 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e2099 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:59.168772 [ 12027 ] {ce922ed6-2a13-4b3c-9e5a-70bf034d04d5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.00 GiB (attempt to allocate chunk of 8589943992 bytes), maximum: 953.67 MiB. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001386fdce in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b282ce5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<2ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b282b79 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:235: COW::immutable_ptr DB::ColumnArray::replicateNumber(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d202604 in /usr/bin/clickhouse 14. /build/src/Columns/ColumnArray.cpp:975: DB::ColumnArray::replicate(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000001d1f3fdb in /usr/bin/clickhouse 15. /build/src/Columns/ColumnConst.cpp:48: DB::ColumnConst::convertToFullColumn() const @ 0x000000001d22bf82 in /usr/bin/clickhouse 16. /build/src/Columns/ColumnConst.h:39: DB::ColumnConst::convertToFullColumnIfConst() const @ 0x000000000bcb8800 in /usr/bin/clickhouse 17. /build/src/Formats/NativeWriter.cpp:53: DB::writeData(DB::ISerialization const&, COW::immutable_ptr const&, DB::WriteBuffer&, unsigned long, unsigned long) @ 0x000000001e62c278 in /usr/bin/clickhouse 18. /build/src/Formats/NativeWriter.cpp:163: DB::NativeWriter::write(DB::Block const&) @ 0x000000001e62c036 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2035: DB::TCPHandler::sendData(DB::Block const&) @ 0x000000001e5e4a55 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:946: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e2099 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:25:59.738388 [ 12027 ] {93734b81-9de6-4719-8198-1f3dba1de43a} executeQuery: Code: 407. DB::Exception: Numeric overflow: While processing ignore(addHours(now64(3), inf)). (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47448) (comment: 01773_datetime64_add_ubsan.sql) (in query: -- The result is unspecified but UBSan should not argue. SELECT ignore(addHours(now64(3), inf)) FROM numbers(2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:437: long DB::Adder::checkOverflow(double) @ 0x000000000c42a0c0 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:445: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>, DB::ColumnVector>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector const&, DateLUTImpl const&, unsigned short, unsigned long) const @ 0x000000000c42ed9c in /usr/bin/clickhouse 8. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:413: auto void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)::operator()>(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000000c42e563 in /usr/bin/clickhouse 9. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::IColumn, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)>(DB::PODArray, 63ul, 64ul> const*, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)&&) @ 0x000000000c425f30 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:414: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const @ 0x000000000c42e083 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:482: DB::DateTimeAddIntervalImpl::execute(DB::AddHoursImpl, std::vector> const&, std::shared_ptr const&, unsigned short) @ 0x000000000c428aaa in /usr/bin/clickhouse 12. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:663: DB::FunctionDateOrDateTimeAddInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c427057 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 2024.05.01 13:25:59.739442 [ 12027 ] {93734b81-9de6-4719-8198-1f3dba1de43a} TCPHandler: Code: 407. DB::Exception: Numeric overflow: While processing ignore(addHours(now64(3), inf)). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:437: long DB::Adder::checkOverflow(double) @ 0x000000000c42a0c0 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:445: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>, DB::ColumnVector>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector const&, DateLUTImpl const&, unsigned short, unsigned long) const @ 0x000000000c42ed9c in /usr/bin/clickhouse 8. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:413: auto void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)::operator()>(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000000c42e563 in /usr/bin/clickhouse 9. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::IColumn, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)>(DB::PODArray, 63ul, 64ul> const*, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)&&) @ 0x000000000c425f30 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:414: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const @ 0x000000000c42e083 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:482: DB::DateTimeAddIntervalImpl::execute(DB::AddHoursImpl, std::vector> const&, std::shared_ptr const&, unsigned short) @ 0x000000000c428aaa in /usr/bin/clickhouse 12. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:663: DB::FunctionDateOrDateTimeAddInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c427057 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 2024.05.01 13:26:07.002513 [ 12024 ] {333b9fe8-3a0d-47fa-9902-6a0f559eaebb} executeQuery: Code: 6. DB::Exception: Cannot parse string '2021-1-01 00:00:00' as DateTime: syntax error at position 10 (parsed just '2021-1-01 '): while executing 'FUNCTION toDateTime(format('{}-{}-01 00:00:00', '2021', '1') :: 3) -> toDateTime(format('{}-{}-01 00:00:00', '2021', '1')) DateTime : 2'. (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47648) (comment: 01750_parsing_exception.sh) (in query: SELECT toDateTime(format('{}-{}-01 00:00:00', '2021', '1'))), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b594591 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b58eb78 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b57e7d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b57db08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b57ccfe in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 19. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 20. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 2024.05.01 13:26:07.004953 [ 12024 ] {333b9fe8-3a0d-47fa-9902-6a0f559eaebb} TCPHandler: Code: 6. DB::Exception: Cannot parse string '2021-1-01 00:00:00' as DateTime: syntax error at position 10 (parsed just '2021-1-01 '): while executing 'FUNCTION toDateTime(format('{}-{}-01 00:00:00', '2021', '1') :: 3) -> toDateTime(format('{}-{}-01 00:00:00', '2021', '1')) DateTime : 2'. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b594591 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b58eb78 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b57e7d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b57db08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b57ccfe in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 19. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 20. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 2024.05.01 13:26:08.206149 [ 12030 ] {5ca0f7a8-6f83-4e1b-91bb-e7bb2dbb431e} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:08.207254 [ 12030 ] {5ca0f7a8-6f83-4e1b-91bb-e7bb2dbb431e} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:08.239657 [ 12030 ] {274bb7f0-b11e-4e5f-b4e6-24a44be61824} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:08.240916 [ 12030 ] {274bb7f0-b11e-4e5f-b4e6-24a44be61824} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:08.272191 [ 12030 ] {4be0b62d-b1ce-4453-bb59-16fff4c10abc} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:08.273161 [ 12030 ] {4be0b62d-b1ce-4453-bb59-16fff4c10abc} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:08.300670 [ 12030 ] {1c6cc992-b98a-45ef-a044-81a4fd1f3484} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:08.301786 [ 12030 ] {1c6cc992-b98a-45ef-a044-81a4fd1f3484} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:08.857740 [ 12040 ] {d818109a-4077-49a8-85e4-e2cc17e2eb23} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/store/7a3/7a304861-b415-40f5-90bd-aa49be0ecb29//data.TSV doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36564) (comment: 01720_engine_file_empty_if_not_exists.sql) (in query: SELECT * FROM file_engine_table;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:08.858454 [ 12040 ] {d818109a-4077-49a8-85e4-e2cc17e2eb23} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/store/7a3/7a304861-b415-40f5-90bd-aa49be0ecb29//data.TSV doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:08.872928 [ 12040 ] {f1664387-40ce-447b-aca8-65cb52cce8e4} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/store/7a3/7a304861-b415-40f5-90bd-aa49be0ecb29//data.TSV doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36564) (comment: 01720_engine_file_empty_if_not_exists.sql) (in query: SELECT * FROM file_engine_table;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:08.873616 [ 12040 ] {f1664387-40ce-447b-aca8-65cb52cce8e4} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/store/7a3/7a304861-b415-40f5-90bd-aa49be0ecb29//data.TSV doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:09.322672 [ 12024 ] {d462dcca-b5c9-4e17-b2cf-b6a6fd900b2e} executeQuery: Code: 524. DB::Exception: Trying to ALTER DROP version ver column. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36572) (comment: 01714_alter_drop_version.sql) (in query: ALTER TABLE alter_drop_version DROP COLUMN ver;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3242: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2af3c in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:09.323378 [ 12024 ] {d462dcca-b5c9-4e17-b2cf-b6a6fd900b2e} TCPHandler: Code: 524. DB::Exception: Trying to ALTER DROP version ver column. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3242: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2af3c in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:09.416700 [ 12024 ] {d271d89d-dab4-4a89-9261-d99a4cdb8143} executeQuery: Code: 524. DB::Exception: Trying to ALTER RENAME version ver column. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36572) (comment: 01714_alter_drop_version.sql) (in query: ALTER TABLE alter_drop_version RENAME COLUMN ver TO rev;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3247: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2b096 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:09.417466 [ 12024 ] {d271d89d-dab4-4a89-9261-d99a4cdb8143} TCPHandler: Code: 524. DB::Exception: Trying to ALTER RENAME version ver column. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3247: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2b096 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:10.482790 [ 12040 ] {7d2745e0-c8c0-4ec5-8696-ce50452b86ae} executeQuery: Code: 307. DB::Exception: Limit for rows or bytes to read exceeded, max bytes: 400.00 B, current bytes: 416.00 B: While executing MergeTreeInOrder. (TOO_MANY_BYTES) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36590) (comment: 01710_projection_with_mixed_pipeline.sql) (in query: select uniqHLL12(x) from t settings optimize_use_projections = 1, max_bytes_to_read=400, max_block_size=8;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, ReadableSize&&, ReadableSize&&) @ 0x000000001b897d68 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:36: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b897847 in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b86de24 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683891 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 2024.05.01 13:26:10.484850 [ 12040 ] {7d2745e0-c8c0-4ec5-8696-ce50452b86ae} TCPHandler: Code: 307. DB::Exception: Limit for rows or bytes to read exceeded, max bytes: 400.00 B, current bytes: 416.00 B: While executing MergeTreeInOrder. (TOO_MANY_BYTES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, ReadableSize&&, ReadableSize&&) @ 0x000000001b897d68 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:36: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b897847 in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b86de24 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683891 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 2024.05.01 13:26:11.209958 [ 12040 ] {2cd04c15-4a0f-4e2b-a725-0fcd2c01ea88} executeQuery: Code: 582. DB::Exception: There is no projection pp in table. (NO_SUCH_PROJECTION_IN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36618) (comment: 01710_projection_drop_if_exists.sql) (in query: alter table tp drop projection pp;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Storages/ProjectionsDescription.cpp:403: DB::ProjectionsDescription::remove(String const&, bool) @ 0x000000001d603a66 in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:609: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d579551 in /usr/bin/clickhouse 8. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d57bba5 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de29e2c in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:11.211054 [ 12040 ] {2cd04c15-4a0f-4e2b-a725-0fcd2c01ea88} TCPHandler: Code: 582. DB::Exception: There is no projection pp in table. (NO_SUCH_PROJECTION_IN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Storages/ProjectionsDescription.cpp:403: DB::ProjectionsDescription::remove(String const&, bool) @ 0x000000001d603a66 in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:609: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d579551 in /usr/bin/clickhouse 8. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d57bba5 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de29e2c in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:11.298991 [ 12040 ] {aa79e8ce-c3bd-4daa-b282-0171c33c824e} executeQuery: Code: 582. DB::Exception: There is no projection p in table. (NO_SUCH_PROJECTION_IN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36618) (comment: 01710_projection_drop_if_exists.sql) (in query: alter table tp drop projection p;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Storages/ProjectionsDescription.cpp:403: DB::ProjectionsDescription::remove(String const&, bool) @ 0x000000001d603a66 in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:609: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d579551 in /usr/bin/clickhouse 8. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d57bba5 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de29e2c in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:11.299573 [ 12040 ] {aa79e8ce-c3bd-4daa-b282-0171c33c824e} TCPHandler: Code: 582. DB::Exception: There is no projection p in table. (NO_SUCH_PROJECTION_IN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Storages/ProjectionsDescription.cpp:403: DB::ProjectionsDescription::remove(String const&, bool) @ 0x000000001d603a66 in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:609: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d579551 in /usr/bin/clickhouse 8. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d57bba5 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de29e2c in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:11.844591 [ 12030 ] {f5c20c1f-58ca-4238-b11c-bee8ddc14525} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:11.845679 [ 12030 ] {f5c20c1f-58ca-4238-b11c-bee8ddc14525} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:11.880826 [ 12030 ] {fa9d7ee0-f9d7-4ff2-b1cc-6d35f17746a8} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:11.881856 [ 12030 ] {fa9d7ee0-f9d7-4ff2-b1cc-6d35f17746a8} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:11.913240 [ 12030 ] {2283730b-2860-4c7e-99f3-d63e770da7cc} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:11.914663 [ 12030 ] {2283730b-2860-4c7e-99f3-d63e770da7cc} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:11.951780 [ 12030 ] {63dce084-3562-4f98-bb04-4e59317c00ed} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:11.953090 [ 12030 ] {63dce084-3562-4f98-bb04-4e59317c00ed} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:15.543122 [ 12030 ] {c9a5229f-029b-4cc8-b58b-edf0dec76463} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:15.544067 [ 12030 ] {c9a5229f-029b-4cc8-b58b-edf0dec76463} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:15.572662 [ 12030 ] {f30f6886-b4d5-49a2-b5ea-3a72b9d781eb} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:15.573752 [ 12030 ] {f30f6886-b4d5-49a2-b5ea-3a72b9d781eb} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:15.603828 [ 12030 ] {e7dcdd2e-1bfa-4268-8967-f6318fef76b9} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:15.604919 [ 12030 ] {e7dcdd2e-1bfa-4268-8967-f6318fef76b9} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:15.640877 [ 12030 ] {4050082d-c155-40dc-94dd-90d3d2122e42} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:15.641997 [ 12030 ] {4050082d-c155-40dc-94dd-90d3d2122e42} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:19.170146 [ 12030 ] {83b53251-2060-473e-85e0-26b1e6d7c7ec} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:19.171138 [ 12030 ] {83b53251-2060-473e-85e0-26b1e6d7c7ec} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:19.194318 [ 12030 ] {bce30c9a-659a-4fe0-9974-e325bc1969b6} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:19.195266 [ 12030 ] {bce30c9a-659a-4fe0-9974-e325bc1969b6} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:19.221308 [ 12030 ] {1646f963-315c-4d8a-8dc8-6d7cf82ed849} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:19.222301 [ 12030 ] {1646f963-315c-4d8a-8dc8-6d7cf82ed849} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:19.248308 [ 12030 ] {39aabe6d-0586-4745-9180-beed64869495} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:19.249239 [ 12030 ] {39aabe6d-0586-4745-9180-beed64869495} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:22.751602 [ 12030 ] {90b5de93-5bfd-4dc4-8b26-280225b3d369} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:22.752591 [ 12030 ] {90b5de93-5bfd-4dc4-8b26-280225b3d369} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:22.777166 [ 12030 ] {2523192f-7746-4317-836b-9fa58695d51d} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:22.778341 [ 12030 ] {2523192f-7746-4317-836b-9fa58695d51d} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:22.802387 [ 12030 ] {13485e5d-29d0-4267-b77e-348683971b8b} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:22.803443 [ 12030 ] {13485e5d-29d0-4267-b77e-348683971b8b} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:22.826239 [ 12030 ] {85ca0a18-4b69-46cf-a45a-174d1ecffe73} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:22.827217 [ 12030 ] {85ca0a18-4b69-46cf-a45a-174d1ecffe73} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:25.876123 [ 12040 ] {50e48701-8981-4310-80ca-e4367921a024} executeQuery: Code: 53. DB::Exception: Cannot convert string Hello to type UInt64: while executing 'FUNCTION equals(key : 0, 'Hello' : 2) -> equals(key, 'Hello') UInt8 : 3'. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:57674) (comment: 01686_rocksdb.sql) (in query: SELECT * FROM 01686_test WHERE key = 'Hello';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/convertFieldToType.cpp:508: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05dec2 in /usr/bin/clickhouse 7. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05a5fd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsComparison.h:919: DB::FunctionComparison::executeWithConstString(std::shared_ptr const&, DB::IColumn const*, DB::IColumn const*, std::shared_ptr const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddf3dae in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsComparison.h:1313: DB::FunctionComparison::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dddcb64 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:1906: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf682 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:26:25.877294 [ 12040 ] {50e48701-8981-4310-80ca-e4367921a024} TCPHandler: Code: 53. DB::Exception: Cannot convert string Hello to type UInt64: while executing 'FUNCTION equals(key : 0, 'Hello' : 2) -> equals(key, 'Hello') UInt8 : 3'. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/convertFieldToType.cpp:508: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05dec2 in /usr/bin/clickhouse 7. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05a5fd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsComparison.h:919: DB::FunctionComparison::executeWithConstString(std::shared_ptr const&, DB::IColumn const*, DB::IColumn const*, std::shared_ptr const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddf3dae in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsComparison.h:1313: DB::FunctionComparison::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dddcb64 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:1906: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf682 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 13:26:26.284089 [ 12030 ] {54a58f26-07db-4a95-b147-cb8339a2c272} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:26.285195 [ 12030 ] {54a58f26-07db-4a95-b147-cb8339a2c272} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:26.310681 [ 12030 ] {b9943492-c87c-4f4c-9b1f-239291055da5} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:26.316742 [ 12030 ] {b9943492-c87c-4f4c-9b1f-239291055da5} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:26.340591 [ 12030 ] {e210a563-2ce7-42d7-94f4-b80a46a89f3a} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:26.341764 [ 12030 ] {e210a563-2ce7-42d7-94f4-b80a46a89f3a} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:26.364629 [ 4018 ] {9103bc1c-e316-45af-8891-3ff4ec14b9ea} DistributedSink: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 1)), implicit conversion will be done. 2024.05.01 13:26:26.365601 [ 3865 ] {9103bc1c-e316-45af-8891-3ff4ec14b9ea} DistributedSink: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 1)), implicit conversion will be done. 2024.05.01 13:26:26.370236 [ 12030 ] {16b52b24-63fa-40b5-a4bf-91848d41de18} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:26.371373 [ 12030 ] {16b52b24-63fa-40b5-a4bf-91848d41de18} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:26.653124 [ 12040 ] {78b2c35f-ddd4-47ab-ba97-beb46dd7a83f} executeQuery: Code: 153. DB::Exception: Cannot perform integer division on infinite or too large floating point numbers: while executing 'FUNCTION intDiv(number :: 0, nan :: 1) -> intDiv(number, nan) Int64 : 2'. (ILLEGAL_DIVISION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:57698) (comment: 01683_intdiv_ubsan.sql) (in query: SELECT DISTINCT intDiv(number, nan) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [80]) @ 0x000000000f1f507e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:95: long DB::DivideIntegralImpl::apply(unsigned long, double) @ 0x000000000f229990 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:237: void DB::impl_::BinaryOperation, long>::process<(DB::impl_::OpCase)2>(unsigned long const*, double const*, long*, unsigned long, DB::PODArray, 63ul, 64ul> const*) @ 0x000000000f2298d4 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1997: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f3e3c59 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f3e365b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f3d9d84 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f3d96c9 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f3d8fdd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f3b7d93 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f3b75c7 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f3b749d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f3b68d1 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f3b659f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f3b4136 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f3b2b0c in /usr/bin/clickhouse 20. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 26. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 27. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 28. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 2024.05.01 13:26:26.654773 [ 12040 ] {78b2c35f-ddd4-47ab-ba97-beb46dd7a83f} TCPHandler: Code: 153. DB::Exception: Cannot perform integer division on infinite or too large floating point numbers: while executing 'FUNCTION intDiv(number :: 0, nan :: 1) -> intDiv(number, nan) Int64 : 2'. (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [80]) @ 0x000000000f1f507e in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:95: long DB::DivideIntegralImpl::apply(unsigned long, double) @ 0x000000000f229990 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:237: void DB::impl_::BinaryOperation, long>::process<(DB::impl_::OpCase)2>(unsigned long const*, double const*, long*, unsigned long, DB::PODArray, 63ul, 64ul> const*) @ 0x000000000f2298d4 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1997: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f3e3c59 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f3e365b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f3d9d84 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f3d96c9 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f3d8fdd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f3b7d93 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f3b75c7 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f3b749d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f3b68d1 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f3b659f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f3b4136 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f3b2b0c in /usr/bin/clickhouse 20. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 26. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 27. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 28. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 2024.05.01 13:26:26.668538 [ 874 ] {} test_r9cjj5x8.dist_01683.DirectoryMonitor.default: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 0)), implicit conversion will be done 2024.05.01 13:26:26.673599 [ 875 ] {} test_r9cjj5x8.dist_01683.DirectoryMonitor.default: Structure does not match (remote: n Int8 Int8(size = 0), local: n UInt64 UInt64(size = 0)), implicit conversion will be done 2024.05.01 13:26:28.589439 [ 12040 ] {563ca633-658c-4ab4-a376-5fb709ff9df3} executeQuery: Code: 20. DB::Exception: Number of columns in section IN doesn't match. 1 at left, 2 at right.: while executing 'FUNCTION nullIn(str : 0, _subquery77 :: 1) -> nullIn(str, _subquery77) UInt8 : 2': While executing MergeTreeThread. (NUMBER_OF_COLUMNS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:57716) (comment: 01681_bloom_filter_nullable_column.sql) (in query: SELECT * FROM bloom_filter_nullable_index WHERE str IN (SELECT '1048576', str FROM bloom_filter_nullable_index) SETTINGS transform_null_in = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x000000000b660a0c in /usr/bin/clickhouse 6. /build/src/Interpreters/Set.cpp:440: DB::Set::checkColumnsNumber(unsigned long) const @ 0x000000001ce08128 in /usr/bin/clickhouse 7. /build/src/Interpreters/Set.cpp:307: DB::Set::execute(std::vector> const&, bool) const @ 0x000000001ce07beb in /usr/bin/clickhouse 8. /build/src/Functions/in.cpp:150: DB::(anonymous namespace)::FunctionIn::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f1bdfd0 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1344: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x000000001e0dd1d4 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1072: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0db5b8 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:973: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0da2b1 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 13:26:28.685677 [ 12040 ] {563ca633-658c-4ab4-a376-5fb709ff9df3} TCPHandler: Code: 20. DB::Exception: Number of columns in section IN doesn't match. 1 at left, 2 at right.: while executing 'FUNCTION nullIn(str : 0, _subquery77 :: 1) -> nullIn(str, _subquery77) UInt8 : 2': While executing MergeTreeThread. (NUMBER_OF_COLUMNS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x000000000b660a0c in /usr/bin/clickhouse 6. /build/src/Interpreters/Set.cpp:440: DB::Set::checkColumnsNumber(unsigned long) const @ 0x000000001ce08128 in /usr/bin/clickhouse 7. /build/src/Interpreters/Set.cpp:307: DB::Set::execute(std::vector> const&, bool) const @ 0x000000001ce07beb in /usr/bin/clickhouse 8. /build/src/Functions/in.cpp:150: DB::(anonymous namespace)::FunctionIn::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f1bdfd0 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1344: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x000000001e0dd1d4 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1072: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0db5b8 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:973: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0da2b1 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 13:26:28.685787 [ 1276 ] {e4c697a2-03ab-4f0a-85a4-134f6a15a704} executeQuery: Code: 407. DB::Exception: Numeric overflow: while executing 'FUNCTION plus(toDateTime(toStartOfFifteenMinutes(plus(toDateTime(1000.0001220703125), multiply(number, 65536)))) :: 3, multiply(number, 9223372036854775807) :: 2) -> plus(toDateTime(toStartOfFifteenMinutes(plus(toDateTime(1000.0001220703125), multiply(number, 65536)))), multiply(number, 9223372036854775807)) DateTime : 4'. (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58442) (comment: 01680_date_time_add_ubsan.sql) (in query: SELECT DISTINCT result FROM (SELECT toStartOfFifteenMinutes(toDateTime(toStartOfFifteenMinutes(toDateTime(1000.0001220703125) + (number * 65536))) + (number * 9223372036854775807)) AS result FROM system.numbers LIMIT 1048576) ORDER BY result DESC NULLS FIRST FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:437: long DB::Adder::checkOverflow(unsigned long) @ 0x000000000c457b20 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:445: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>, DB::ColumnVector>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector const&, DateLUTImpl const&, unsigned short, unsigned long) const @ 0x000000000c45b119 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:413: auto void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)::operator()>(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000000c45ac03 in /usr/bin/clickhouse 9. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::IColumn, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)>(DB::PODArray, 63ul, 64ul> const*, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)&&) @ 0x000000000c453947 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:414: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const @ 0x000000000c45a9c3 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:482: DB::DateTimeAddIntervalImpl::execute(DB::AddSecondsImpl, std::vector> const&, std::shared_ptr const&, unsigned short) @ 0x000000000c45684a in /usr/bin/clickhouse 12. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:657: DB::FunctionDateOrDateTimeAddInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c455214 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:1134: DB::FunctionBinaryArithmetic::executeDateTimeIntervalPlusMinus(std::vector> const&, std::shared_ptr const&, unsigned long, std::shared_ptr const&) const @ 0x0000000011b81311 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:2025: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b7f7b4 in /usr/bin/clickhouse 20. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 26. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 27. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 28. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 2024.05.01 13:26:28.687725 [ 1276 ] {e4c697a2-03ab-4f0a-85a4-134f6a15a704} TCPHandler: Code: 407. DB::Exception: Numeric overflow: while executing 'FUNCTION plus(toDateTime(toStartOfFifteenMinutes(plus(toDateTime(1000.0001220703125), multiply(number, 65536)))) :: 3, multiply(number, 9223372036854775807) :: 2) -> plus(toDateTime(toStartOfFifteenMinutes(plus(toDateTime(1000.0001220703125), multiply(number, 65536)))), multiply(number, 9223372036854775807)) DateTime : 4'. (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:437: long DB::Adder::checkOverflow(unsigned long) @ 0x000000000c457b20 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:445: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>, DB::ColumnVector>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector const&, DateLUTImpl const&, unsigned short, unsigned long) const @ 0x000000000c45b119 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:413: auto void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)::operator()>(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000000c45ac03 in /usr/bin/clickhouse 9. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::IColumn, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)>(DB::PODArray, 63ul, 64ul> const*, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)&&) @ 0x000000000c453947 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:414: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const @ 0x000000000c45a9c3 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:482: DB::DateTimeAddIntervalImpl::execute(DB::AddSecondsImpl, std::vector> const&, std::shared_ptr const&, unsigned short) @ 0x000000000c45684a in /usr/bin/clickhouse 12. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:657: DB::FunctionDateOrDateTimeAddInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c455214 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:1134: DB::FunctionBinaryArithmetic::executeDateTimeIntervalPlusMinus(std::vector> const&, std::shared_ptr const&, unsigned long, std::shared_ptr const&) const @ 0x0000000011b81311 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:2025: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b7f7b4 in /usr/bin/clickhouse 20. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 26. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 27. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 28. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 2024.05.01 13:26:28.731388 [ 12040 ] {2586ca62-4022-499e-98f4-eee420c64c48} executeQuery: Code: 20. DB::Exception: Number of columns in section IN doesn't match. 1 at left, 2 at right.: while executing 'FUNCTION nullIn(str : 0, _subquery78 :: 1) -> nullIn(str, _subquery78) UInt8 : 2': While executing MergeTreeThread. (NUMBER_OF_COLUMNS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:57716) (comment: 01681_bloom_filter_nullable_column.sql) (in query: SELECT * FROM bloom_filter_nullable_index WHERE str IN (SELECT '1048576', str FROM bloom_filter_nullable_index) SETTINGS transform_null_in = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x000000000b660a0c in /usr/bin/clickhouse 6. /build/src/Interpreters/Set.cpp:440: DB::Set::checkColumnsNumber(unsigned long) const @ 0x000000001ce08128 in /usr/bin/clickhouse 7. /build/src/Interpreters/Set.cpp:307: DB::Set::execute(std::vector> const&, bool) const @ 0x000000001ce07beb in /usr/bin/clickhouse 8. /build/src/Functions/in.cpp:150: DB::(anonymous namespace)::FunctionIn::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f1bdfd0 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1344: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x000000001e0dd1d4 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1072: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0db5b8 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:973: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0da2b1 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 13:26:28.734029 [ 12040 ] {2586ca62-4022-499e-98f4-eee420c64c48} TCPHandler: Code: 20. DB::Exception: Number of columns in section IN doesn't match. 1 at left, 2 at right.: while executing 'FUNCTION nullIn(str : 0, _subquery78 :: 1) -> nullIn(str, _subquery78) UInt8 : 2': While executing MergeTreeThread. (NUMBER_OF_COLUMNS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x000000000b660a0c in /usr/bin/clickhouse 6. /build/src/Interpreters/Set.cpp:440: DB::Set::checkColumnsNumber(unsigned long) const @ 0x000000001ce08128 in /usr/bin/clickhouse 7. /build/src/Interpreters/Set.cpp:307: DB::Set::execute(std::vector> const&, bool) const @ 0x000000001ce07beb in /usr/bin/clickhouse 8. /build/src/Functions/in.cpp:150: DB::(anonymous namespace)::FunctionIn::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f1bdfd0 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1344: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x000000001e0dd1d4 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1072: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0db5b8 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:973: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0da2b1 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 13:26:30.161511 [ 12030 ] {e91acd04-d1ca-407e-b44a-31230a779656} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:30.162542 [ 12030 ] {e91acd04-d1ca-407e-b44a-31230a779656} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:30.183957 [ 12030 ] {93c5e59e-095e-403d-bf58-9762d860d5df} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:30.184922 [ 12030 ] {93c5e59e-095e-403d-bf58-9762d860d5df} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:30.206786 [ 12030 ] {c9b2491e-fde2-4de4-97eb-a8740987c90c} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:30.207734 [ 12030 ] {c9b2491e-fde2-4de4-97eb-a8740987c90c} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:30.229878 [ 12030 ] {3ef5fb29-4d6f-4193-82d3-be2944156ce8} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:30.230866 [ 12030 ] {3ef5fb29-4d6f-4193-82d3-be2944156ce8} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:34.153828 [ 50483 ] {b9a58beb-9ad9-449d-86d9-83ba13ac1117} executeQuery: Code: 574. DB::Exception: Too many bytes pending for async INSERT: 2.17 KiB (bytes_to_throw_insert=1.00 B). (DISTRIBUTED_TOO_MANY_PENDING_BYTES) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58556) (comment: 01670_distributed_bytes_to_throw_insert.sql) (in query: -- second will fail, because of bytes_to_throw_insert=1 -- (previous block definitelly takes more, since it has header) insert into dist_01670 select * from numbers(1) settings prefer_localhost_replica=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1547: DB::StorageDistributed::delayInsertOrThrowIfNeeded() const @ 0x000000001d65563d in /usr/bin/clickhouse 7. /build/src/Storages/Distributed/DistributedSink.cpp:144: DB::DistributedSink::consume(DB::Chunk) @ 0x000000001dc9cd1b in /usr/bin/clickhouse 8. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 9. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e665267 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6651d5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&) @ 0x000000001e6651b5 in /usr/bin/clickhouse 2024.05.01 13:26:34.153914 [ 12030 ] {07812195-4d5d-4d23-8a6f-e765e83d31a1} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:34.155179 [ 50483 ] {b9a58beb-9ad9-449d-86d9-83ba13ac1117} TCPHandler: Code: 574. DB::Exception: Too many bytes pending for async INSERT: 2.17 KiB (bytes_to_throw_insert=1.00 B). (DISTRIBUTED_TOO_MANY_PENDING_BYTES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1547: DB::StorageDistributed::delayInsertOrThrowIfNeeded() const @ 0x000000001d65563d in /usr/bin/clickhouse 7. /build/src/Storages/Distributed/DistributedSink.cpp:144: DB::DistributedSink::consume(DB::Chunk) @ 0x000000001dc9cd1b in /usr/bin/clickhouse 8. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 9. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 25. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e665267 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6651d5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&) @ 0x000000001e6651b5 in /usr/bin/clickhouse 2024.05.01 13:26:34.155530 [ 12030 ] {07812195-4d5d-4d23-8a6f-e765e83d31a1} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:34.180253 [ 12030 ] {955b3d3f-858e-41de-bcaa-38deeab8b6f6} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:34.181660 [ 12030 ] {955b3d3f-858e-41de-bcaa-38deeab8b6f6} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:34.205785 [ 12030 ] {c058ae5b-fbf9-4bbb-ba3e-d0e75bd7199f} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:34.206924 [ 12030 ] {c058ae5b-fbf9-4bbb-ba3e-d0e75bd7199f} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:34.232518 [ 12030 ] {048646f1-e556-4c0c-8512-91872b9e82d4} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:34.233729 [ 12030 ] {048646f1-e556-4c0c-8512-91872b9e82d4} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:37.932715 [ 12030 ] {790421f4-35ca-4f9a-8423-c6543e3a5d4f} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: -- Int64 and UInt64 has no supertype SELECT * FROM t1 FULL JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:37.933673 [ 12030 ] {790421f4-35ca-4f9a-8423-c6543e3a5d4f} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:37.953749 [ 12030 ] {ffb3c13f-fc02-4fed-8b76-0a3263a8fb82} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 LEFT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:37.954688 [ 12030 ] {ffb3c13f-fc02-4fed-8b76-0a3263a8fb82} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:37.974560 [ 12030 ] {4af4ee8a-c635-488d-9346-e0dc087e651a} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 RIGHT JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:37.975503 [ 12030 ] {4af4ee8a-c635-488d-9346-e0dc087e651a} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:37.995308 [ 12030 ] {eacc1870-7536-4ca2-81ce-007d389a5c1e} executeQuery: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47618) (comment: 01721_join_implicit_cast_long.gen.sql) (in query: SELECT * FROM t1 INNER JOIN t2 ON (t1.a + t1.b + 100 = t2.a + t2.b) ORDER BY (t1.a, t2.a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:37.996266 [ 12030 ] {eacc1870-7536-4ca2-81ce-007d389a5c1e} TCPHandler: Code: 53. DB::Exception: Can't infer common type for joined columns: plus(plus(a, b), 100): UInt64 at left, plus(t2.a, t2.b): Nullable(Int64) at right. There is no supertype for types Int64, UInt64 because some of them are signed integers and some are unsigned integers, but there is no signed integer type, that can exactly represent all required unsigned integer values. (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String const&, String&&, String const&) @ 0x000000001cf4659a in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:659: auto void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)::operator()(std::vector> const&, std::vector> const&) const @ 0x000000001cf48b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/TableJoin.cpp:90: bool DB::(anonymous namespace)::forAllKeys>, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)>(std::vector>&, void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool)::'lambda'(std::vector> const&, std::vector> const&)) @ 0x000000001cf40fa2 in /usr/bin/clickhouse 8. /build/src/Interpreters/TableJoin.cpp:633: void DB::TableJoin::inferJoinKeyCommonType>, std::vector>>(std::vector> const&, std::vector> const&, bool, bool) @ 0x000000001cf41f3d in /usr/bin/clickhouse 9. /build/src/Interpreters/TableJoin.cpp:560: DB::TableJoin::createConvertingActions(std::vector> const&, std::vector> const&) @ 0x000000001cf3c1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/ExpressionAnalyzer.cpp:1149: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa59f6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:26:38.312223 [ 50483 ] {80b8a7e4-4d3d-4936-8cdb-429ef9b8670b} executeQuery: Code: 407. DB::Exception: Intermediate result overflow (signed a = 9223372036854775807, signed b = -9223372036854775808, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(9223372036854775807, -9223372036854775808). (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58650) (comment: 01666_lcm_ubsan.sql) (in query: -- { echo } SELECT lcm(9223372036854775807, -9223372036854775808);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e447ba4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(unsigned long, long) @ 0x000000000f8728d7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(unsigned long, long) @ 0x000000000f8724fd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f9517fa in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f9515db in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f94d484 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f94cdad in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f94cadd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f938473 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f937d67 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f937c3d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f937071 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f936d3f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f934a76 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f933e6c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:26:38.313732 [ 50483 ] {80b8a7e4-4d3d-4936-8cdb-429ef9b8670b} TCPHandler: Code: 407. DB::Exception: Intermediate result overflow (signed a = 9223372036854775807, signed b = -9223372036854775808, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(9223372036854775807, -9223372036854775808). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e447ba4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(unsigned long, long) @ 0x000000000f8728d7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(unsigned long, long) @ 0x000000000f8724fd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f9517fa in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f9515db in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f94d484 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f94cdad in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f94cadd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f938473 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f937d67 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f937c3d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f937071 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f936d3f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f934a76 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f933e6c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:26:38.322719 [ 50483 ] {71e731dc-1914-4f99-a041-bf5c0476de95} executeQuery: Code: 407. DB::Exception: Intermediate result overflow (signed a = -9223372036854775808, signed b = -9223372036854775807, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(9223372036854775808, -9223372036854775807). (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58650) (comment: 01666_lcm_ubsan.sql) (in query: SELECT lcm(9223372036854775808, -9223372036854775807);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e447ba4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(unsigned long, long) @ 0x000000000f8728d7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(unsigned long, long) @ 0x000000000f8724fd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f9517fa in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f9515db in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f94d484 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f94cdad in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f94cadd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f938473 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f937d67 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f937c3d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f937071 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f936d3f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f934a76 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f933e6c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:26:38.324078 [ 50483 ] {71e731dc-1914-4f99-a041-bf5c0476de95} TCPHandler: Code: 407. DB::Exception: Intermediate result overflow (signed a = -9223372036854775808, signed b = -9223372036854775807, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(9223372036854775808, -9223372036854775807). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e447ba4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(unsigned long, long) @ 0x000000000f8728d7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(unsigned long, long) @ 0x000000000f8724fd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f9517fa in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f9515db in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f94d484 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f94cdad in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f94cadd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f938473 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f937d67 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f937c3d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f937071 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f936d3f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f934a76 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f933e6c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:26:38.435939 [ 50483 ] {27c36a58-a931-408f-8924-80ab743b7fd0} executeQuery: Code: 407. DB::Exception: Intermediate result overflow (signed a = -9223372036854775808, signed b = 9223372036854775807, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(-9223372036854775808, 9223372036854775807). (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58650) (comment: 01666_lcm_ubsan.sql) (in query: SELECT lcm(-9223372036854775808, 9223372036854775807);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e447ba4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(long, unsigned long) @ 0x000000000f8b86b7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(long, unsigned long) @ 0x000000000f8b82dd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f9775da in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f9773bb in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f975a84 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f975387 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f97525d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f9385f3 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f937f0d in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f937c3d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f937071 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f936d3f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f934a76 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f933e6c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:26:38.437324 [ 50483 ] {27c36a58-a931-408f-8924-80ab743b7fd0} TCPHandler: Code: 407. DB::Exception: Intermediate result overflow (signed a = -9223372036854775808, signed b = 9223372036854775807, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(-9223372036854775808, 9223372036854775807). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e447ba4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(long, unsigned long) @ 0x000000000f8b86b7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(long, unsigned long) @ 0x000000000f8b82dd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f9775da in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f9773bb in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f975a84 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f975387 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f97525d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f9385f3 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f937f0d in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f937c3d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f937071 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f936d3f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f934a76 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f933e6c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:26:38.445271 [ 50483 ] {f1845f24-8a1b-4f58-925d-cdf4c2509fd8} executeQuery: Code: 407. DB::Exception: Intermediate result overflow (signed a = -9223372036854775807, signed b = -9223372036854775808, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(-9223372036854775807, 9223372036854775808). (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58650) (comment: 01666_lcm_ubsan.sql) (in query: SELECT lcm(-9223372036854775807, 9223372036854775808);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e447ba4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(long, unsigned long) @ 0x000000000f8b86b7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(long, unsigned long) @ 0x000000000f8b82dd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f9775da in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f9773bb in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f975a84 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f975387 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f97525d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f9385f3 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f937f0d in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f937c3d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f937071 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f936d3f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f934a76 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f933e6c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:26:38.446473 [ 50483 ] {f1845f24-8a1b-4f58-925d-cdf4c2509fd8} TCPHandler: Code: 407. DB::Exception: Intermediate result overflow (signed a = -9223372036854775807, signed b = -9223372036854775808, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(-9223372036854775807, 9223372036854775808). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e447ba4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(long, unsigned long) @ 0x000000000f8b86b7 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(long, unsigned long) @ 0x000000000f8b82dd in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f9775da in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f9773bb in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f975a84 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f975387 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f97525d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f9385f3 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f937f0d in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f937c3d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f937071 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f936d3f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f934a76 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f933e6c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:26:38.547515 [ 50483 ] {1067466e-4341-4da2-9f4f-8ce10fb63e23} executeQuery: Code: 407. DB::Exception: Intermediate result overflow (signed a = -9223372036854775808, signed b = -1, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(9223372036854775808, -1). (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58650) (comment: 01666_lcm_ubsan.sql) (in query: SELECT lcm(9223372036854775808, -1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e447ba4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(unsigned long, signed char) @ 0x000000000f870358 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(unsigned long, signed char) @ 0x000000000f86ff7f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f95035b in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f95013b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f94d3c4 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f94cccd in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f94cadd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f938473 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f937d67 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f937c3d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f937071 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f936d3f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f934a76 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f933e6c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:26:38.548815 [ 50483 ] {1067466e-4341-4da2-9f4f-8ce10fb63e23} TCPHandler: Code: 407. DB::Exception: Intermediate result overflow (signed a = -9223372036854775808, signed b = -1, min = -9223372036854775808, max = 9223372036854775807): While processing lcm(9223372036854775808, -1). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, long&, long&, long&, long&) @ 0x000000000e447ba4 in /usr/bin/clickhouse 6. /build/src/Functions/GCDLCMImpl.h:44: long DB::GCDLCMImpl, DB::(anonymous namespace)::NameLCM>::apply(unsigned long, signed char) @ 0x000000000f870358 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:255: DB::impl_::BinaryOperation, long>::process(unsigned long, signed char) @ 0x000000000f86ff7f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1961: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f95035b in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000f95013b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f94d3c4 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000f94cccd in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f94cadd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000f938473 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000f937d67 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000f937c3d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000f937071 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000f936d3f in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f934a76 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000f933e6c in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 21. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:26:38.670302 [ 50483 ] {e231d729-e426-4ef8-b69f-091267924d3e} executeQuery: Code: 43. DB::Exception: Illegal types Float64 and Float64 of arguments of function lcm: While processing lcm(-1.7014118346046923e38, -1.7014118346046923e38). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58650) (comment: 01666_lcm_ubsan.sql) (in query: SELECT lcm(-170141183460469231731687303715884105728, -170141183460469231731687303715884105728);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1618: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000f99dba9 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000f841ecf in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:26:38.671200 [ 50483 ] {e231d729-e426-4ef8-b69f-091267924d3e} TCPHandler: Code: 43. DB::Exception: Illegal types Float64 and Float64 of arguments of function lcm: While processing lcm(-1.7014118346046923e38, -1.7014118346046923e38). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1618: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000f99dba9 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000f841ecf in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:26:43.756605 [ 50481 ] {226b6dca-626e-4d49-b7e8-668b9448fa9f} executeQuery: Code: 202. DB::Exception: Too many simultaneous queries for table test_rw9cy99e.simple (658c7589-e613-457c-9518-c989af8f848c). Maximum is: 1. (TOO_MANY_SIMULTANEOUS_QUERIES) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33968) (comment: 01666_merge_tree_max_query_limit.sh) (in query: select * from simple), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, unsigned long&) @ 0x000000001de92f2c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:8285: DB::MergeTreeData::insertQueryIdOrThrowNoLock(String const&, unsigned long) const @ 0x000000001de72b46 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:8311: DB::MergeTreeData::getQueryIdHolder(String const&, unsigned long) const @ 0x000000001de7325d in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1166: DB::MergeTreeDataSelectExecutor::checkLimits(DB::MergeTreeData const&, DB::ReadFromMergeTree::AnalysisResult const&, std::shared_ptr const&) @ 0x000000001df4f906 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1824: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3bc66 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:43.758131 [ 50481 ] {226b6dca-626e-4d49-b7e8-668b9448fa9f} TCPHandler: Code: 202. DB::Exception: Too many simultaneous queries for table test_rw9cy99e.simple (658c7589-e613-457c-9518-c989af8f848c). Maximum is: 1. (TOO_MANY_SIMULTANEOUS_QUERIES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, unsigned long&) @ 0x000000001de92f2c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:8285: DB::MergeTreeData::insertQueryIdOrThrowNoLock(String const&, unsigned long) const @ 0x000000001de72b46 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:8311: DB::MergeTreeData::getQueryIdHolder(String const&, unsigned long) const @ 0x000000001de7325d in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1166: DB::MergeTreeDataSelectExecutor::checkLimits(DB::MergeTreeData const&, DB::ReadFromMergeTree::AnalysisResult const&, std::shared_ptr const&) @ 0x000000001df4f906 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1824: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3bc66 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:46.691375 [ 5964 ] {a57549b5-871c-4b7a-a865-a93c35e8abe4} executeQuery: Code: 36. DB::Exception: ALTER MODIFY TTL is not supported for default-partitioned tables created with the old syntax. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34002) (comment: 01652_ttl_old_syntax.sql) (in query: ALTER TABLE ttl_old_syntax MODIFY TTL toDate('2020-01-01');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [93]) @ 0x000000001ac69d9e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3263: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2b2a6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:46.692079 [ 5964 ] {a57549b5-871c-4b7a-a865-a93c35e8abe4} TCPHandler: Code: 36. DB::Exception: ALTER MODIFY TTL is not supported for default-partitioned tables created with the old syntax. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [93]) @ 0x000000001ac69d9e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3263: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2b2a6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:48.110011 [ 5967 ] {67fc962a-c9c2-49f9-a0f1-bae545be105f} executeQuery: Code: 572. DB::Exception: Too many optimizations applied to query plan. Current limit 1. (TOO_MANY_QUERY_PLAN_OPTIMIZATIONS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34036) (comment: 01655_plan_optimizations.sh) (in query: select x + 1 from (select y + 2 as x from (select dummy + 3 as y)) settings query_plan_max_optimizations_to_apply = 1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:82: DB::QueryPlanOptimizations::optimizeTreeFirstPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001eec0419 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/QueryPlan.cpp:482: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001ee0eb28 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/QueryPlan.cpp:169: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e657 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:48.112368 [ 5967 ] {67fc962a-c9c2-49f9-a0f1-bae545be105f} TCPHandler: Code: 572. DB::Exception: Too many optimizations applied to query plan. Current limit 1. (TOO_MANY_QUERY_PLAN_OPTIMIZATIONS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:82: DB::QueryPlanOptimizations::optimizeTreeFirstPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001eec0419 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/QueryPlan.cpp:482: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001ee0eb28 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/QueryPlan.cpp:169: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e657 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:49.373008 [ 1276 ] {47e79feb-4400-4c2f-a3e4-783ab7a66cf1} executeQuery: Code: 202. DB::Exception: Too many simultaneous queries for table test_rw9cy99e.simple (658c7589-e613-457c-9518-c989af8f848c). Maximum is: 1. (TOO_MANY_SIMULTANEOUS_QUERIES) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53598) (comment: 01666_merge_tree_max_query_limit.sh) (in query: select * from simple where i = 0), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, unsigned long&) @ 0x000000001de92f2c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:8285: DB::MergeTreeData::insertQueryIdOrThrowNoLock(String const&, unsigned long) const @ 0x000000001de72b46 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:8311: DB::MergeTreeData::getQueryIdHolder(String const&, unsigned long) const @ 0x000000001de7325d in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1166: DB::MergeTreeDataSelectExecutor::checkLimits(DB::MergeTreeData const&, DB::ReadFromMergeTree::AnalysisResult const&, std::shared_ptr const&) @ 0x000000001df4f906 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1824: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3bc66 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:49.375426 [ 1276 ] {47e79feb-4400-4c2f-a3e4-783ab7a66cf1} TCPHandler: Code: 202. DB::Exception: Too many simultaneous queries for table test_rw9cy99e.simple (658c7589-e613-457c-9518-c989af8f848c). Maximum is: 1. (TOO_MANY_SIMULTANEOUS_QUERIES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, unsigned long&) @ 0x000000001de92f2c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:8285: DB::MergeTreeData::insertQueryIdOrThrowNoLock(String const&, unsigned long) const @ 0x000000001de72b46 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:8311: DB::MergeTreeData::getQueryIdHolder(String const&, unsigned long) const @ 0x000000001de7325d in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1166: DB::MergeTreeDataSelectExecutor::checkLimits(DB::MergeTreeData const&, DB::ReadFromMergeTree::AnalysisResult const&, std::shared_ptr const&) @ 0x000000001df4f906 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1824: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3bc66 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:56.679958 [ 12023 ] {05b6fe51-2401-47d1-b28f-6641b62e7e3a} executeQuery: Code: 202. DB::Exception: Too many simultaneous queries for table test_rw9cy99e.simple (658c7589-e613-457c-9518-c989af8f848c). Maximum is: 1. (TOO_MANY_SIMULTANEOUS_QUERIES) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53928) (comment: 01666_merge_tree_max_query_limit.sh) (in query: select * from simple where i = 0), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, unsigned long&) @ 0x000000001de92f2c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:8285: DB::MergeTreeData::insertQueryIdOrThrowNoLock(String const&, unsigned long) const @ 0x000000001de72b46 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:8311: DB::MergeTreeData::getQueryIdHolder(String const&, unsigned long) const @ 0x000000001de7325d in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1166: DB::MergeTreeDataSelectExecutor::checkLimits(DB::MergeTreeData const&, DB::ReadFromMergeTree::AnalysisResult const&, std::shared_ptr const&) @ 0x000000001df4f906 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1824: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3bc66 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:56.682232 [ 12023 ] {05b6fe51-2401-47d1-b28f-6641b62e7e3a} TCPHandler: Code: 202. DB::Exception: Too many simultaneous queries for table test_rw9cy99e.simple (658c7589-e613-457c-9518-c989af8f848c). Maximum is: 1. (TOO_MANY_SIMULTANEOUS_QUERIES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, unsigned long&) @ 0x000000001de92f2c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:8285: DB::MergeTreeData::insertQueryIdOrThrowNoLock(String const&, unsigned long) const @ 0x000000001de72b46 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:8311: DB::MergeTreeData::getQueryIdHolder(String const&, unsigned long) const @ 0x000000001de7325d in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1166: DB::MergeTreeDataSelectExecutor::checkLimits(DB::MergeTreeData const&, DB::ReadFromMergeTree::AnalysisResult const&, std::shared_ptr const&) @ 0x000000001df4f906 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1824: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3bc66 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:58.164321 [ 12027 ] {6ccc5db4-3961-40a8-8f8b-1b65c17eb903} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::1]:9010 -> [::1]:50378). (NETWORK_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50378) (in query: SELECT 'Hello, world'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:96: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6904 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2121: DB::TCPHandler::sendProgress() @ 0x000000001e5e249d in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:979: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e231b in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:58.164964 [ 12027 ] {6ccc5db4-3961-40a8-8f8b-1b65c17eb903} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::1]:9010 -> [::1]:50378). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:96: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6904 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2121: DB::TCPHandler::sendProgress() @ 0x000000001e5e249d in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:979: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e231b in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:58.165449 [ 12027 ] {6ccc5db4-3961-40a8-8f8b-1b65c17eb903} TCPHandler: Client has gone away. 2024.05.01 13:26:58.266346 [ 12022 ] {dbe81d5e-a21b-4ed2-b7b2-6154a875c49e} executeQuery: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::1]:9010 -> [::1]:50382). (NETWORK_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50382) (in query: SELECT 'Hello, world'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:96: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6904 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2121: DB::TCPHandler::sendProgress() @ 0x000000001e5e249d in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:967: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e21d1 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:58.324192 [ 12022 ] {dbe81d5e-a21b-4ed2-b7b2-6154a875c49e} TCPHandler: Code: 210. DB::NetException: Connection reset by peer, while writing to socket ([::1]:9010 -> [::1]:50382). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:96: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6904 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2121: DB::TCPHandler::sendProgress() @ 0x000000001e5e249d in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:967: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e21d1 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:58.324772 [ 12022 ] {dbe81d5e-a21b-4ed2-b7b2-6154a875c49e} TCPHandler: Client has gone away. 2024.05.01 13:26:58.326066 [ 12027 ] {0f4a07bb-6e2e-47e1-958a-cd0c16c245e8} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9010 -> [::1]:50384). (NETWORK_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50384) (in query: SELECT 'Hello, world'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6ba4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2121: DB::TCPHandler::sendProgress() @ 0x000000001e5e249d in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:967: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e21d1 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:58.326698 [ 12027 ] {0f4a07bb-6e2e-47e1-958a-cd0c16c245e8} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9010 -> [::1]:50384). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6ba4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2121: DB::TCPHandler::sendProgress() @ 0x000000001e5e249d in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:967: DB::TCPHandler::processOrdinaryQueryWithProcessors() @ 0x000000001e5e21d1 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:518: DB::TCPHandler::runImpl() @ 0x000000001e5da331 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:58.327115 [ 12027 ] {0f4a07bb-6e2e-47e1-958a-cd0c16c245e8} TCPHandler: Client has gone away. 2024.05.01 13:26:58.744471 [ 12036 ] {long_running_query-test_rw9cy99e} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33898) (comment: 01666_merge_tree_max_query_limit.sh) (in query: select sleepEachRow(0.1) from simple settings max_block_size = 1 format Null), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:26:58.746795 [ 12036 ] {long_running_query-test_rw9cy99e} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:02.115143 [ 12030 ] {062c0607-04b0-4cb2-afbb-ddcf7c342d03} executeQuery: Code: 16. DB::Exception: There is no column with name `alias` in table test_hy0h8p5n.full_duplicates (5b5b6246-c9c9-4535-bd61-9c0e1b924dc6). There are columns: pk, sk, val, partition_key, mat. (NO_SUCH_COLUMN_IN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40832) (comment: 01581_deduplicate_by_columns_local.sql) (in query: -- ERROR cases OPTIMIZE TABLE full_duplicates DEDUPLICATE BY pk, sk, val, mat, alias;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&) @ 0x000000001d997688 in /usr/bin/clickhouse 6. /build/src/Storages/StorageSnapshot.cpp:211: DB::StorageSnapshot::check(std::vector> const&) const @ 0x000000001d996ede in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:56: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca8742c in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:02.115889 [ 12030 ] {062c0607-04b0-4cb2-afbb-ddcf7c342d03} TCPHandler: Code: 16. DB::Exception: There is no column with name `alias` in table test_hy0h8p5n.full_duplicates (5b5b6246-c9c9-4535-bd61-9c0e1b924dc6). There are columns: pk, sk, val, partition_key, mat. (NO_SUCH_COLUMN_IN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&) @ 0x000000001d997688 in /usr/bin/clickhouse 6. /build/src/Storages/StorageSnapshot.cpp:211: DB::StorageSnapshot::check(std::vector> const&) const @ 0x000000001d996ede in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:56: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca8742c in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:02.202166 [ 12030 ] {b5ad060b-88d5-46aa-9e11-33c743514dfd} executeQuery: Code: 8. DB::Exception: DEDUPLICATE BY expression must include all columns used in table's ORDER BY, PRIMARY KEY, or PARTITION BY but 'pk' is missing. Expanded DEDUPLICATE BY columns expression: ['sk', 'val']. (THERE_IS_NO_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40832) (comment: 01581_deduplicate_by_columns_local.sql) (in query: OPTIMIZE TABLE full_duplicates DEDUPLICATE BY sk, val;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001ca8820c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:71: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca87783 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 16. ? @ 0x00007fcde32fbac3 in ? 17. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:02.203205 [ 12030 ] {b5ad060b-88d5-46aa-9e11-33c743514dfd} TCPHandler: Code: 8. DB::Exception: DEDUPLICATE BY expression must include all columns used in table's ORDER BY, PRIMARY KEY, or PARTITION BY but 'pk' is missing. Expanded DEDUPLICATE BY columns expression: ['sk', 'val']. (THERE_IS_NO_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001ca8820c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:71: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca87783 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 16. ? @ 0x00007fcde32fbac3 in ? 17. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:02.292609 [ 12030 ] {ac531c65-400e-4f6d-aecc-8275b83def34} executeQuery: Code: 51. DB::Exception: Empty list of columns queried. There are columns: pk, sk, val, partition_key, mat. (EMPTY_LIST_OF_COLUMNS_QUERIED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40832) (comment: 01581_deduplicate_by_columns_local.sql) (in query: OPTIMIZE TABLE full_duplicates DEDUPLICATE BY * EXCEPT(pk, sk, val, mat, alias, partition_key);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/StorageSnapshot.cpp:195: DB::StorageSnapshot::check(std::vector> const&) const @ 0x000000001d996b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:56: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca8742c in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:02.293402 [ 12030 ] {ac531c65-400e-4f6d-aecc-8275b83def34} TCPHandler: Code: 51. DB::Exception: Empty list of columns queried. There are columns: pk, sk, val, partition_key, mat. (EMPTY_LIST_OF_COLUMNS_QUERIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/StorageSnapshot.cpp:195: DB::StorageSnapshot::check(std::vector> const&) const @ 0x000000001d996b58 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:56: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca8742c in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:02.300726 [ 12030 ] {0dabba59-b348-4b7f-95b5-5822b72174b5} executeQuery: Code: 8. DB::Exception: DEDUPLICATE BY expression must include all columns used in table's ORDER BY, PRIMARY KEY, or PARTITION BY but 'pk' is missing. Expanded DEDUPLICATE BY columns expression: ['sk', 'val', 'partition_key']. (THERE_IS_NO_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40832) (comment: 01581_deduplicate_by_columns_local.sql) (in query: OPTIMIZE TABLE full_duplicates DEDUPLICATE BY * EXCEPT(pk);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001ca8820c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:71: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca87783 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 16. ? @ 0x00007fcde32fbac3 in ? 17. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:02.301390 [ 12030 ] {0dabba59-b348-4b7f-95b5-5822b72174b5} TCPHandler: Code: 8. DB::Exception: DEDUPLICATE BY expression must include all columns used in table's ORDER BY, PRIMARY KEY, or PARTITION BY but 'pk' is missing. Expanded DEDUPLICATE BY columns expression: ['sk', 'val', 'partition_key']. (THERE_IS_NO_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001ca8820c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:71: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca87783 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 16. ? @ 0x00007fcde32fbac3 in ? 17. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:02.310572 [ 12030 ] {c4652672-486f-4933-a7d5-8b305e2a6052} executeQuery: Code: 8. DB::Exception: DEDUPLICATE BY expression must include all columns used in table's ORDER BY, PRIMARY KEY, or PARTITION BY but 'sk' is missing. Expanded DEDUPLICATE BY columns expression: ['pk', 'val', 'partition_key']. (THERE_IS_NO_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40832) (comment: 01581_deduplicate_by_columns_local.sql) (in query: OPTIMIZE TABLE full_duplicates DEDUPLICATE BY * EXCEPT(sk);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001ca8820c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:71: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca87783 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 16. ? @ 0x00007fcde32fbac3 in ? 17. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:02.311402 [ 12030 ] {c4652672-486f-4933-a7d5-8b305e2a6052} TCPHandler: Code: 8. DB::Exception: DEDUPLICATE BY expression must include all columns used in table's ORDER BY, PRIMARY KEY, or PARTITION BY but 'sk' is missing. Expanded DEDUPLICATE BY columns expression: ['pk', 'val', 'partition_key']. (THERE_IS_NO_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001ca8820c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:71: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca87783 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 16. ? @ 0x00007fcde32fbac3 in ? 17. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:02.327029 [ 12030 ] {4a324716-6502-4de3-97b1-c53bcdf678e4} executeQuery: Code: 8. DB::Exception: DEDUPLICATE BY expression must include all columns used in table's ORDER BY, PRIMARY KEY, or PARTITION BY but 'partition_key' is missing. Expanded DEDUPLICATE BY columns expression: ['pk', 'sk', 'val']. (THERE_IS_NO_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40832) (comment: 01581_deduplicate_by_columns_local.sql) (in query: OPTIMIZE TABLE full_duplicates DEDUPLICATE BY * EXCEPT(partition_key);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001ca8820c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:71: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca87783 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 16. ? @ 0x00007fcde32fbac3 in ? 17. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:02.328737 [ 12030 ] {4a324716-6502-4de3-97b1-c53bcdf678e4} TCPHandler: Code: 8. DB::Exception: DEDUPLICATE BY expression must include all columns used in table's ORDER BY, PRIMARY KEY, or PARTITION BY but 'partition_key' is missing. Expanded DEDUPLICATE BY columns expression: ['pk', 'sk', 'val']. (THERE_IS_NO_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl::type, std::type_identity, std::__wrap_iter, char>>::type>, String const&, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001ca8820c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:71: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca87783 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 16. ? @ 0x00007fcde32fbac3 in ? 17. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:09.075322 [ 50481 ] {ec55452d-5659-4461-bab4-5b655314dc6d} executeQuery: Code: 549. DB::Exception: Column `key` with type AggregateFunction(max, UInt64) is not allowed in key expression, it's not comparable. (DATA_TYPE_CANNOT_BE_USED_IN_KEY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40856) (comment: 01548_uncomparable_columns_in_keys.sql) (in query: CREATE TABLE foo (`id` UInt64, `key` AggregateFunction(max, UInt64)) ENGINE = MergeTree ORDER BY key SETTINGS index_granularity = 56531, min_bytes_for_wide_part = 404720224, ratio_of_defaults_for_sparse_serialization = 0., merge_max_block_size = 14545, prefer_fetch_merged_part_size_threshold = 10134355286, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 5884902377, index_granularity_bytes = 7525518, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 78209, primary_key_compress_block_size = 69514), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Storages/KeyDescription.cpp:151: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d5ec59d in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:546: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f12d2 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 14. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:09.076465 [ 50481 ] {ec55452d-5659-4461-bab4-5b655314dc6d} TCPHandler: Code: 549. DB::Exception: Column `key` with type AggregateFunction(max, UInt64) is not allowed in key expression, it's not comparable. (DATA_TYPE_CANNOT_BE_USED_IN_KEY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Storages/KeyDescription.cpp:151: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d5ec59d in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:546: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f12d2 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 14. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:09.225370 [ 50481 ] {3d40a113-b27b-42c3-ba49-87bd5a249867} executeQuery: Code: 549. DB::Exception: Column `key` with type AggregateFunction(max, UInt64) is not allowed in key expression, it's not comparable. (DATA_TYPE_CANNOT_BE_USED_IN_KEY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40856) (comment: 01548_uncomparable_columns_in_keys.sql) (in query: CREATE TABLE foo (`id` UInt64, `key` AggregateFunction(max, UInt64)) ENGINE = MergeTree PARTITION BY key SETTINGS index_granularity = 56531, min_bytes_for_wide_part = 404720224, ratio_of_defaults_for_sparse_serialization = 0., merge_max_block_size = 14545, prefer_fetch_merged_part_size_threshold = 10134355286, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 5884902377, index_granularity_bytes = 7525518, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 78209, primary_key_compress_block_size = 69514), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Storages/KeyDescription.cpp:151: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d5ec59d in /usr/bin/clickhouse 7. /build/src/Storages/KeyDescription.cpp:90: DB::KeyDescription::getKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr) @ 0x000000001d5ec8fa in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:530: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f108a in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:09.226276 [ 50481 ] {3d40a113-b27b-42c3-ba49-87bd5a249867} TCPHandler: Code: 549. DB::Exception: Column `key` with type AggregateFunction(max, UInt64) is not allowed in key expression, it's not comparable. (DATA_TYPE_CANNOT_BE_USED_IN_KEY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Storages/KeyDescription.cpp:151: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d5ec59d in /usr/bin/clickhouse 7. /build/src/Storages/KeyDescription.cpp:90: DB::KeyDescription::getKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr) @ 0x000000001d5ec8fa in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:530: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f108a in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:09.240257 [ 50481 ] {ab93f746-e568-41bb-8c78-2d1ea5b439c1} executeQuery: Code: 549. DB::Exception: Column `key` with type AggregateFunction(max, UInt64) is not allowed in key expression, it's not comparable. (DATA_TYPE_CANNOT_BE_USED_IN_KEY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40856) (comment: 01548_uncomparable_columns_in_keys.sql) (in query: CREATE TABLE foo (`id` UInt64, `key` AggregateFunction(max, UInt64)) ENGINE = MergeTree ORDER BY key SAMPLE BY key SETTINGS index_granularity = 56531, min_bytes_for_wide_part = 404720224, ratio_of_defaults_for_sparse_serialization = 0., merge_max_block_size = 14545, prefer_fetch_merged_part_size_threshold = 10134355286, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 5884902377, index_granularity_bytes = 7525518, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 78209, primary_key_compress_block_size = 69514), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Storages/KeyDescription.cpp:151: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d5ec59d in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:546: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f12d2 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 14. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:09.241243 [ 50481 ] {ab93f746-e568-41bb-8c78-2d1ea5b439c1} TCPHandler: Code: 549. DB::Exception: Column `key` with type AggregateFunction(max, UInt64) is not allowed in key expression, it's not comparable. (DATA_TYPE_CANNOT_BE_USED_IN_KEY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Storages/KeyDescription.cpp:151: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d5ec59d in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:546: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f12d2 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 14. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:11.081040 [ 50705 ] {b1b44ee4-286c-4e20-ab3e-1d29caca6904} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 300.14 MiB (attempt to allocate chunk of 5046872 bytes), maximum: 300.00 MiB.: while executing 'FUNCTION repeat(toString(number) : 3, 11 :: 1) -> repeat(toString(number), 11) String : 4'. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40624) (comment: 01600_remerge_sort_lowered_memory_bytes_ratio.sql) (in query: -- remerge_sort_lowered_memory_bytes_ratio default 2, slightly not enough -- MergeSortingTransform: Re-merging intermediate ORDER BY data (20 blocks with 819200 rows) to save memory consumption -- MergeSortingTransform: Memory usage is lowered from 186.25 MiB to 95.00 MiB -- MergeSortingTransform: Re-merging is not useful (memory usage was not lowered by remerge_sort_lowered_memory_bytes_ratio=2.0) select number k, repeat(toString(number), 11) v1, repeat(toString(number), 12) v2 from numbers(3e6) order by v1, v2 limit 400e3 format Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001386fdce in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b1f8ba5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1f8a39 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b1f8826 in /usr/bin/clickhouse 14. /build/src/Functions/repeat.cpp:61: void DB::(anonymous namespace)::RepeatImpl::vectorStrConstRepeat(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&, char8_t) @ 0x000000001249e3a0 in /usr/bin/clickhouse 15. /build/src/Functions/repeat.cpp:217: auto DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000001249d4e0 in /usr/bin/clickhouse 16. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)>(DB::IDataType const*, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)&&) @ 0x000000001249d027 in /usr/bin/clickhouse 17. /build/src/Functions/repeat.cpp:172: bool DB::(anonymous namespace)::FunctionRepeat::castType> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000001249ce3d in /usr/bin/clickhouse 18. /build/src/Functions/repeat.cpp:211: DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001249c67a in /usr/bin/clickhouse 19. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 25. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 26. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 27. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 2024.05.01 13:27:11.104114 [ 50705 ] {b1b44ee4-286c-4e20-ab3e-1d29caca6904} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 300.14 MiB (attempt to allocate chunk of 5046872 bytes), maximum: 300.00 MiB.: while executing 'FUNCTION repeat(toString(number) : 3, 11 :: 1) -> repeat(toString(number), 11) String : 4'. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001386fdce in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b1f8ba5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1f8a39 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b1f8826 in /usr/bin/clickhouse 14. /build/src/Functions/repeat.cpp:61: void DB::(anonymous namespace)::RepeatImpl::vectorStrConstRepeat(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&, char8_t) @ 0x000000001249e3a0 in /usr/bin/clickhouse 15. /build/src/Functions/repeat.cpp:217: auto DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000001249d4e0 in /usr/bin/clickhouse 16. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)>(DB::IDataType const*, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)&&) @ 0x000000001249d027 in /usr/bin/clickhouse 17. /build/src/Functions/repeat.cpp:172: bool DB::(anonymous namespace)::FunctionRepeat::castType> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000001249ce3d in /usr/bin/clickhouse 18. /build/src/Functions/repeat.cpp:211: DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001249c67a in /usr/bin/clickhouse 19. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 25. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 26. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 27. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 2024.05.01 13:27:13.303686 [ 5964 ] {1b276fce-375f-41b8-93c8-a4128c8f3a78} executeQuery: Code: 507. DB::Exception: Sharding key is not deterministic. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40942) (comment: 01528_allow_nondeterministic_optimize_skip_unused_shards.sql) (in query: select * from dist_01528 where dummy = 2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [34]) @ 0x000000000b91685e in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1327: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d6464c9 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:13.453727 [ 5964 ] {1b276fce-375f-41b8-93c8-a4128c8f3a78} TCPHandler: Code: 507. DB::Exception: Sharding key is not deterministic. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [34]) @ 0x000000000b91685e in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1327: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d6464c9 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:13.453713 [ 50481 ] {318c210a-7ff5-418f-8a63-b9162f69d56d} executeQuery: Code: 6. DB::Exception: Cannot parse string '61f0c404-5cb3-11e7-907b-a6006ad3dba0T' as UUID: syntax error at position 36 (parsed just '61f0c404-5cb3-11e7-907b-a6006ad3dba0'): While processing toUUID('61f0c404-5cb3-11e7-907b-a6006ad3dba0T'). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40936) (comment: 01528_to_uuid_or_null_or_zero.sql) (in query: SELECT toUUID('61f0c404-5cb3-11e7-907b-a6006ad3dba0T');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b5cf657 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b5cab18 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b5ba819 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b5b9b48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b5b8d5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:27:13.588292 [ 1276 ] {ffaf23e9-bc16-41bb-85a3-5d57b0058018} executeQuery: Code: 47. DB::Exception: Unknown identifier 'x' in aggregate function 'sum(x)'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40956) (comment: 01527_bad_aggregation_in_lambda.sql) (in query: SELECT arrayMap(x -> x * sum(x), range(10));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:571: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa11f7 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:13.588477 [ 50481 ] {318c210a-7ff5-418f-8a63-b9162f69d56d} TCPHandler: Code: 6. DB::Exception: Cannot parse string '61f0c404-5cb3-11e7-907b-a6006ad3dba0T' as UUID: syntax error at position 36 (parsed just '61f0c404-5cb3-11e7-907b-a6006ad3dba0'): While processing toUUID('61f0c404-5cb3-11e7-907b-a6006ad3dba0T'). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b5cf657 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b5cab18 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b5ba819 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b5b9b48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b5b8d5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:27:13.589286 [ 1276 ] {ffaf23e9-bc16-41bb-85a3-5d57b0058018} TCPHandler: Code: 47. DB::Exception: Unknown identifier 'x' in aggregate function 'sum(x)'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/ExpressionAnalyzer.cpp:571: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa11f7 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:13.895931 [ 50481 ] {9e13a805-fa33-428d-a1fe-2a971ebc62c1} executeQuery: Code: 6. DB::Exception: Cannot parse string '61f0c404-5cb3-11e7-907b-a6006ad3dba0T' as UUID: syntax error at position 36 (parsed just '61f0c404-5cb3-11e7-907b-a6006ad3dba0'): while executing 'FUNCTION toUUID(value :: 0) -> toUUID(value) UUID : 1'. (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40936) (comment: 01528_to_uuid_or_null_or_zero.sql) (in query: SELECT toUUID(value) FROM to_uuid_test;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b5cf657 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b5cab18 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b5ba819 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b5b9b48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b5b8d5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 19. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 20. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:27:13.899728 [ 50481 ] {9e13a805-fa33-428d-a1fe-2a971ebc62c1} TCPHandler: Code: 6. DB::Exception: Cannot parse string '61f0c404-5cb3-11e7-907b-a6006ad3dba0T' as UUID: syntax error at position 36 (parsed just '61f0c404-5cb3-11e7-907b-a6006ad3dba0'): while executing 'FUNCTION toUUID(value :: 0) -> toUUID(value) UUID : 1'. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b5cf657 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b5cab18 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b5ba819 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b5b9b48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b5b8d5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 19. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 20. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:27:17.929054 [ 12030 ] {df627525-0146-4b12-bb4b-56bf28ca9390} executeQuery: Code: 36. DB::Exception: Unexpected value of maximum unit argument (second) for function formatReadableTimeDelta, the only allowed values are: 'seconds', 'minutes', 'hours', 'days', 'months', 'years'.: While processing formatReadableTimeDelta(-(((((1 + 60) + 3600) + 86400) + (30.5 * 86400)) + (365 * 86400)), 'second'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41010) (comment: 01521_format_readable_time_delta2.sql) (in query: SELECT formatReadableTimeDelta(-(1 + 60 + 3600 + 86400 + 30.5 * 86400 + 365 * 86400), 'second');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>&, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type>, std::basic_string_view>&, String&&) @ 0x000000000e26d68c in /usr/bin/clickhouse 6. /build/src/Functions/formatReadableTimeDelta.cpp:120: DB::(anonymous namespace)::FunctionFormatReadableTimeDelta::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e26bc2e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:27:17.930065 [ 12030 ] {df627525-0146-4b12-bb4b-56bf28ca9390} TCPHandler: Code: 36. DB::Exception: Unexpected value of maximum unit argument (second) for function formatReadableTimeDelta, the only allowed values are: 'seconds', 'minutes', 'hours', 'days', 'months', 'years'.: While processing formatReadableTimeDelta(-(((((1 + 60) + 3600) + 86400) + (30.5 * 86400)) + (365 * 86400)), 'second'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>&, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type>, std::basic_string_view>&, String&&) @ 0x000000000e26d68c in /usr/bin/clickhouse 6. /build/src/Functions/formatReadableTimeDelta.cpp:120: DB::(anonymous namespace)::FunctionFormatReadableTimeDelta::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e26bc2e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:27:19.886147 [ 50483 ] {3ca6d4aa-ad88-47f1-ab55-4a71fb5892c9} StorageBuffer (test_2yz5kzxs.buffer_table1): Destination table test_2yz5kzxs.merge_tree_table1 has different type of column s (LowCardinality(String) != String). Data from destination table are converted. 2024.05.01 13:27:20.220702 [ 50483 ] {ccb7e6d6-0a3f-461f-a475-b9e7b15224f8} StorageBuffer (test_2yz5kzxs.buffer_table1): Destination table test_2yz5kzxs.merge_tree_table1 has different type of column s (LowCardinality(String) != String). Data from destination table are converted. 2024.05.01 13:27:20.268856 [ 50483 ] {dc186f75-0430-4bc7-b324-8ee5a1d433c7} StorageBuffer (test_2yz5kzxs.buffer_table1): Destination table test_2yz5kzxs.merge_tree_table1 has different type of column s (LowCardinality(String) != String). Data from destination table are converted. 2024.05.01 13:27:20.278129 [ 12030 ] {daa91d6b-d9f8-4e4d-b23c-2ce5887627b9} executeQuery: Code: 524. DB::Exception: Cannot alter version column version to type String because version column must be of an integer type or of type Date or DateTime. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58360) (comment: 01511_alter_version_versioned_collapsing_merge_tree.sql) (in query: ALTER TABLE table_with_version MODIFY COLUMN version String;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3087: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de2faa3 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ae2a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:20.278992 [ 12030 ] {daa91d6b-d9f8-4e4d-b23c-2ce5887627b9} TCPHandler: Code: 524. DB::Exception: Cannot alter version column version to type String because version column must be of an integer type or of type Date or DateTime. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3087: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de2faa3 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ae2a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:20.378717 [ 12030 ] {cfd4a747-618d-46f9-9399-48675e4be971} executeQuery: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type Int64 because new type will change sort order of version column. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58360) (comment: 01511_alter_version_versioned_collapsing_merge_tree.sql) (in query: ALTER TABLE table_with_version MODIFY COLUMN version Int64;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3103: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de2fdba in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ae2a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:20.379455 [ 12030 ] {cfd4a747-618d-46f9-9399-48675e4be971} TCPHandler: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type Int64 because new type will change sort order of version column. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3103: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de2fdba in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ae2a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:20.479846 [ 12030 ] {0a3d0796-babc-4baf-8ddf-83a6e73bd493} executeQuery: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type UInt16 because new type is smaller than current in the number of bytes. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58360) (comment: 01511_alter_version_versioned_collapsing_merge_tree.sql) (in query: ALTER TABLE table_with_version MODIFY COLUMN version UInt16;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3112: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de2ff91 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ae2a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:20.480566 [ 12030 ] {0a3d0796-babc-4baf-8ddf-83a6e73bd493} TCPHandler: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type UInt16 because new type is smaller than current in the number of bytes. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3112: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de2ff91 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ae2a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:20.492573 [ 12030 ] {221270b0-2d3a-4ba6-8bb0-c9393a079058} executeQuery: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type Float64 because new type will change sort order of version column. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58360) (comment: 01511_alter_version_versioned_collapsing_merge_tree.sql) (in query: ALTER TABLE table_with_version MODIFY COLUMN version Float64;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3103: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de2fdba in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ae2a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:20.493254 [ 12030 ] {221270b0-2d3a-4ba6-8bb0-c9393a079058} TCPHandler: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type Float64 because new type will change sort order of version column. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3103: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de2fdba in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ae2a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:20.505522 [ 12030 ] {af366839-09f3-40f6-9050-87cfa3316e9f} executeQuery: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type Date because new type will change sort order of version column. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58360) (comment: 01511_alter_version_versioned_collapsing_merge_tree.sql) (in query: ALTER TABLE table_with_version MODIFY COLUMN version Date;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3103: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de2fdba in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ae2a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:20.506158 [ 12030 ] {af366839-09f3-40f6-9050-87cfa3316e9f} TCPHandler: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type Date because new type will change sort order of version column. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3103: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de2fdba in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ae2a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:20.518308 [ 12030 ] {46869b00-69ab-45ce-a0fa-7ce3bb0866f7} executeQuery: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type DateTime because new type will change sort order of version column. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58360) (comment: 01511_alter_version_versioned_collapsing_merge_tree.sql) (in query: ALTER TABLE table_with_version MODIFY COLUMN version DateTime;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3103: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de2fdba in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ae2a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:20.518949 [ 12030 ] {46869b00-69ab-45ce-a0fa-7ce3bb0866f7} TCPHandler: Code: 524. DB::Exception: Cannot alter version column version from type UInt32 to type DateTime because new type will change sort order of version column. The only possible conversion is expansion of the number of bytes of the current type. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3103: DB::(anonymous namespace)::checkVersionColumnTypesConversion(DB::IDataType const*, DB::IDataType const*, String) @ 0x000000001de2fdba in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3235: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ae2a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:23.436672 [ 50705 ] {f7e1c6b8-8992-4c62-97b5-4f2af625a090} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 300.14 MiB (attempt to allocate chunk of 5046872 bytes), maximum: 300.00 MiB.: while executing 'FUNCTION repeat(toString(number) : 3, 11 :: 1) -> repeat(toString(number), 11) String : 4'. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40624) (comment: 01600_remerge_sort_lowered_memory_bytes_ratio.sql) (in query: select number k, repeat(toString(number), 11) v1, repeat(toString(number), 12) v2 from numbers(3e6) order by v1, v2 limit 400e3 settings remerge_sort_lowered_memory_bytes_ratio=2. format Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001386fdce in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b1f8ba5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1f8a39 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b1f8826 in /usr/bin/clickhouse 14. /build/src/Functions/repeat.cpp:61: void DB::(anonymous namespace)::RepeatImpl::vectorStrConstRepeat(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&, char8_t) @ 0x000000001249e3a0 in /usr/bin/clickhouse 15. /build/src/Functions/repeat.cpp:217: auto DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000001249d4e0 in /usr/bin/clickhouse 16. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)>(DB::IDataType const*, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)&&) @ 0x000000001249d027 in /usr/bin/clickhouse 17. /build/src/Functions/repeat.cpp:172: bool DB::(anonymous namespace)::FunctionRepeat::castType> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000001249ce3d in /usr/bin/clickhouse 18. /build/src/Functions/repeat.cpp:211: DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001249c67a in /usr/bin/clickhouse 19. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 25. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 26. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 27. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 2024.05.01 13:27:23.459222 [ 50705 ] {f7e1c6b8-8992-4c62-97b5-4f2af625a090} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 300.14 MiB (attempt to allocate chunk of 5046872 bytes), maximum: 300.00 MiB.: while executing 'FUNCTION repeat(toString(number) : 3, 11 :: 1) -> repeat(toString(number), 11) String : 4'. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x000000001386fdce in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:131: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::alloc<>(unsigned long) @ 0x000000000b1f8ba5 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:157: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b1f8a39 in /usr/bin/clickhouse 13. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<1ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b1f8826 in /usr/bin/clickhouse 14. /build/src/Functions/repeat.cpp:61: void DB::(anonymous namespace)::RepeatImpl::vectorStrConstRepeat(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&, char8_t) @ 0x000000001249e3a0 in /usr/bin/clickhouse 15. /build/src/Functions/repeat.cpp:217: auto DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000001249d4e0 in /usr/bin/clickhouse 16. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)>(DB::IDataType const*, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)&&) @ 0x000000001249d027 in /usr/bin/clickhouse 17. /build/src/Functions/repeat.cpp:172: bool DB::(anonymous namespace)::FunctionRepeat::castType> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000001249ce3d in /usr/bin/clickhouse 18. /build/src/Functions/repeat.cpp:211: DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001249c67a in /usr/bin/clickhouse 19. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 25. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 26. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 27. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 2024.05.01 13:27:26.052342 [ 50483 ] {6cf2b829-ac94-4eed-a91f-5c34c1986b47} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 3.00. (TOO_MANY_ROWS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58460) (comment: 01505_trivial_count_with_partition_predicate.sql) (in query: -- non-optimized (toDate(DateTime) is always monotonic, but we cannot relaxing the predicates to do trivial count()) select count() from test1 where p > toDateTime('2020-09-01 10:00:00');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:26.053047 [ 50483 ] {6cf2b829-ac94-4eed-a91f-5c34c1986b47} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 3.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:26.162238 [ 50483 ] {3cbc048e-23d8-456f-9674-a34023a26dd8} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 2.00. (TOO_MANY_ROWS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58460) (comment: 01505_trivial_count_with_partition_predicate.sql) (in query: -- non-optimized (some predicate depends on non-partition_expr columns) select count() FROM test1 where toDate(p) = '2020-09-01' and k = 2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:26.162999 [ 50483 ] {3cbc048e-23d8-456f-9674-a34023a26dd8} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 2.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:26.486767 [ 50483 ] {c21ef29c-f486-49d8-b346-3815eb8f8778} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 2.00. (TOO_MANY_ROWS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58460) (comment: 01505_trivial_count_with_partition_predicate.sql) (in query: -- non-optimized select count() from test_tuple array join [p,p] as c where toDate(p) = '2020-09-01';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:26.487539 [ 50483 ] {c21ef29c-f486-49d8-b346-3815eb8f8778} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 2.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:26.558144 [ 50483 ] {370415ac-2466-4cf2-a262-6d26c8883f7f} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 2.00. (TOO_MANY_ROWS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58460) (comment: 01505_trivial_count_with_partition_predicate.sql) (in query: -- non-optimized select count() from test_tuple array join [1,2,3] as c where toDate(p) = '2020-09-01';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:26.559185 [ 50483 ] {370415ac-2466-4cf2-a262-6d26c8883f7f} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 2.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:26.720552 [ 50483 ] {5bcb8a9a-0a81-4c4b-8b8d-f76769dd29d5} executeQuery: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 3.00. (TOO_MANY_ROWS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58460) (comment: 01505_trivial_count_with_partition_predicate.sql) (in query: -- non-optimized select count() from test_two_args where i = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:26.721515 [ 50483 ] {5bcb8a9a-0a81-4c4b-8b8d-f76769dd29d5} TCPHandler: Code: 158. DB::Exception: Limit for rows (controlled by 'max_rows_to_read' setting) exceeded, max rows: 1.00, current rows: 3.00. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/SizeLimits.cpp:65: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int) const @ 0x000000001b8979b9 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:234: DB::ReadFromMergeTree::AnalysisResult::checkLimits(DB::Settings const&, DB::SelectQueryInfo const&) const @ 0x000000001ee2c6e3 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1791: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3b026 in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:28.622114 [ 50483 ] {9230ca30-beed-4388-bdde-f8a3eef95f3d} executeQuery: Code: 36. DB::Exception: StorageEmbeddedRocksDB must require one column in primary key. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45878) (comment: 01504_rocksdb.sql) (in query: CREATE TABLE 01504_test (key String, value UInt32) Engine=EmbeddedRocksDB;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc5abfe in /usr/bin/clickhouse 6. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:496: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001adfa781 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 13. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:28.622901 [ 50483 ] {9230ca30-beed-4388-bdde-f8a3eef95f3d} TCPHandler: Code: 36. DB::Exception: StorageEmbeddedRocksDB must require one column in primary key. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc5abfe in /usr/bin/clickhouse 6. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:496: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001adfa781 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 13. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:28.779558 [ 50483 ] {0481e0f5-ce6e-4eb2-bad3-84d9ffcd208c} executeQuery: Code: 47. DB::Exception: Missing columns: 'key2' while processing query: 'key2', required columns: 'key2' 'key2'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45878) (comment: 01504_rocksdb.sql) (in query: CREATE TABLE 01504_test (key String, value UInt32) Engine=EmbeddedRocksDB PRIMARY KEY(key2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf92678 in /usr/bin/clickhouse 8. /build/src/Storages/KeyDescription.cpp:140: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d5ec1a0 in /usr/bin/clickhouse 9. /build/src/Storages/KeyDescription.cpp:90: DB::KeyDescription::getKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr) @ 0x000000001d5ec8fa in /usr/bin/clickhouse 10. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:498: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001adfa8ec in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:28.780419 [ 50483 ] {0481e0f5-ce6e-4eb2-bad3-84d9ffcd208c} TCPHandler: Code: 47. DB::Exception: Missing columns: 'key2' while processing query: 'key2', required columns: 'key2' 'key2'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf92678 in /usr/bin/clickhouse 8. /build/src/Storages/KeyDescription.cpp:140: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d5ec1a0 in /usr/bin/clickhouse 9. /build/src/Storages/KeyDescription.cpp:90: DB::KeyDescription::getKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr) @ 0x000000001d5ec8fa in /usr/bin/clickhouse 10. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:498: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001adfa8ec in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 17. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:28.912842 [ 50483 ] {626e4313-ff96-4fec-920d-46ff9afb7071} executeQuery: Code: 36. DB::Exception: StorageEmbeddedRocksDB must require one column in primary key. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45878) (comment: 01504_rocksdb.sql) (in query: CREATE TABLE 01504_test (key String, value UInt32) Engine=EmbeddedRocksDB PRIMARY KEY(key, value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc5abfe in /usr/bin/clickhouse 6. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:502: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001adfa987 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 13. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:28.913844 [ 50483 ] {626e4313-ff96-4fec-920d-46ff9afb7071} TCPHandler: Code: 36. DB::Exception: StorageEmbeddedRocksDB must require one column in primary key. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc5abfe in /usr/bin/clickhouse 6. /build/src/Storages/RocksDB/StorageEmbeddedRocksDB.cpp:502: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001adfa987 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 13. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:30.425727 [ 50481 ] {da4a9c1a-82da-41b8-acec-f8c5c188e7ae} executeQuery: Code: 48. DB::Exception: Alter of type 'ADD_COLUMN' is not supported by storage Memory. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45922) (comment: 01498_alter_column_storage_memory.sql) (in query: ALTER TABLE defaults ADD COLUMN m Int8;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af3de8c in /usr/bin/clickhouse 6. /build/src/Storages/IStorage.cpp:203: DB::IStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d5dc13c in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:30.426356 [ 50481 ] {da4a9c1a-82da-41b8-acec-f8c5c188e7ae} TCPHandler: Code: 48. DB::Exception: Alter of type 'ADD_COLUMN' is not supported by storage Memory. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af3de8c in /usr/bin/clickhouse 6. /build/src/Storages/IStorage.cpp:203: DB::IStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d5dc13c in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:30.431934 [ 50481 ] {023236ba-e90b-4a03-b817-65dba65e7c51} executeQuery: Code: 48. DB::Exception: Alter of type 'DROP_COLUMN' is not supported by storage Memory. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45922) (comment: 01498_alter_column_storage_memory.sql) (in query: ALTER TABLE defaults DROP COLUMN n;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af3de8c in /usr/bin/clickhouse 6. /build/src/Storages/IStorage.cpp:203: DB::IStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d5dc13c in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:30.432581 [ 50481 ] {023236ba-e90b-4a03-b817-65dba65e7c51} TCPHandler: Code: 48. DB::Exception: Alter of type 'DROP_COLUMN' is not supported by storage Memory. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, DB::AlterCommand::Type const&, String&&) @ 0x000000001af3de8c in /usr/bin/clickhouse 6. /build/src/Storages/IStorage.cpp:203: DB::IStorage::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001d5dc13c in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:37.331301 [ 1080 ] {86999aba-303d-4b4b-97b5-cebf6da721c2} executeQuery: Code: 43. DB::Exception: Function toStartOfDay supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfDay(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46128) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfDay(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001268633c in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:37.332326 [ 1080 ] {86999aba-303d-4b4b-97b5-cebf6da721c2} TCPHandler: Code: 43. DB::Exception: Function toStartOfDay supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfDay(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001268633c in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:37.794584 [ 1080 ] {1957fa36-3898-416d-9c69-3d37df6dc2de} executeQuery: Code: 43. DB::Exception: Function toMonday supports a 2nd argument (optional) that must be a valid time zone: While processing toMonday(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46128) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toMonday(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateOrDate32.h:40: DB::FunctionDateOrDateTimeToDateOrDate32::getReturnTypeImpl(std::vector> const&) const @ 0x000000001265d03a in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:37.795652 [ 1080 ] {1957fa36-3898-416d-9c69-3d37df6dc2de} TCPHandler: Code: 43. DB::Exception: Function toMonday supports a 2nd argument (optional) that must be a valid time zone: While processing toMonday(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateOrDate32.h:40: DB::FunctionDateOrDateTimeToDateOrDate32::getReturnTypeImpl(std::vector> const&) const @ 0x000000001265d03a in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:37.926477 [ 1080 ] {cd021c53-0cb0-4f8d-afaa-d8e4a9bde656} executeQuery: Code: 43. DB::Exception: Provided time zone must be non-empty and be a valid time zone: While processing toStartOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 0, ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46128) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 0, '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc5abfe in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:63: DB::extractTimeZoneFromFunctionArguments(std::vector> const&, unsigned long, unsigned long) @ 0x000000001abf6d7d in /usr/bin/clickhouse 7. /build/src/Functions/CustomWeekTransforms.h:196: COW::immutable_ptr DB::CustomWeekTransformImpl::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::ToStartOfWeekImpl) @ 0x000000001262e37c in /usr/bin/clickhouse 8. /build/src/Functions/FunctionCustomWeekToDateOrDate32.h:59: DB::FunctionCustomWeekToDateOrDate32::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001262d507 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 2024.05.01 13:27:37.927465 [ 1080 ] {cd021c53-0cb0-4f8d-afaa-d8e4a9bde656} TCPHandler: Code: 43. DB::Exception: Provided time zone must be non-empty and be a valid time zone: While processing toStartOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 0, ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc5abfe in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:63: DB::extractTimeZoneFromFunctionArguments(std::vector> const&, unsigned long, unsigned long) @ 0x000000001abf6d7d in /usr/bin/clickhouse 7. /build/src/Functions/CustomWeekTransforms.h:196: COW::immutable_ptr DB::CustomWeekTransformImpl::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::ToStartOfWeekImpl) @ 0x000000001262e37c in /usr/bin/clickhouse 8. /build/src/Functions/FunctionCustomWeekToDateOrDate32.h:59: DB::FunctionCustomWeekToDateOrDate32::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001262d507 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 2024.05.01 13:27:37.950313 [ 1080 ] {18e67a75-87cd-473c-9421-e06e0f9553d5} executeQuery: Code: 43. DB::Exception: Provided time zone must be non-empty and be a valid time zone: While processing toStartOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 1, ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46128) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 1, '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc5abfe in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:63: DB::extractTimeZoneFromFunctionArguments(std::vector> const&, unsigned long, unsigned long) @ 0x000000001abf6d7d in /usr/bin/clickhouse 7. /build/src/Functions/CustomWeekTransforms.h:196: COW::immutable_ptr DB::CustomWeekTransformImpl::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::ToStartOfWeekImpl) @ 0x000000001262e37c in /usr/bin/clickhouse 8. /build/src/Functions/FunctionCustomWeekToDateOrDate32.h:59: DB::FunctionCustomWeekToDateOrDate32::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001262d507 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 2024.05.01 13:27:37.951189 [ 1080 ] {18e67a75-87cd-473c-9421-e06e0f9553d5} TCPHandler: Code: 43. DB::Exception: Provided time zone must be non-empty and be a valid time zone: While processing toStartOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 1, ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc5abfe in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:63: DB::extractTimeZoneFromFunctionArguments(std::vector> const&, unsigned long, unsigned long) @ 0x000000001abf6d7d in /usr/bin/clickhouse 7. /build/src/Functions/CustomWeekTransforms.h:196: COW::immutable_ptr DB::CustomWeekTransformImpl::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::ToStartOfWeekImpl) @ 0x000000001262e37c in /usr/bin/clickhouse 8. /build/src/Functions/FunctionCustomWeekToDateOrDate32.h:59: DB::FunctionCustomWeekToDateOrDate32::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001262d507 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 2024.05.01 13:27:38.085400 [ 1080 ] {4117c7e0-a87f-4e74-b697-e673f211bfb5} executeQuery: Code: 43. DB::Exception: Provided time zone must be non-empty and be a valid time zone: While processing toLastDayOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 0, ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46128) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toLastDayOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 0, '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc5abfe in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:63: DB::extractTimeZoneFromFunctionArguments(std::vector> const&, unsigned long, unsigned long) @ 0x000000001abf6d7d in /usr/bin/clickhouse 7. /build/src/Functions/CustomWeekTransforms.h:196: COW::immutable_ptr DB::CustomWeekTransformImpl::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::ToLastDayOfWeekImpl) @ 0x000000001263219c in /usr/bin/clickhouse 8. /build/src/Functions/FunctionCustomWeekToDateOrDate32.h:59: DB::FunctionCustomWeekToDateOrDate32::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012631327 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 2024.05.01 13:27:38.086419 [ 1080 ] {4117c7e0-a87f-4e74-b697-e673f211bfb5} TCPHandler: Code: 43. DB::Exception: Provided time zone must be non-empty and be a valid time zone: While processing toLastDayOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 0, ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc5abfe in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:63: DB::extractTimeZoneFromFunctionArguments(std::vector> const&, unsigned long, unsigned long) @ 0x000000001abf6d7d in /usr/bin/clickhouse 7. /build/src/Functions/CustomWeekTransforms.h:196: COW::immutable_ptr DB::CustomWeekTransformImpl::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::ToLastDayOfWeekImpl) @ 0x000000001263219c in /usr/bin/clickhouse 8. /build/src/Functions/FunctionCustomWeekToDateOrDate32.h:59: DB::FunctionCustomWeekToDateOrDate32::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012631327 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 2024.05.01 13:27:38.109300 [ 1080 ] {ffcc5ff1-e32e-415e-bf16-56d7ed845166} executeQuery: Code: 43. DB::Exception: Provided time zone must be non-empty and be a valid time zone: While processing toLastDayOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 1, ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46128) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toLastDayOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 1, '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc5abfe in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:63: DB::extractTimeZoneFromFunctionArguments(std::vector> const&, unsigned long, unsigned long) @ 0x000000001abf6d7d in /usr/bin/clickhouse 7. /build/src/Functions/CustomWeekTransforms.h:196: COW::immutable_ptr DB::CustomWeekTransformImpl::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::ToLastDayOfWeekImpl) @ 0x000000001263219c in /usr/bin/clickhouse 8. /build/src/Functions/FunctionCustomWeekToDateOrDate32.h:59: DB::FunctionCustomWeekToDateOrDate32::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012631327 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 2024.05.01 13:27:38.110047 [ 1080 ] {ffcc5ff1-e32e-415e-bf16-56d7ed845166} TCPHandler: Code: 43. DB::Exception: Provided time zone must be non-empty and be a valid time zone: While processing toLastDayOfWeek(toDateTime('2017-12-31 00:00:00', 'UTC'), 1, ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [62]) @ 0x000000000bc5abfe in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:63: DB::extractTimeZoneFromFunctionArguments(std::vector> const&, unsigned long, unsigned long) @ 0x000000001abf6d7d in /usr/bin/clickhouse 7. /build/src/Functions/CustomWeekTransforms.h:196: COW::immutable_ptr DB::CustomWeekTransformImpl::execute(std::vector> const&, std::shared_ptr const&, unsigned long, DB::ToLastDayOfWeekImpl) @ 0x000000001263219c in /usr/bin/clickhouse 8. /build/src/Functions/FunctionCustomWeekToDateOrDate32.h:59: DB::FunctionCustomWeekToDateOrDate32::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000012631327 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 2024.05.01 13:27:38.247344 [ 1080 ] {20fa61a4-8fea-40f0-9125-bf6ca1b07526} executeQuery: Code: 43. DB::Exception: Function toStartOfMonth supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfMonth(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46128) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfMonth(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateOrDate32.h:40: DB::FunctionDateOrDateTimeToDateOrDate32::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126a9c7a in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:38.248411 [ 1080 ] {20fa61a4-8fea-40f0-9125-bf6ca1b07526} TCPHandler: Code: 43. DB::Exception: Function toStartOfMonth supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfMonth(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateOrDate32.h:40: DB::FunctionDateOrDateTimeToDateOrDate32::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126a9c7a in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:38.384837 [ 1080 ] {d10ff653-20df-4fa2-8abe-dfbc20008ddd} executeQuery: Code: 43. DB::Exception: Function toStartOfQuarter supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfQuarter(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46128) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfQuarter(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateOrDate32.h:40: DB::FunctionDateOrDateTimeToDateOrDate32::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126ada7a in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:38.385886 [ 1080 ] {d10ff653-20df-4fa2-8abe-dfbc20008ddd} TCPHandler: Code: 43. DB::Exception: Function toStartOfQuarter supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfQuarter(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateOrDate32.h:40: DB::FunctionDateOrDateTimeToDateOrDate32::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126ada7a in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:38.526323 [ 1080 ] {f9a7901c-9a0f-4953-bd74-6489b04d61e9} executeQuery: Code: 43. DB::Exception: Function toStartOfYear supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfYear(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46128) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfYear(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateOrDate32.h:40: DB::FunctionDateOrDateTimeToDateOrDate32::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126c2c1a in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:38.527331 [ 1080 ] {f9a7901c-9a0f-4953-bd74-6489b04d61e9} TCPHandler: Code: 43. DB::Exception: Function toStartOfYear supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfYear(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateOrDate32.h:40: DB::FunctionDateOrDateTimeToDateOrDate32::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126c2c1a in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:38.694659 [ 1080 ] {7643537f-50d1-49af-a199-88eab5dfa70d} executeQuery: Code: 43. DB::Exception: Function toStartOfTenMinutes supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfTenMinutes(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46128) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfTenMinutes(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126beb3c in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:38.695750 [ 1080 ] {7643537f-50d1-49af-a199-88eab5dfa70d} TCPHandler: Code: 43. DB::Exception: Function toStartOfTenMinutes supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfTenMinutes(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126beb3c in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:38.845515 [ 1080 ] {c9c731a9-b216-4939-b4c3-23ab2178d93e} executeQuery: Code: 43. DB::Exception: Function toStartOfFifteenMinutes supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfFifteenMinutes(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46128) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfFifteenMinutes(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001268a4bc in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:38.846490 [ 1080 ] {c9c731a9-b216-4939-b4c3-23ab2178d93e} TCPHandler: Code: 43. DB::Exception: Function toStartOfFifteenMinutes supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfFifteenMinutes(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001268a4bc in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:38.979222 [ 1080 ] {2722de5c-a27e-462c-861d-2c111bdf42c4} executeQuery: Code: 43. DB::Exception: Function toStartOfHour supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfHour(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46128) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfHour(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001269263c in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:38.980216 [ 1080 ] {2722de5c-a27e-462c-861d-2c111bdf42c4} TCPHandler: Code: 43. DB::Exception: Function toStartOfHour supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfHour(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x000000001269263c in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:39.114359 [ 1080 ] {02f6323e-da58-4283-a677-c20a0bfa5aa1} executeQuery: Code: 43. DB::Exception: Function toStartOfMinute supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfMinute(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46128) (comment: 01472_toBoundsOfInterval_disallow_empty_tz_field.sql) (in query: SELECT toStartOfMinute(toDateTime('2017-12-31 00:00:00', 'UTC'), '');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126a5d7c in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:39.115393 [ 1080 ] {02f6323e-da58-4283-a677-c20a0bfa5aa1} TCPHandler: Code: 43. DB::Exception: Function toStartOfMinute supports a 2nd argument (optional) that must be a valid time zone: While processing toStartOfMinute(toDateTime('2017-12-31 00:00:00', 'UTC'), ''). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeToDateTimeOrDateTime64.h:42: DB::FunctionDateOrDateTimeToDateTimeOrDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126a5d7c in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:39.625203 [ 5964 ] {508848e8-8ceb-4186-8329-2ab1986f5a4e} executeQuery: Code: 69. DB::Exception: Too large parameter(s) for aggregate function 'topKWeighted' (maximum is 16777215). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35732) (comment: 01471_top_k_range_check.sql) (in query: SELECT length(topKWeighted(2, -9223372036854775808)(number, 1025)) FROM system.numbers;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionTopK.cpp:138: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionTopK(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001740dcbd in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:27:39.626501 [ 5964 ] {508848e8-8ceb-4186-8329-2ab1986f5a4e} TCPHandler: Code: 69. DB::Exception: Too large parameter(s) for aggregate function 'topKWeighted' (maximum is 16777215). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionTopK.cpp:138: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionTopK(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001740dcbd in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:27:40.152028 [ 50483 ] {4c1a65d2-4f52-45e7-8832-6eedd6a1d985} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 2.00, current rows: 77.00: While executing EmbeddedRocksDB. (TOO_MANY_ROWS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45878) (comment: 01504_rocksdb.sql) (in query: SELECT k, value FROM 01504_test WHERE k = 0 OR value > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b86de24 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683891 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 2024.05.01 13:27:40.211304 [ 50483 ] {4c1a65d2-4f52-45e7-8832-6eedd6a1d985} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 2.00, current rows: 77.00: While executing EmbeddedRocksDB. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b86de24 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683891 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 2024.05.01 13:27:40.392399 [ 50483 ] {818a8251-84d0-4cae-a803-23723454f5d7} executeQuery: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 2.00, current rows: 77.00: While executing EmbeddedRocksDB. (TOO_MANY_ROWS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45878) (comment: 01504_rocksdb.sql) (in query: SELECT k, value FROM 01504_test WHERE k = 0 AND k IN (1, 3) OR k > 8;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b86de24 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683891 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 2024.05.01 13:27:40.455490 [ 50483 ] {818a8251-84d0-4cae-a803-23723454f5d7} TCPHandler: Code: 158. DB::Exception: Limit for rows or bytes to read exceeded, max rows: 2.00, current rows: 77.00: While executing EmbeddedRocksDB. (TOO_MANY_ROWS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, char const*&, String&&, String&&) @ 0x000000001b897b48 in /usr/bin/clickhouse 6. /build/src/QueryPipeline/SizeLimits.cpp:25: DB::SizeLimits::check(unsigned long, unsigned long, char const*, int, int) const @ 0x000000001b89766c in /usr/bin/clickhouse 7. /build/src/QueryPipeline/ReadProgressCallback.cpp:109: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x000000001b86de24 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683891 in /usr/bin/clickhouse 9. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 2024.05.01 13:27:40.991238 [ 5964 ] {f471a1af-c449-48d2-b06d-21188be78da5} executeQuery: Code: 69. DB::Exception: Overflow in internal computations in function groupArrayResample. Too large arguments. (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35764) (comment: 01463_resample_overflow.sql) (in query: select groupArrayResample(-9223372036854775808, 9223372036854775807, 9223372036854775807)(number, toInt64(number)) FROM numbers(7);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionResample.h:69: DB::AggregateFunctionResample::AggregateFunctionResample(std::shared_ptr, long, long, unsigned long, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017af49f6 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::AggregateFunctionResample* std::construct_at[abi:v15000], std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionResample*>(DB::AggregateFunctionResample*, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017af4590 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>>::construct[abi:v15000], std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&, void, void>(std::allocator>&, DB::AggregateFunctionResample*, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017af430d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace, std::allocator>>::__shared_ptr_emplace[abi:v15000] const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&>(std::allocator>, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017af3fd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr> std::allocate_shared[abi:v15000], std::allocator>, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&, void>(std::allocator> const&, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017af3e2e in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr> std::make_shared[abi:v15000], std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&, void>(std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017af10d4 in /usr/bin/clickhouse 12. /build/src/AggregateFunctions/AggregateFunctionResample.cpp:80: DB::(anonymous namespace)::AggregateFunctionCombinatorResample::transformAggregateFunction(std::shared_ptr const&, DB::AggregateFunctionProperties const&, std::vector, std::allocator>> const&, DB::Array const&) const @ 0x0000000017af0ac4 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:200: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abfa378 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:27:40.992407 [ 5964 ] {f471a1af-c449-48d2-b06d-21188be78da5} TCPHandler: Code: 69. DB::Exception: Overflow in internal computations in function groupArrayResample. Too large arguments. (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionResample.h:69: DB::AggregateFunctionResample::AggregateFunctionResample(std::shared_ptr, long, long, unsigned long, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017af49f6 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::AggregateFunctionResample* std::construct_at[abi:v15000], std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionResample*>(DB::AggregateFunctionResample*, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017af4590 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>>::construct[abi:v15000], std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&, void, void>(std::allocator>&, DB::AggregateFunctionResample*, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017af430d in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace, std::allocator>>::__shared_ptr_emplace[abi:v15000] const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&>(std::allocator>, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017af3fd9 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr> std::allocate_shared[abi:v15000], std::allocator>, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&, void>(std::allocator> const&, std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017af3e2e in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr> std::make_shared[abi:v15000], std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&, void>(std::shared_ptr const&, long&, long&, unsigned long&, std::vector, std::allocator>> const&, DB::Array const&) @ 0x0000000017af10d4 in /usr/bin/clickhouse 12. /build/src/AggregateFunctions/AggregateFunctionResample.cpp:80: DB::(anonymous namespace)::AggregateFunctionCombinatorResample::transformAggregateFunction(std::shared_ptr const&, DB::AggregateFunctionProperties const&, std::vector, std::allocator>> const&, DB::Array const&) const @ 0x0000000017af0ac4 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:200: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abfa378 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:27:42.638706 [ 5964 ] {1d216083-e8e2-478d-82f5-92ec0d876ae2} executeQuery: Code: 44. DB::Exception: The argument of function defaultValueOfTypeName must be a constant string describing type.: While processing defaultValueOfTypeName(FQDN()). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35792) (comment: 01459_default_value_of_argument_type_nullptr_dereference.sql) (in query: SELECT defaultValueOfTypeName(FQDN());), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/defaultValueOfTypeName.cpp:51: DB::(anonymous namespace)::FunctionDefaultValueOfTypeName::getReturnTypeImpl(std::vector> const&) const @ 0x000000000d9fbb4d in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:445: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe69f5 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:42.639740 [ 5964 ] {1d216083-e8e2-478d-82f5-92ec0d876ae2} TCPHandler: Code: 44. DB::Exception: The argument of function defaultValueOfTypeName must be a constant string describing type.: While processing defaultValueOfTypeName(FQDN()). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/defaultValueOfTypeName.cpp:51: DB::(anonymous namespace)::FunctionDefaultValueOfTypeName::getReturnTypeImpl(std::vector> const&) const @ 0x000000000d9fbb4d in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:445: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe69f5 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:27:49.721060 [ 12022 ] {9e0a2c9e-b784-4dbe-ab6c-8eb0328096dc} executeQuery: Code: 232. DB::Exception: No part all_100_100_0 in committed state. (NO_SUCH_DATA_PART) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36854) (comment: 01451_replicated_detach_drop_part_long.sql) (in query: ALTER TABLE replica1 DETACH PART 'all_100_100_0';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4984: DB::MergeTreeData::checkPartCanBeDropped(String const&) @ 0x000000001de46590 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:5138: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001de48390 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caccc in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:49.721821 [ 12022 ] {9e0a2c9e-b784-4dbe-ab6c-8eb0328096dc} TCPHandler: Code: 232. DB::Exception: No part all_100_100_0 in committed state. (NO_SUCH_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4984: DB::MergeTreeData::checkPartCanBeDropped(String const&) @ 0x000000001de46590 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:5138: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001de48390 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caccc in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:49.898018 [ 938 ] {} test_3i9c0lqw.replica1 (e85d3a9f-f4a3-446d-8703-862f858f70df): Part all_3_3_0 doesn't have metadata version on disk, setting it to 0. It's okay if the part was created by an old version of ClickHouse 2024.05.01 13:27:50.181820 [ 12022 ] {85a3f0de-418c-4938-953e-d224ffec0bf6} executeQuery: Code: 233. DB::Exception: Detached part "all_3_3_0" not found. (BAD_DATA_PART_NAME) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36854) (comment: 01451_replicated_detach_drop_part_long.sql) (in query: ALTER TABLE replica1 ATTACH PART 'all_3_3_0';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:7609: DB::MergeTreeData::getDiskForDetachedPart(String const&) const @ 0x000000001de4fa9c in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:5924: DB::MergeTreeData::tryLoadPartsToAttach(std::shared_ptr const&, bool, std::shared_ptr, DB::MergeTreeData::PartsTemporaryRename&) @ 0x000000001de5031d in /usr/bin/clickhouse 8. /build/src/Storages/StorageReplicatedMergeTree.cpp:6136: DB::StorageReplicatedMergeTree::attachPartition(std::shared_ptr const&, std::shared_ptr const&, bool, std::shared_ptr) @ 0x000000001d81d127 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:5154: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001de485b0 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caccc in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:50.182474 [ 12022 ] {85a3f0de-418c-4938-953e-d224ffec0bf6} TCPHandler: Code: 233. DB::Exception: Detached part "all_3_3_0" not found. (BAD_DATA_PART_NAME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:7609: DB::MergeTreeData::getDiskForDetachedPart(String const&) const @ 0x000000001de4fa9c in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:5924: DB::MergeTreeData::tryLoadPartsToAttach(std::shared_ptr const&, bool, std::shared_ptr, DB::MergeTreeData::PartsTemporaryRename&) @ 0x000000001de5031d in /usr/bin/clickhouse 8. /build/src/Storages/StorageReplicatedMergeTree.cpp:6136: DB::StorageReplicatedMergeTree::attachPartition(std::shared_ptr const&, std::shared_ptr const&, bool, std::shared_ptr) @ 0x000000001d81d127 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:5154: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001de485b0 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caccc in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:50.467384 [ 12024 ] {53d5fc5e-e782-4cb0-9674-f3848c6c2466} executeQuery: Code: 62. DB::Exception: Syntax error: failed at position 1048577 ('-'): -. Max query size exceeded: '-'. (SYNTAX_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:59760) (in query: select 1 in (1, 1, ... (truncated 948624 characters)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b1f8915 in /usr/bin/clickhouse 6. /build/src/Parsers/parseQuery.cpp:363: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long) @ 0x000000001f45f687 in /usr/bin/clickhouse 7. /build/src/Parsers/parseQuery.cpp:375: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long) @ 0x000000001f45f766 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:714: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09d288 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:50.469058 [ 12024 ] {53d5fc5e-e782-4cb0-9674-f3848c6c2466} DynamicQueryHandler: Code: 62. DB::Exception: Syntax error: failed at position 1048577 ('-'): -. Max query size exceeded: '-'. (SYNTAX_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b1f8915 in /usr/bin/clickhouse 6. /build/src/Parsers/parseQuery.cpp:363: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long) @ 0x000000001f45f687 in /usr/bin/clickhouse 7. /build/src/Parsers/parseQuery.cpp:375: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long) @ 0x000000001f45f766 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:714: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09d288 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:27:50.751421 [ 50482 ] {05fcddd5-a18f-4639-b0be-db5f2c1cebf0} executeQuery: Code: 48. DB::Exception: Part all_2_2_0 is last inserted part with quorum in partition. Cannot drop. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36868) (comment: 01451_replicated_detach_drop_and_quorum_long.sql) (in query: ALTER TABLE replica1 DETACH PART 'all_2_2_0';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:8295: DB::StorageReplicatedMergeTree::dropPartImpl(std::shared_ptr&, String, DB::ReplicatedMergeTreeLogEntry&, bool, bool) @ 0x000000001d81ea4e in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:6063: DB::StorageReplicatedMergeTree::dropPart(String const&, bool, std::shared_ptr) @ 0x000000001d8207db in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:5139: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001de483e4 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caccc in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:50.752125 [ 50482 ] {05fcddd5-a18f-4639-b0be-db5f2c1cebf0} TCPHandler: Code: 48. DB::Exception: Part all_2_2_0 is last inserted part with quorum in partition. Cannot drop. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:8295: DB::StorageReplicatedMergeTree::dropPartImpl(std::shared_ptr&, String, DB::ReplicatedMergeTreeLogEntry&, bool, bool) @ 0x000000001d81ea4e in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:6063: DB::StorageReplicatedMergeTree::dropPart(String const&, bool, std::shared_ptr) @ 0x000000001d8207db in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:5139: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001de483e4 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caccc in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:54.925602 [ 5967 ] {37ebcabd-6284-4540-989d-3c4574121fbb} executeQuery: Code: 57. DB::Exception: Table system.columns already exists. (TABLE_ALREADY_EXISTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36998) (comment: 01445_create_table_as_table_function.sh) (in query: CREATE TABLE system.columns AS numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000001843c0c8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1319: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7e8f55 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:54.927004 [ 5967 ] {37ebcabd-6284-4540-989d-3c4574121fbb} TCPHandler: Code: 57. DB::Exception: Table system.columns already exists. (TABLE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000001843c0c8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1319: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7e8f55 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:59.079416 [ 12026 ] {958a527b-b5ea-4432-9a53-7bcdda27f731} executeQuery: Code: 141. DB::Exception: Illegal SAMPLE: table doesn't support sampling. (SAMPLING_NOT_SUPPORTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49842) (comment: 01430_modify_sample_by_zookeeper_long.sql) (in query: SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM modify_sample SAMPLE 0.1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5ae41e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:687: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa2b51 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:59.080369 [ 12026 ] {958a527b-b5ea-4432-9a53-7bcdda27f731} TCPHandler: Code: 141. DB::Exception: Illegal SAMPLE: table doesn't support sampling. (SAMPLING_NOT_SUPPORTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5ae41e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:687: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa2b51 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:59.965557 [ 12026 ] {e194ff83-9a87-40bd-8a49-a8f59c5f52be} executeQuery: Code: 141. DB::Exception: Illegal SAMPLE: table doesn't support sampling. (SAMPLING_NOT_SUPPORTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49842) (comment: 01430_modify_sample_by_zookeeper_long.sql) (in query: SELECT count(), min(x), max(x), sum(x), uniqExact(x) FROM modify_sample_replicated SAMPLE 0.1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5ae41e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:687: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa2b51 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:27:59.966425 [ 12026 ] {e194ff83-9a87-40bd-8a49-a8f59c5f52be} TCPHandler: Code: 141. DB::Exception: Illegal SAMPLE: table doesn't support sampling. (SAMPLING_NOT_SUPPORTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5ae41e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:687: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa2b51 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:00.400741 [ 12026 ] {38e2ce94-38f9-4484-a373-639145abc2b6} executeQuery: Code: 36. DB::Exception: Sampling expression must be present in the primary key. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49842) (comment: 01430_modify_sample_by_zookeeper_long.sql) (in query: ALTER TABLE modify_sample_replicated MODIFY SAMPLE BY d;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [55]) @ 0x000000000c1527be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:212: DB::checkSampleExpression(DB::StorageInMemoryMetadata const&, bool, bool) @ 0x000000001ddfda52 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3272: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2b46e in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:00.401517 [ 12026 ] {38e2ce94-38f9-4484-a373-639145abc2b6} TCPHandler: Code: 36. DB::Exception: Sampling expression must be present in the primary key. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [55]) @ 0x000000000c1527be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:212: DB::checkSampleExpression(DB::StorageInMemoryMetadata const&, bool, bool) @ 0x000000001ddfda52 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3272: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2b46e in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:00.879833 [ 12026 ] {73f9211f-4400-4106-a6e6-dc9007a2aa77} executeQuery: Code: 36. DB::Exception: ALTER MODIFY SAMPLE BY is not supported for default-partitioned tables created with the old syntax. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49842) (comment: 01430_modify_sample_by_zookeeper_long.sql) (in query: ALTER TABLE modify_sample_old MODIFY SAMPLE BY x;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [99]) @ 0x000000001b3a271e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3269: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2b33e in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:00.880536 [ 12026 ] {73f9211f-4400-4106-a6e6-dc9007a2aa77} TCPHandler: Code: 36. DB::Exception: ALTER MODIFY SAMPLE BY is not supported for default-partitioned tables created with the old syntax. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [99]) @ 0x000000001b3a271e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3269: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2b33e in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:03.634368 [ 50482 ] {c2411564-0da0-403b-8322-1792697b25f4} executeQuery: Code: 36. DB::Exception: The value of 'number_of_free_entries_in_pool_to_execute_mutation' setting (100) (default values are defined in section of config.xml or the value can be specified per table in SETTINGS section of CREATE TABLE query) is greater than the value of 'background_pool_size'*'background_merges_mutations_concurrency_ratio' (32) (the value is defined in users.xml for default profile). This indicates incorrect configuration because mutations cannot work with these settings. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49988) (comment: 01419_merge_tree_settings_sanity_check.sql) (in query: CREATE TABLE mytable_local (`created` DateTime, `eventday` Date, `user_id` UInt32) ENGINE = MergeTree PARTITION BY toYYYYMM(eventday) ORDER BY (eventday, user_id) SETTINGS number_of_free_entries_in_pool_to_execute_mutation = 100, index_granularity = 3978, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 0.9634769558906555, merge_max_block_size = 19490, prefer_fetch_merged_part_size_threshold = 1, vertical_merge_algorithm_min_rows_to_activate = 608466, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 566758235, index_granularity_bytes = 10476121, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 71263, primary_key_compress_block_size = 60896), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&, unsigned long&>(int, FormatStringHelperImpl const&>::type, std::type_identity::type>, DB::SettingFieldNumber const&, unsigned long&) @ 0x000000001e14946c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:122: DB::MergeTreeSettings::sanityCheck(unsigned long) const @ 0x000000001e0f3ba0 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:367: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfbc58 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:28:03.650544 [ 50482 ] {c2411564-0da0-403b-8322-1792697b25f4} TCPHandler: Code: 36. DB::Exception: The value of 'number_of_free_entries_in_pool_to_execute_mutation' setting (100) (default values are defined in section of config.xml or the value can be specified per table in SETTINGS section of CREATE TABLE query) is greater than the value of 'background_pool_size'*'background_merges_mutations_concurrency_ratio' (32) (the value is defined in users.xml for default profile). This indicates incorrect configuration because mutations cannot work with these settings. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&, unsigned long&>(int, FormatStringHelperImpl const&>::type, std::type_identity::type>, DB::SettingFieldNumber const&, unsigned long&) @ 0x000000001e14946c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:122: DB::MergeTreeSettings::sanityCheck(unsigned long) const @ 0x000000001e0f3ba0 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:367: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfbc58 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:28:03.855426 [ 50482 ] {2ada9745-2062-4ed6-96db-a4642e1ecc6e} executeQuery: Code: 36. DB::Exception: The value of 'number_of_free_entries_in_pool_to_lower_max_size_of_merge' setting (100) (default values are defined in section of config.xml or the value can be specified per table in SETTINGS section of CREATE TABLE query) is greater than the value of 'background_pool_size'*'background_merges_mutations_concurrency_ratio' (32) (the value is defined in users.xml for default profile). This indicates incorrect configuration because the maximum size of merge will be always lowered. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49988) (comment: 01419_merge_tree_settings_sanity_check.sql) (in query: CREATE TABLE mytable_local (`created` DateTime, `eventday` Date, `user_id` UInt32) ENGINE = MergeTree PARTITION BY toYYYYMM(eventday) ORDER BY (eventday, user_id) SETTINGS number_of_free_entries_in_pool_to_lower_max_size_of_merge = 100, index_granularity = 3978, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 0.9634769558906555, merge_max_block_size = 19490, prefer_fetch_merged_part_size_threshold = 1, vertical_merge_algorithm_min_rows_to_activate = 608466, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 566758235, index_granularity_bytes = 10476121, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 71263, primary_key_compress_block_size = 60896), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&, unsigned long&>(int, FormatStringHelperImpl const&>::type, std::type_identity::type>, DB::SettingFieldNumber const&, unsigned long&) @ 0x000000001e14946c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:134: DB::MergeTreeSettings::sanityCheck(unsigned long) const @ 0x000000001e0f3c65 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:367: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfbc58 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:28:03.856498 [ 50482 ] {2ada9745-2062-4ed6-96db-a4642e1ecc6e} TCPHandler: Code: 36. DB::Exception: The value of 'number_of_free_entries_in_pool_to_lower_max_size_of_merge' setting (100) (default values are defined in section of config.xml or the value can be specified per table in SETTINGS section of CREATE TABLE query) is greater than the value of 'background_pool_size'*'background_merges_mutations_concurrency_ratio' (32) (the value is defined in users.xml for default profile). This indicates incorrect configuration because the maximum size of merge will be always lowered. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&, unsigned long&>(int, FormatStringHelperImpl const&>::type, std::type_identity::type>, DB::SettingFieldNumber const&, unsigned long&) @ 0x000000001e14946c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:134: DB::MergeTreeSettings::sanityCheck(unsigned long) const @ 0x000000001e0f3c65 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:367: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfbc58 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:28:04.039170 [ 50482 ] {fdd715f2-be9c-45b4-99ee-6fa65c00405f} executeQuery: Code: 36. DB::Exception: The value of 'number_of_free_entries_in_pool_to_execute_optimize_entire_partition' setting (100) (default values are defined in section of config.xml or the value can be specified per table in SETTINGS section of CREATE TABLE query) is greater than the value of 'background_pool_size'*'background_merges_mutations_concurrency_ratio' (32) (the value is defined in users.xml for default profile). This indicates incorrect configuration because the maximum size of merge will be always lowered. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49988) (comment: 01419_merge_tree_settings_sanity_check.sql) (in query: CREATE TABLE mytable_local (`created` DateTime, `eventday` Date, `user_id` UInt32) ENGINE = MergeTree PARTITION BY toYYYYMM(eventday) ORDER BY (eventday, user_id) SETTINGS number_of_free_entries_in_pool_to_execute_optimize_entire_partition = 100, index_granularity = 3978, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 0.9634769558906555, merge_max_block_size = 19490, prefer_fetch_merged_part_size_threshold = 1, vertical_merge_algorithm_min_rows_to_activate = 608466, vertical_merge_algorithm_min_columns_to_activate = 1, min_merge_bytes_to_use_direct_io = 566758235, index_granularity_bytes = 10476121, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 71263, primary_key_compress_block_size = 60896), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&, unsigned long&>(int, FormatStringHelperImpl const&>::type, std::type_identity::type>, DB::SettingFieldNumber const&, unsigned long&) @ 0x000000001e14946c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:146: DB::MergeTreeSettings::sanityCheck(unsigned long) const @ 0x000000001e0f3d32 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:367: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfbc58 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:28:04.040290 [ 50482 ] {fdd715f2-be9c-45b4-99ee-6fa65c00405f} TCPHandler: Code: 36. DB::Exception: The value of 'number_of_free_entries_in_pool_to_execute_optimize_entire_partition' setting (100) (default values are defined in section of config.xml or the value can be specified per table in SETTINGS section of CREATE TABLE query) is greater than the value of 'background_pool_size'*'background_merges_mutations_concurrency_ratio' (32) (the value is defined in users.xml for default profile). This indicates incorrect configuration because the maximum size of merge will be always lowered. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&, unsigned long&>(int, FormatStringHelperImpl const&>::type, std::type_identity::type>, DB::SettingFieldNumber const&, unsigned long&) @ 0x000000001e14946c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:146: DB::MergeTreeSettings::sanityCheck(unsigned long) const @ 0x000000001e0f3d32 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:367: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfbc58 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 21. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:28:04.203331 [ 50482 ] {aa1b63a0-5764-4bc8-9ee4-e52a1b3a5946} executeQuery: Code: 36. DB::Exception: The value of 'number_of_free_entries_in_pool_to_execute_mutation' setting (100) (default values are defined in section of config.xml or the value can be specified per table in SETTINGS section of CREATE TABLE query) is greater than the value of 'background_pool_size'*'background_merges_mutations_concurrency_ratio' (32) (the value is defined in users.xml for default profile). This indicates incorrect configuration because mutations cannot work with these settings. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49988) (comment: 01419_merge_tree_settings_sanity_check.sql) (in query: ALTER TABLE mytable_local MODIFY SETTING number_of_free_entries_in_pool_to_execute_mutation = 100;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&, unsigned long&>(int, FormatStringHelperImpl const&>::type, std::type_identity::type>, DB::SettingFieldNumber const&, unsigned long&) @ 0x000000001e14946c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:122: DB::MergeTreeSettings::sanityCheck(unsigned long) const @ 0x000000001e0f3ba0 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3587: DB::MergeTreeData::changeSettings(std::shared_ptr const&, std::unique_lock&) @ 0x000000001de30f67 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:333: DB::StorageMergeTree::alter(DB::AlterCommands const&, std::shared_ptr, std::unique_lock&) @ 0x000000001e2fad6c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:197: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cb066 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:04.204152 [ 50482 ] {aa1b63a0-5764-4bc8-9ee4-e52a1b3a5946} TCPHandler: Code: 36. DB::Exception: The value of 'number_of_free_entries_in_pool_to_execute_mutation' setting (100) (default values are defined in section of config.xml or the value can be specified per table in SETTINGS section of CREATE TABLE query) is greater than the value of 'background_pool_size'*'background_merges_mutations_concurrency_ratio' (32) (the value is defined in users.xml for default profile). This indicates incorrect configuration because mutations cannot work with these settings. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&, unsigned long&>(int, FormatStringHelperImpl const&>::type, std::type_identity::type>, DB::SettingFieldNumber const&, unsigned long&) @ 0x000000001e14946c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeSettings.cpp:122: DB::MergeTreeSettings::sanityCheck(unsigned long) const @ 0x000000001e0f3ba0 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3587: DB::MergeTreeData::changeSettings(std::shared_ptr const&, std::unique_lock&) @ 0x000000001de30f67 in /usr/bin/clickhouse 8. /build/src/Storages/StorageMergeTree.cpp:333: DB::StorageMergeTree::alter(DB::AlterCommands const&, std::shared_ptr, std::unique_lock&) @ 0x000000001e2fad6c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:197: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cb066 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:04.815910 [ 1080 ] {352b26eb-f72d-4e7d-b8a3-d6e6539b8650} executeQuery: Code: 524. DB::Exception: Trying to ALTER DROP key key1 column which is a part of key expression. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49996) (comment: 01416_clear_column_pk.sql) (in query: ALTER TABLE table_with_pk_clear CLEAR COLUMN key1 IN PARTITION tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3308: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ba8b in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:04.816570 [ 1080 ] {352b26eb-f72d-4e7d-b8a3-d6e6539b8650} TCPHandler: Code: 524. DB::Exception: Trying to ALTER DROP key key1 column which is a part of key expression. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3308: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ba8b in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:04.864278 [ 1080 ] {0db4a98a-2ad9-407c-bc51-323fcb427dcc} executeQuery: Code: 524. DB::Exception: Trying to ALTER DROP key key2 column which is a part of key expression. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49996) (comment: 01416_clear_column_pk.sql) (in query: ALTER TABLE table_with_pk_clear CLEAR COLUMN key2 IN PARTITION tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3308: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ba8b in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:04.864991 [ 1080 ] {0db4a98a-2ad9-407c-bc51-323fcb427dcc} TCPHandler: Code: 524. DB::Exception: Trying to ALTER DROP key key2 column which is a part of key expression. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3308: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ba8b in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:09.052110 [ 12026 ] {1d537db3-1eb9-4668-aa24-4d30a0265444} executeQuery: Code: 36. DB::Exception: Parameter for aggregate function groupArrayMovingSum should be positive integer. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50086) (comment: 01412_group_array_moving_shard.sql) (in query: SELECT groupArrayMovingSum(0)(1) FROM numbers(100);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:274: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMoving(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000017771ea7 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:28:09.053549 [ 12026 ] {1d537db3-1eb9-4668-aa24-4d30a0265444} TCPHandler: Code: 36. DB::Exception: Parameter for aggregate function groupArrayMovingSum should be positive integer. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:274: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMoving(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000017771ea7 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:28:09.189817 [ 12026 ] {046ffa57-04c0-44ef-865a-7fc3937367fa} executeQuery: Code: 36. DB::Exception: Parameter for aggregate function groupArrayMovingSum should be positive integer. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50086) (comment: 01412_group_array_moving_shard.sql) (in query: SELECT groupArrayMovingSum(0.)(1) FROM numbers(100);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:270: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMoving(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000017771db0 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:28:09.190855 [ 12026 ] {046ffa57-04c0-44ef-865a-7fc3937367fa} TCPHandler: Code: 36. DB::Exception: Parameter for aggregate function groupArrayMovingSum should be positive integer. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:270: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMoving(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000017771db0 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:28:09.200448 [ 12026 ] {7f726089-adca-4627-b5d5-699c2903622f} executeQuery: Code: 36. DB::Exception: Parameter for aggregate function groupArrayMovingSum should be positive integer. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50086) (comment: 01412_group_array_moving_shard.sql) (in query: SELECT groupArrayMovingSum(0.1)(1) FROM numbers(100);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:270: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMoving(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000017771db0 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:28:09.201326 [ 12026 ] {7f726089-adca-4627-b5d5-699c2903622f} TCPHandler: Code: 36. DB::Exception: Parameter for aggregate function groupArrayMovingSum should be positive integer. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:270: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMoving(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000017771db0 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:28:09.212304 [ 12026 ] {c50fcf6e-b2ce-47de-88e9-7ecfebdff884} executeQuery: Code: 36. DB::Exception: Parameter for aggregate function groupArrayMovingSum should be positive integer. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50086) (comment: 01412_group_array_moving_shard.sql) (in query: SELECT groupArrayMovingSum(0.1)(1) FROM remote('127.0.0.{1,2}', numbers(100));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:270: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMoving(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000017771db0 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:28:09.213182 [ 12026 ] {c50fcf6e-b2ce-47de-88e9-7ecfebdff884} TCPHandler: Code: 36. DB::Exception: Parameter for aggregate function groupArrayMovingSum should be positive integer. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp:270: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMoving(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000017771db0 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:28:10.307763 [ 12030 ] {da00652e-09a1-4c8f-be38-23a54d8d28ed} executeQuery: Code: 131. DB::Exception: Too large string size (1095207661) in function repeat, maximum is: 1073741824: while executing 'FUNCTION repeat('0.0001048576' :: 1, multiply(number, multiply(number, multiply(number, 255))) :: 3) -> repeat('0.0001048576', multiply(number, multiply(number, multiply(number, 255)))) String : 2'. (TOO_LARGE_STRING_SIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:57260) (comment: 01404_roundUpToPowerOfTwoOrZero_safety.sql) (in query: -- repeat() with this length and this number of rows will allocation huge enough region (MSB set), -- which will cause roundUpToPowerOfTwoOrZero() returns 0 for such allocation (before the fix), -- and later repeat() will try to use this memory and will got SIGSEGV. SELECT repeat('0.0001048576', number * (number * (number * 255))) FROM numbers(65535);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long const&) @ 0x000000000c4aa28c in /usr/bin/clickhouse 6. /build/src/Functions/repeat.cpp:36: DB::(anonymous namespace)::RepeatImpl::checkStringSize(unsigned long) @ 0x000000001249da98 in /usr/bin/clickhouse 7. /build/src/Functions/repeat.cpp:111: void DB::(anonymous namespace)::RepeatImpl::constStrVectorRepeat(std::basic_string_view>, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul> const&) @ 0x00000000124a258c in /usr/bin/clickhouse 8. /build/src/Functions/repeat.cpp:247: auto DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda1'(auto const&)::operator()>(auto const&) const @ 0x00000000124a163e in /usr/bin/clickhouse 9. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda1'(auto const&)>(DB::IDataType const*, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda1'(auto const&)&&) @ 0x00000000124a0d78 in /usr/bin/clickhouse 10. /build/src/Functions/repeat.cpp:172: bool DB::(anonymous namespace)::FunctionRepeat::castType> const&, std::shared_ptr const&, unsigned long) const::'lambda1'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000001249cebd in /usr/bin/clickhouse 11. /build/src/Functions/repeat.cpp:241: DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001249c88e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 19. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 20. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 2024.05.01 13:28:10.309142 [ 12030 ] {da00652e-09a1-4c8f-be38-23a54d8d28ed} TCPHandler: Code: 131. DB::Exception: Too large string size (1095207661) in function repeat, maximum is: 1073741824: while executing 'FUNCTION repeat('0.0001048576' :: 1, multiply(number, multiply(number, multiply(number, 255))) :: 3) -> repeat('0.0001048576', multiply(number, multiply(number, multiply(number, 255)))) String : 2'. (TOO_LARGE_STRING_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long const&) @ 0x000000000c4aa28c in /usr/bin/clickhouse 6. /build/src/Functions/repeat.cpp:36: DB::(anonymous namespace)::RepeatImpl::checkStringSize(unsigned long) @ 0x000000001249da98 in /usr/bin/clickhouse 7. /build/src/Functions/repeat.cpp:111: void DB::(anonymous namespace)::RepeatImpl::constStrVectorRepeat(std::basic_string_view>, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul>&, DB::PODArray, 63ul, 64ul> const&) @ 0x00000000124a258c in /usr/bin/clickhouse 8. /build/src/Functions/repeat.cpp:247: auto DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda1'(auto const&)::operator()>(auto const&) const @ 0x00000000124a163e in /usr/bin/clickhouse 9. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda1'(auto const&)>(DB::IDataType const*, DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda1'(auto const&)&&) @ 0x00000000124a0d78 in /usr/bin/clickhouse 10. /build/src/Functions/repeat.cpp:172: bool DB::(anonymous namespace)::FunctionRepeat::castType> const&, std::shared_ptr const&, unsigned long) const::'lambda1'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000001249cebd in /usr/bin/clickhouse 11. /build/src/Functions/repeat.cpp:241: DB::(anonymous namespace)::FunctionRepeat::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001249c88e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 19. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 20. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 2024.05.01 13:28:11.080587 [ 12026 ] {171a4591-ccb8-43f6-921c-37f762d524a9} executeQuery: Code: 407. DB::Exception: Decimal convert overflow: 10000000000 is not in range (-2147483648, 2147483647): While processing toDecimal32(1000000000, 1). (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50086) (comment: 01412_group_array_moving_shard.sql) (in query: SELECT groupArrayMovingSum(256)(toDecimal32(1000000000, 1)) FROM numbers(300);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&, String&&) @ 0x000000000b23a364 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypesDecimal.h:142: void DB::convertDecimalsImpl>, DB::DataTypeDecimal>, void>(DB::DataTypeDecimal>::FieldType const&, unsigned int, unsigned int, DB::DataTypeDecimal>::FieldType&) @ 0x000000000b4c7f54 in /usr/bin/clickhouse 7. /build/src/DataTypes/DataTypesDecimal.h:244: void DB::convertToDecimalImpl, DB::DataTypeDecimal>, void>(DB::DataTypeNumber::FieldType const&, unsigned int, DB::DataTypeDecimal>::FieldType&) @ 0x000000000b4c9f9c in /usr/bin/clickhouse 8. /build/src/DataTypes/DataTypesDecimal.h:254: DB::DataTypeDecimal>::FieldType DB::convertToDecimal, DB::DataTypeDecimal>>(DB::DataTypeNumber::FieldType const&, unsigned int) @ 0x000000000b4c9f3f in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:270: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeDecimal>, DB::NameToDecimal32, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba46b37 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba43436 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:179: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba30fcb in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 2024.05.01 13:28:11.081640 [ 12026 ] {171a4591-ccb8-43f6-921c-37f762d524a9} TCPHandler: Code: 407. DB::Exception: Decimal convert overflow: 10000000000 is not in range (-2147483648, 2147483647): While processing toDecimal32(1000000000, 1). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&, String&&) @ 0x000000000b23a364 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypesDecimal.h:142: void DB::convertDecimalsImpl>, DB::DataTypeDecimal>, void>(DB::DataTypeDecimal>::FieldType const&, unsigned int, unsigned int, DB::DataTypeDecimal>::FieldType&) @ 0x000000000b4c7f54 in /usr/bin/clickhouse 7. /build/src/DataTypes/DataTypesDecimal.h:244: void DB::convertToDecimalImpl, DB::DataTypeDecimal>, void>(DB::DataTypeNumber::FieldType const&, unsigned int, DB::DataTypeDecimal>::FieldType&) @ 0x000000000b4c9f9c in /usr/bin/clickhouse 8. /build/src/DataTypes/DataTypesDecimal.h:254: DB::DataTypeDecimal>::FieldType DB::convertToDecimal, DB::DataTypeDecimal>>(DB::DataTypeNumber::FieldType const&, unsigned int) @ 0x000000000b4c9f3f in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:270: COW::immutable_ptr DB::ConvertImpl, DB::DataTypeDecimal>, DB::NameToDecimal32, DB::ConvertDefaultBehaviorTag>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba46b37 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba43436 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:179: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba30fcb in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 2024.05.01 13:28:18.110361 [ 50483 ] {9c1353fd-1208-4f49-b5ea-7bb62f65c53c} executeQuery: Code: 469. DB::Exception: Constraint `bogus` for table _temporary_and_external_tables.`_tmp_31fcff7e-43b0-4c0e-9b23-6d0a77c4ccaf` (31fcff7e-43b0-4c0e-9b23-6d0a77c4ccaf) is violated at row 1. Expression: (0). Column values: . (VIOLATED_CONSTRAINT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:57422) (comment: 01358_constexpr_constraint.sql) (in query: INSERT INTO constrained VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eb33aba in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eb33700 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:18.111347 [ 50483 ] {9c1353fd-1208-4f49-b5ea-7bb62f65c53c} TCPHandler: Code: 469. DB::Exception: Constraint `bogus` for table _temporary_and_external_tables.`_tmp_31fcff7e-43b0-4c0e-9b23-6d0a77c4ccaf` (31fcff7e-43b0-4c0e-9b23-6d0a77c4ccaf) is violated at row 1. Expression: (0). Column values: . (VIOLATED_CONSTRAINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eb33aba in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eb33700 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:20.920291 [ 50481 ] {f5c25128-5bf1-4363-9e1a-c38d5b01fe17} executeQuery: Code: 524. DB::Exception: ALTER of partition key column x from type Enum8('hello' = 1, 'world' = 2, 'goodbye' = 3) to type Enum8('hello' = 1, 'world' = 2) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45538) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test MODIFY COLUMN x Enum('hello' = 1, 'world' = 2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2c7a8 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:20.921053 [ 50481 ] {f5c25128-5bf1-4363-9e1a-c38d5b01fe17} TCPHandler: Code: 524. DB::Exception: ALTER of partition key column x from type Enum8('hello' = 1, 'world' = 2, 'goodbye' = 3) to type Enum8('hello' = 1, 'world' = 2) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2c7a8 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.010469 [ 50481 ] {3801824a-ee7d-47bb-9651-021430f8c061} executeQuery: Code: 524. DB::Exception: ALTER of partition key column x from type Enum8('hello' = 1, 'world' = 2, 'test' = 3) to type Enum8('hello' = 1, 'world' = 2, 'goodbye' = 4) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45538) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test MODIFY COLUMN x Enum('hello' = 1, 'world' = 2, 'goodbye' = 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2c7a8 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.011115 [ 50481 ] {3801824a-ee7d-47bb-9651-021430f8c061} TCPHandler: Code: 524. DB::Exception: ALTER of partition key column x from type Enum8('hello' = 1, 'world' = 2, 'test' = 3) to type Enum8('hello' = 1, 'world' = 2, 'goodbye' = 4) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2c7a8 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.370859 [ 50481 ] {3e85c88b-ad9b-4ab6-a45f-52b40b12c393} executeQuery: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type Enum8('' = 1) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45538) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test MODIFY COLUMN x Enum8('' = 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2c7a8 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.371852 [ 50481 ] {3e85c88b-ad9b-4ab6-a45f-52b40b12c393} TCPHandler: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type Enum8('' = 1) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2c7a8 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.393389 [ 50481 ] {c48f6d90-66d3-4576-b404-52c7e47d3e2c} executeQuery: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type Enum16('' = 1) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45538) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test MODIFY COLUMN x Enum16('' = 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2c7a8 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.393980 [ 50481 ] {c48f6d90-66d3-4576-b404-52c7e47d3e2c} TCPHandler: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type Enum16('' = 1) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2c7a8 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.413269 [ 50481 ] {4fc90f35-09f4-4fcb-aaa2-e5de21d34a28} executeQuery: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type UInt64 is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45538) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test MODIFY COLUMN x UInt64;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2c7a8 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.413866 [ 50481 ] {4fc90f35-09f4-4fcb-aaa2-e5de21d34a28} TCPHandler: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type UInt64 is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2c7a8 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.433776 [ 50481 ] {d7e68f74-6cee-4347-bb7d-599ca60cc775} executeQuery: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type String is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45538) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test MODIFY COLUMN x String;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2c7a8 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.434383 [ 50481 ] {d7e68f74-6cee-4347-bb7d-599ca60cc775} TCPHandler: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type String is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2c7a8 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.454642 [ 50481 ] {8b63c956-7884-4f53-8552-5539eae21d19} executeQuery: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type Nullable(Int64) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45538) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test MODIFY COLUMN x Nullable(Int64);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2c7a8 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.455231 [ 50481 ] {8b63c956-7884-4f53-8552-5539eae21d19} TCPHandler: Code: 524. DB::Exception: ALTER of partition key column x from type Int8 to type Nullable(Int64) is not safe because it can change the representation of partition key. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3380: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2c7a8 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.563802 [ 50481 ] {3009e85f-dc52-4dcb-9523-ace2f9d2c40d} executeQuery: Code: 524. DB::Exception: Trying to ALTER RENAME key x column which is a part of key expression. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45538) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test RENAME COLUMN x TO z;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3288: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2b716 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.564947 [ 50481 ] {3009e85f-dc52-4dcb-9523-ace2f9d2c40d} TCPHandler: Code: 524. DB::Exception: Trying to ALTER RENAME key x column which is a part of key expression. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3288: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2b716 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.580510 [ 50481 ] {12a2f710-8a6b-428d-9c19-a9adf7ab887b} executeQuery: Code: 524. DB::Exception: Trying to ALTER RENAME key y column which is a part of key expression. (ALTER_OF_COLUMN_IS_FORBIDDEN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45538) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test RENAME COLUMN y TO z;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3288: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2b716 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.581520 [ 50481 ] {12a2f710-8a6b-428d-9c19-a9adf7ab887b} TCPHandler: Code: 524. DB::Exception: Trying to ALTER RENAME key y column which is a part of key expression. (ALTER_OF_COLUMN_IS_FORBIDDEN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3288: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2b716 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.712552 [ 50481 ] {2169e958-038b-4469-8464-403f47833781} executeQuery: Code: 47. DB::Exception: Missing columns: 'x' while processing query: 'x', required columns: 'x' 'x'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45538) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test DROP COLUMN x;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf92678 in /usr/bin/clickhouse 8. /build/src/Storages/KeyDescription.cpp:140: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d5ec1a0 in /usr/bin/clickhouse 9. /build/src/Storages/KeyDescription.cpp:75: DB::KeyDescription::recalculateWithNewAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr) @ 0x000000001d5ebd86 in /usr/bin/clickhouse 10. /build/src/Storages/AlterCommands.cpp:946: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d57bdcf in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de29e2c in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.713415 [ 50481 ] {2169e958-038b-4469-8464-403f47833781} TCPHandler: Code: 47. DB::Exception: Missing columns: 'x' while processing query: 'x', required columns: 'x' 'x'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf92678 in /usr/bin/clickhouse 8. /build/src/Storages/KeyDescription.cpp:140: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d5ec1a0 in /usr/bin/clickhouse 9. /build/src/Storages/KeyDescription.cpp:75: DB::KeyDescription::recalculateWithNewAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr) @ 0x000000001d5ebd86 in /usr/bin/clickhouse 10. /build/src/Storages/AlterCommands.cpp:946: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d57bdcf in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de29e2c in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.833724 [ 50481 ] {1f005d8c-1708-4865-b99b-c6a5f8d10697} executeQuery: Code: 47. DB::Exception: Missing columns: 'y' while processing query: 'y', required columns: 'y' 'y'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45538) (comment: 01346_alter_enum_partition_key_replicated_zookeeper_long.sql) (in query: ALTER TABLE test DROP COLUMN y;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf92678 in /usr/bin/clickhouse 8. /build/src/Storages/KeyDescription.cpp:140: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d5ec1a0 in /usr/bin/clickhouse 9. /build/src/Storages/KeyDescription.cpp:75: DB::KeyDescription::recalculateWithNewAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr) @ 0x000000001d5ebd86 in /usr/bin/clickhouse 10. /build/src/Storages/AlterCommands.cpp:932: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d57bc1d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de29e2c in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:21.834998 [ 50481 ] {1f005d8c-1708-4865-b99b-c6a5f8d10697} TCPHandler: Code: 47. DB::Exception: Missing columns: 'y' while processing query: 'y', required columns: 'y' 'y'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf92678 in /usr/bin/clickhouse 8. /build/src/Storages/KeyDescription.cpp:140: DB::KeyDescription::getSortingKeyFromAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr, std::optional const&) @ 0x000000001d5ec1a0 in /usr/bin/clickhouse 9. /build/src/Storages/KeyDescription.cpp:75: DB::KeyDescription::recalculateWithNewAST(std::shared_ptr const&, DB::ColumnsDescription const&, std::shared_ptr) @ 0x000000001d5ebd86 in /usr/bin/clickhouse 10. /build/src/Storages/AlterCommands.cpp:932: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d57bc1d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de29e2c in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:22.072791 [ 50483 ] {287e8030-eeba-4b0e-b10f-7856bd6a0583} executeQuery: Code: 47. DB::Exception: Unknown qualified identifier: abc: While processing abc.*. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45560) (comment: 01333_select_abc_asterisk.sql) (in query: --error: should be failed for abc.*; select abc.*;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:170: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTQualifiedAsterisk const&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d010979 in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:225: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00f74e in /usr/bin/clickhouse 8. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:112: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00eed9 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cf9e000 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1e1 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cf9de45 in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cf8eb8c in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d086 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:28:22.074030 [ 50483 ] {287e8030-eeba-4b0e-b10f-7856bd6a0583} TCPHandler: Code: 47. DB::Exception: Unknown qualified identifier: abc: While processing abc.*. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:170: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTQualifiedAsterisk const&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d010979 in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:225: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00f74e in /usr/bin/clickhouse 8. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:112: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00eed9 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cf9e000 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1e1 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cf9de45 in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cf8eb8c in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d086 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:28:22.081093 [ 50483 ] {43489951-334d-4612-83e5-ecafd6ae3948} executeQuery: Code: 47. DB::Exception: Unknown qualified identifier: abc: While processing *, abc.*. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45560) (comment: 01333_select_abc_asterisk.sql) (in query: select *, abc.*;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:170: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTQualifiedAsterisk const&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d010979 in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:225: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00f74e in /usr/bin/clickhouse 8. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:112: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00eed9 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cf9e000 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1e1 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cf9de45 in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cf8eb8c in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d086 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:28:22.082687 [ 50483 ] {43489951-334d-4612-83e5-ecafd6ae3948} TCPHandler: Code: 47. DB::Exception: Unknown qualified identifier: abc: While processing *, abc.*. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:170: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTQualifiedAsterisk const&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d010979 in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:225: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00f74e in /usr/bin/clickhouse 8. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:112: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00eed9 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cf9e000 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1e1 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cf9de45 in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cf8eb8c in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d086 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:28:22.089217 [ 50483 ] {b1c5d136-fa34-4e10-86df-ac1ae5b225a5} executeQuery: Code: 47. DB::Exception: Unknown qualified identifier: abc: While processing abc.*, *. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45560) (comment: 01333_select_abc_asterisk.sql) (in query: select abc.*, *;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:170: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTQualifiedAsterisk const&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d010979 in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:225: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00f74e in /usr/bin/clickhouse 8. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:112: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00eed9 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cf9e000 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1e1 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cf9de45 in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cf8eb8c in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d086 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:28:22.090089 [ 50483 ] {b1c5d136-fa34-4e10-86df-ac1ae5b225a5} TCPHandler: Code: 47. DB::Exception: Unknown qualified identifier: abc: While processing abc.*, *. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:170: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTQualifiedAsterisk const&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d010979 in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:225: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00f74e in /usr/bin/clickhouse 8. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:112: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00eed9 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cf9e000 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1e1 in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cf9de45 in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cf8eb8c in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d086 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:28:25.931605 [ 50483 ] {f061de7b-8161-4a03-a403-4f1563beb518} executeQuery: Code: 42. DB::Exception: Incorrect number of arguments for function aes_encrypt_mysql provided 0, expected 3 to 4 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string]): While processing aes_encrypt_mysql(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: --- aes_encrypt_mysql(string, key, block_mode[, init_vector, AAD]) -- The MySQL-compatitable encryption, only ecb, cbc and ofb modes are supported, -- just like for MySQL -- https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html#function_aes-encrypt -- https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_block_encryption_mode -- Please note that for keys that exceed mode-specific length, keys are folded in a MySQL-specific way, -- meaning that whole key is used, but effective key length is still determined by mode. -- when key doesn't exceed the default mode length, ecryption result equals with AES_encypt() ----------------------------------------------------------------------------------------- -- error cases ----------------------------------------------------------------------------------------- SELECT aes_encrypt_mysql();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001abf4a5d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf29a5 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4abdfd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:28:25.932753 [ 50483 ] {f061de7b-8161-4a03-a403-4f1563beb518} TCPHandler: Code: 42. DB::Exception: Incorrect number of arguments for function aes_encrypt_mysql provided 0, expected 3 to 4 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string]): While processing aes_encrypt_mysql(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001abf4a5d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf29a5 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4abdfd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:28:25.942063 [ 50483 ] {d342b0e0-2de3-4679-ba5c-bd15e49da144} executeQuery: Code: 42. DB::Exception: Incorrect number of arguments for function aes_encrypt_mysql provided 1 (String), expected 3 to 4 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string]): While processing aes_encrypt_mysql('aes-128-ecb'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('aes-128-ecb');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001abf4a5d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf29a5 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4abdfd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:28:25.942904 [ 50483 ] {d342b0e0-2de3-4679-ba5c-bd15e49da144} TCPHandler: Code: 42. DB::Exception: Incorrect number of arguments for function aes_encrypt_mysql provided 1 (String), expected 3 to 4 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string]): While processing aes_encrypt_mysql('aes-128-ecb'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001abf4a5d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf29a5 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4abdfd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:28:25.951517 [ 50483 ] {1b94162e-5a46-4d01-84f4-7eb79ebdea71} executeQuery: Code: 42. DB::Exception: Incorrect number of arguments for function aes_encrypt_mysql provided 2 (String, String), expected 3 to 4 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string]): While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001abf4a5d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf29a5 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4abdfd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:28:25.952348 [ 50483 ] {1b94162e-5a46-4d01-84f4-7eb79ebdea71} TCPHandler: Code: 42. DB::Exception: Incorrect number of arguments for function aes_encrypt_mysql provided 2 (String, String), expected 3 to 4 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string]): While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001abf4a5d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf29a5 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4abdfd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:28:26.081196 [ 50483 ] {1865464d-de38-4739-8ab6-c35550bc0df7} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'mode' of function aes_encrypt_mysql, expected encryption mode string, got UInt16: While processing aes_encrypt_mysql(789, '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql(789, '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4abdfd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:26.199412 [ 5964 ] {69df1d4a-0a71-496a-9e21-2c9e746a126b} executeQuery: Code: 43. DB::Exception: Function mapPopulateSeries key argument should be of signed or unsigned integer type. Actual type String: While processing mapPopulateSeries(['1', '2'], [1, 1]) AS res, toTypeName(res). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45656) (comment: 01318_map_populate_series.sql) (in query: select mapPopulateSeries(['1', '2'], [1, 1]) as res, toTypeName(res);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/array/mapPopulateSeries.cpp:52: DB::FunctionMapPopulateSeries::checkTypes(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&) const @ 0x0000000013825a74 in /usr/bin/clickhouse 7. /build/src/Functions/array/mapPopulateSeries.cpp:142: DB::FunctionMapPopulateSeries::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000135ac118 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:26.199452 [ 50483 ] {1865464d-de38-4739-8ab6-c35550bc0df7} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'mode' of function aes_encrypt_mysql, expected encryption mode string, got UInt16: While processing aes_encrypt_mysql(789, '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4abdfd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:26.200378 [ 5964 ] {69df1d4a-0a71-496a-9e21-2c9e746a126b} TCPHandler: Code: 43. DB::Exception: Function mapPopulateSeries key argument should be of signed or unsigned integer type. Actual type String: While processing mapPopulateSeries(['1', '2'], [1, 1]) AS res, toTypeName(res). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/array/mapPopulateSeries.cpp:52: DB::FunctionMapPopulateSeries::checkTypes(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&) const @ 0x0000000013825a74 in /usr/bin/clickhouse 7. /build/src/Functions/array/mapPopulateSeries.cpp:142: DB::FunctionMapPopulateSeries::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000135ac118 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:26.317772 [ 5964 ] {24e7e822-5fc9-4d0e-925e-6c4664825b38} executeQuery: Code: 36. DB::Exception: Function mapPopulateSeries key and value array should have same amount of elements: While processing mapPopulateSeries([1, 2, 3], [1, 1]) AS res, toTypeName(res). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45656) (comment: 01318_map_populate_series.sql) (in query: select mapPopulateSeries([1, 2, 3], [1, 1]) as res, toTypeName(res);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/array/mapPopulateSeries.cpp:342: DB::FunctionMapPopulateSeries::extractKeyAndValueInput(std::vector> const&) const @ 0x00000000135ac8d6 in /usr/bin/clickhouse 7. /build/src/Functions/array/mapPopulateSeries.cpp:450: DB::FunctionMapPopulateSeries::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000135ab6c8 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:28:26.439550 [ 50483 ] {7f56b6d7-3d64-4250-b7b5-ab7d60d83658} executeQuery: Code: 36. DB::Exception: Invalid mode: blah blah blah: While processing aes_encrypt_mysql('blah blah blah', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('blah blah blah', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:187: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4ab42d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:28:26.439564 [ 5964 ] {24e7e822-5fc9-4d0e-925e-6c4664825b38} TCPHandler: Code: 36. DB::Exception: Function mapPopulateSeries key and value array should have same amount of elements: While processing mapPopulateSeries([1, 2, 3], [1, 1]) AS res, toTypeName(res). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/array/mapPopulateSeries.cpp:342: DB::FunctionMapPopulateSeries::extractKeyAndValueInput(std::vector> const&) const @ 0x00000000135ac8d6 in /usr/bin/clickhouse 7. /build/src/Functions/array/mapPopulateSeries.cpp:450: DB::FunctionMapPopulateSeries::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000135ab6c8 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:28:26.440541 [ 50483 ] {7f56b6d7-3d64-4250-b7b5-ab7d60d83658} TCPHandler: Code: 36. DB::Exception: Invalid mode: blah blah blah: While processing aes_encrypt_mysql('blah blah blah', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:187: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4ab42d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:28:26.451248 [ 50483 ] {84be16a4-140f-4424-86ec-8f39b41a2cf4} executeQuery: Code: 36. DB::Exception: Invalid mode: des-ede3-ecb: While processing aes_encrypt_mysql('des-ede3-ecb', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('des-ede3-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:187: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4ab42d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:28:26.452425 [ 5964 ] {da512252-0d81-48ce-9e85-4409e549ad2c} executeQuery: Code: 36. DB::Exception: Function mapPopulateSeries key and value array should have same amount of elements: While processing mapPopulateSeries([1, 2], [1, 1, 1]) AS res, toTypeName(res). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45656) (comment: 01318_map_populate_series.sql) (in query: select mapPopulateSeries([1, 2], [1, 1, 1]) as res, toTypeName(res);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/array/mapPopulateSeries.cpp:342: DB::FunctionMapPopulateSeries::extractKeyAndValueInput(std::vector> const&) const @ 0x00000000135ac8d6 in /usr/bin/clickhouse 7. /build/src/Functions/array/mapPopulateSeries.cpp:450: DB::FunctionMapPopulateSeries::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000135ab6c8 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:28:26.452441 [ 50483 ] {84be16a4-140f-4424-86ec-8f39b41a2cf4} TCPHandler: Code: 36. DB::Exception: Invalid mode: des-ede3-ecb: While processing aes_encrypt_mysql('des-ede3-ecb', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:187: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4ab42d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:28:26.453740 [ 5964 ] {da512252-0d81-48ce-9e85-4409e549ad2c} TCPHandler: Code: 36. DB::Exception: Function mapPopulateSeries key and value array should have same amount of elements: While processing mapPopulateSeries([1, 2], [1, 1, 1]) AS res, toTypeName(res). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/array/mapPopulateSeries.cpp:342: DB::FunctionMapPopulateSeries::extractKeyAndValueInput(std::vector> const&) const @ 0x00000000135ac8d6 in /usr/bin/clickhouse 7. /build/src/Functions/array/mapPopulateSeries.cpp:450: DB::FunctionMapPopulateSeries::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000135ab6c8 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:28:26.575289 [ 50483 ] {41b61e50-7214-4e7d-b543-0462b626482d} executeQuery: Code: 36. DB::Exception: Unsupported cipher mode: While processing aes_encrypt_mysql('aes-128-gcm', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('aes-128-gcm', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [24]) @ 0x000000000c4a9a7e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:121: void OpenSSLDetails::validateCipherMode<(OpenSSLDetails::CompatibilityMode)0>(evp_cipher_st const*) @ 0x000000000c4a995e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:198: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4ab663 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:28:26.576154 [ 50483 ] {41b61e50-7214-4e7d-b543-0462b626482d} TCPHandler: Code: 36. DB::Exception: Unsupported cipher mode: While processing aes_encrypt_mysql('aes-128-gcm', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [24]) @ 0x000000000c4a9a7e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:121: void OpenSSLDetails::validateCipherMode<(OpenSSLDetails::CompatibilityMode)0>(evp_cipher_st const*) @ 0x000000000c4a995e in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:198: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4ab663 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:28:26.702162 [ 50483 ] {fc95d12b-e47d-44ca-bb19-28e338bc7023} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'mode' of function encrypt, expected encryption mode string, got UInt16: While processing encrypt(789, '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT encrypt(789, '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddafbdd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:26.703076 [ 50483 ] {fc95d12b-e47d-44ca-bb19-28e338bc7023} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'mode' of function encrypt, expected encryption mode string, got UInt16: While processing encrypt(789, '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddafbdd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:26.849598 [ 50483 ] {cf45041d-6704-4dcc-b6b5-aba82ec01653} executeQuery: Code: 36. DB::Exception: Invalid mode: blah blah blah: While processing encrypt('blah blah blah', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('blah blah blah', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:187: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddaf04d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:28:26.850774 [ 50483 ] {cf45041d-6704-4dcc-b6b5-aba82ec01653} TCPHandler: Code: 36. DB::Exception: Invalid mode: blah blah blah: While processing encrypt('blah blah blah', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:187: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddaf04d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:28:26.860077 [ 50483 ] {d7f7b940-677d-4b37-8e3a-eda5666523a1} executeQuery: Code: 36. DB::Exception: Invalid mode: des-ede3-ecb: While processing encrypt('des-ede3-ecb', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('des-ede3-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:187: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddaf04d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:28:26.860971 [ 50483 ] {d7f7b940-677d-4b37-8e3a-eda5666523a1} TCPHandler: Code: 36. DB::Exception: Invalid mode: des-ede3-ecb: While processing encrypt('des-ede3-ecb', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:187: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddaf04d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:28:26.869467 [ 50483 ] {065e02e5-61ac-4207-99d1-9872261a094f} executeQuery: Code: 43. DB::Exception: Illegal type of argument #3 'key' of function aes_encrypt_mysql, expected encryption key binary string, got UInt16: While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4abdfd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:26.870250 [ 50483 ] {065e02e5-61ac-4207-99d1-9872261a094f} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #3 'key' of function aes_encrypt_mysql, expected encryption key binary string, got UInt16: While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4abdfd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:26.974155 [ 50483 ] {30191369-a3af-441e-a65f-4efba2a21d65} executeQuery: Code: 36. DB::Exception: Invalid key size: 3 expected 16: While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&) @ 0x000000000c4aa08c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:75: OpenSSLDetails::KeyHolder<(OpenSSLDetails::CipherMode)0>::setKey(unsigned long, StringRef) @ 0x000000000c4a9c6c in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:298: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)0>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000c4ac48f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:236: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000c4ac16c in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:202: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4ab70d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:28:26.975141 [ 50483 ] {30191369-a3af-441e-a65f-4efba2a21d65} TCPHandler: Code: 36. DB::Exception: Invalid key size: 3 expected 16: While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&) @ 0x000000000c4aa08c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:75: OpenSSLDetails::KeyHolder<(OpenSSLDetails::CipherMode)0>::setKey(unsigned long, StringRef) @ 0x000000000c4a9c6c in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:298: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)0>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000c4ac48f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:236: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000c4ac16c in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:202: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4ab70d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:28:27.107352 [ 50483 ] {2a39da5a-ee65-40a6-bff4-08d911b1fc5a} executeQuery: Code: 42. DB::Exception: Incorrect number of arguments for function encrypt provided 2 (String, String), expected 3 to 5 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string, 'AAD' : Additional authenticated data binary string for GCM mode]): While processing encrypt('aes-128-ecb', '[HIDDEN]'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001abf4a5d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf29a5 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddafbdd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:28:27.108492 [ 50483 ] {2a39da5a-ee65-40a6-bff4-08d911b1fc5a} TCPHandler: Code: 42. DB::Exception: Incorrect number of arguments for function encrypt provided 2 (String, String), expected 3 to 5 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string, 'AAD' : Additional authenticated data binary string for GCM mode]): While processing encrypt('aes-128-ecb', '[HIDDEN]'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001abf4a5d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf29a5 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddafbdd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:28:27.118551 [ 50483 ] {f7c00428-53be-4510-8a35-520a570c6937} executeQuery: Code: 43. DB::Exception: Illegal type of argument #3 'key' of function encrypt, expected encryption key binary string, got UInt16: While processing encrypt('aes-128-ecb', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddafbdd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:27.119364 [ 50483 ] {f7c00428-53be-4510-8a35-520a570c6937} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #3 'key' of function encrypt, expected encryption key binary string, got UInt16: While processing encrypt('aes-128-ecb', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddafbdd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:27.226489 [ 50483 ] {8080c3d0-f2b8-46ee-aa47-e460bff783ea} executeQuery: Code: 36. DB::Exception: Invalid key size: 3 expected 16: While processing encrypt('aes-128-ecb', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&) @ 0x000000000c4aa08c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:63: OpenSSLDetails::KeyHolder<(OpenSSLDetails::CipherMode)1>::setKey(unsigned long, StringRef) const @ 0x000000000d9f97e5 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:298: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)1>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddb0ee7 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:0: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddaffd8 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:202: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddaf32d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:28:27.227467 [ 50483 ] {8080c3d0-f2b8-46ee-aa47-e460bff783ea} TCPHandler: Code: 36. DB::Exception: Invalid key size: 3 expected 16: While processing encrypt('aes-128-ecb', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&) @ 0x000000000c4aa08c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:63: OpenSSLDetails::KeyHolder<(OpenSSLDetails::CipherMode)1>::setKey(unsigned long, StringRef) const @ 0x000000000d9f97e5 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:298: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)1>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddb0ee7 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:0: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddaffd8 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:202: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddaf32d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:28:27.236534 [ 50483 ] {f070ca5f-dbca-46eb-9200-803d4c8bc1d8} executeQuery: Code: 36. DB::Exception: Invalid key size: 36 expected 16: While processing encrypt('aes-128-ecb', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&) @ 0x000000000c4aa08c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:63: OpenSSLDetails::KeyHolder<(OpenSSLDetails::CipherMode)1>::setKey(unsigned long, StringRef) const @ 0x000000000d9f97e5 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:298: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)1>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddb0ee7 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:0: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddaffd8 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:202: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddaf32d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:28:27.237370 [ 50483 ] {f070ca5f-dbca-46eb-9200-803d4c8bc1d8} TCPHandler: Code: 36. DB::Exception: Invalid key size: 36 expected 16: While processing encrypt('aes-128-ecb', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&) @ 0x000000000c4aa08c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:63: OpenSSLDetails::KeyHolder<(OpenSSLDetails::CipherMode)1>::setKey(unsigned long, StringRef) const @ 0x000000000d9f97e5 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:298: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)1>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddb0ee7 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:0: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddaffd8 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:202: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddaf32d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:28:27.365437 [ 50483 ] {8ed07c84-2b3b-41bc-991e-a5b510185108} executeQuery: Code: 43. DB::Exception: Illegal type of argument #4 'IV' of function aes_encrypt_mysql, expected Initialization vector binary string, got UInt16: While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:195: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c8a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4abdfd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:27.366427 [ 50483 ] {8ed07c84-2b3b-41bc-991e-a5b510185108} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #4 'IV' of function aes_encrypt_mysql, expected Initialization vector binary string, got UInt16: While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:195: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c8a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4abdfd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:27.478306 [ 50483 ] {304daf4f-84d3-4fe5-a68c-b52c0f0af841} executeQuery: Code: 36. DB::Exception: Invalid key size: 3 expected 16: While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&) @ 0x000000000c4aa08c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:75: OpenSSLDetails::KeyHolder<(OpenSSLDetails::CipherMode)0>::setKey(unsigned long, StringRef) @ 0x000000000c4a9c6c in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:298: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)0>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000c4ac48f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:236: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000c4ac16c in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:211: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4ab878 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:28:27.554123 [ 50483 ] {304daf4f-84d3-4fe5-a68c-b52c0f0af841} TCPHandler: Code: 36. DB::Exception: Invalid key size: 3 expected 16: While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&) @ 0x000000000c4aa08c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:75: OpenSSLDetails::KeyHolder<(OpenSSLDetails::CipherMode)0>::setKey(unsigned long, StringRef) @ 0x000000000c4a9c6c in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:298: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)0>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000c4ac48f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:236: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000c4ac16c in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:211: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c4ab878 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:28:27.554402 [ 1276 ] {d67493f5-87e5-47de-b3c7-1288f1004c7f} executeQuery: Code: 43. DB::Exception: Point's component must not be NaN: While processing arrayMap(a -> arrayMap(b -> arrayMap(c -> (round(c.1, 6), round(c.2, 6)), b), a), polygonsUnionCartesian([[[(2., 100.0000991821289), (0., 3.), (1., 2.9), (2., 2.6), (2.6, 2.), (2.9, 1), (3., 0.), (100.0000991821289, 2.)]]], [[[(1., 1.), (1000.0001220703125, nan), (4., 4.), (4., 1.), (1., 1.)]]])). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45692) (comment: 01305_polygons_union.sql) (in query: SELECT arrayMap(a -> arrayMap(b -> arrayMap(c -> (round(c.1, 6), round(c.2, 6)), b), a), polygonsUnionCartesian([[[(2., 100.0000991821289), (0., 3.), (1., 2.9), (2., 2.6), (2.6, 2.), (2.9, 1), (3., 0.), (100.0000991821289, 2.)]]], [[[(1., 1.), (1000.0001220703125, nan), (4., 4.), (4., 1.), (1., 1.)]]]));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [34]) @ 0x000000000b91685e in /usr/bin/clickhouse 6. /build/src/Functions/geometryConverters.h:76: DB::ColumnToPointsConverter>::convert(COW::immutable_ptr) @ 0x0000000011e10b91 in /usr/bin/clickhouse 7. /build/src/Functions/geometryConverters.h:100: DB::ColumnToRingsConverter>::convert(COW::immutable_ptr) @ 0x0000000011e10547 in /usr/bin/clickhouse 8. /build/src/Functions/geometryConverters.h:120: DB::ColumnToPolygonsConverter>::convert(COW::immutable_ptr) @ 0x0000000011e1376a in /usr/bin/clickhouse 9. /build/src/Functions/geometryConverters.h:155: DB::ColumnToMultiPolygonsConverter>::convert(COW::immutable_ptr) @ 0x0000000011e1648c in /usr/bin/clickhouse 10. /build/src/Functions/polygonsUnion.cpp:81: auto DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConverterType>>>(auto const&, auto const&) const @ 0x0000000012278432 in /usr/bin/clickhouse 11. /build/src/Functions/geometryConverters.h:368: auto auto void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x0000000012236344 in /usr/bin/clickhouse 12. /build/src/Functions/geometryConverters.h:352: void DB::callOnGeometryDataType, auto void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(std::shared_ptr, auto&&) @ 0x00000000122360b5 in /usr/bin/clickhouse 13. /build/src/Functions/geometryConverters.h:364: auto void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x0000000012232aa1 in /usr/bin/clickhouse 14. /build/src/Functions/geometryConverters.h:352: void DB::callOnGeometryDataType, void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&)::'lambda'(auto const&)>(std::shared_ptr, auto&&) @ 0x0000000012232795 in /usr/bin/clickhouse 15. /build/src/Functions/geometryConverters.h:360: void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&) @ 0x00000000122322ca in /usr/bin/clickhouse 16. /build/src/Functions/polygonsUnion.cpp:68: DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001223bb83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 18. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:28:27.556025 [ 1276 ] {d67493f5-87e5-47de-b3c7-1288f1004c7f} TCPHandler: Code: 43. DB::Exception: Point's component must not be NaN: While processing arrayMap(a -> arrayMap(b -> arrayMap(c -> (round(c.1, 6), round(c.2, 6)), b), a), polygonsUnionCartesian([[[(2., 100.0000991821289), (0., 3.), (1., 2.9), (2., 2.6), (2.6, 2.), (2.9, 1), (3., 0.), (100.0000991821289, 2.)]]], [[[(1., 1.), (1000.0001220703125, nan), (4., 4.), (4., 1.), (1., 1.)]]])). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [34]) @ 0x000000000b91685e in /usr/bin/clickhouse 6. /build/src/Functions/geometryConverters.h:76: DB::ColumnToPointsConverter>::convert(COW::immutable_ptr) @ 0x0000000011e10b91 in /usr/bin/clickhouse 7. /build/src/Functions/geometryConverters.h:100: DB::ColumnToRingsConverter>::convert(COW::immutable_ptr) @ 0x0000000011e10547 in /usr/bin/clickhouse 8. /build/src/Functions/geometryConverters.h:120: DB::ColumnToPolygonsConverter>::convert(COW::immutable_ptr) @ 0x0000000011e1376a in /usr/bin/clickhouse 9. /build/src/Functions/geometryConverters.h:155: DB::ColumnToMultiPolygonsConverter>::convert(COW::immutable_ptr) @ 0x0000000011e1648c in /usr/bin/clickhouse 10. /build/src/Functions/polygonsUnion.cpp:81: auto DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConverterType>>>(auto const&, auto const&) const @ 0x0000000012278432 in /usr/bin/clickhouse 11. /build/src/Functions/geometryConverters.h:368: auto auto void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x0000000012236344 in /usr/bin/clickhouse 12. /build/src/Functions/geometryConverters.h:352: void DB::callOnGeometryDataType, auto void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(std::shared_ptr, auto&&) @ 0x00000000122360b5 in /usr/bin/clickhouse 13. /build/src/Functions/geometryConverters.h:364: auto void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x0000000012232aa1 in /usr/bin/clickhouse 14. /build/src/Functions/geometryConverters.h:352: void DB::callOnGeometryDataType, void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&)::'lambda'(auto const&)>(std::shared_ptr, auto&&) @ 0x0000000012232795 in /usr/bin/clickhouse 15. /build/src/Functions/geometryConverters.h:360: void DB::callOnTwoGeometryDataTypes, DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)>(std::shared_ptr, std::shared_ptr, auto&&) @ 0x00000000122322ca in /usr/bin/clickhouse 16. /build/src/Functions/polygonsUnion.cpp:68: DB::FunctionPolygonsUnion>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001223bb83 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 18. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 2024.05.01 13:28:27.682236 [ 50483 ] {33398110-f5ed-42a1-83ca-7186ab5c392a} executeQuery: Code: 43. DB::Exception: Illegal type of argument #4 'IV' of function encrypt, expected Initialization vector binary string, got UInt16: While processing encrypt('aes-128-cbc', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-cbc', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:195: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c8a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddafbdd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:27.683304 [ 50483 ] {33398110-f5ed-42a1-83ca-7186ab5c392a} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #4 'IV' of function encrypt, expected Initialization vector binary string, got UInt16: While processing encrypt('aes-128-cbc', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:195: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c8a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddafbdd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:27.788687 [ 50483 ] {a630d407-39e5-419e-8b11-3669d182e856} executeQuery: Code: 36. DB::Exception: Invalid IV size: 42 expected 16: While processing encrypt('aes-128-cbc', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-cbc', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long const&) @ 0x000000000c4aa28c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:130: void OpenSSLDetails::validateIV<(OpenSSLDetails::CipherMode)1>(StringRef, unsigned long) @ 0x000000000d9f98c8 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:356: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)1>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddb1124 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:0: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddaffd8 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:211: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddaf5fa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:28:27.789611 [ 50483 ] {a630d407-39e5-419e-8b11-3669d182e856} TCPHandler: Code: 36. DB::Exception: Invalid IV size: 42 expected 16: While processing encrypt('aes-128-cbc', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long const&) @ 0x000000000c4aa28c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:130: void OpenSSLDetails::validateIV<(OpenSSLDetails::CipherMode)1>(StringRef, unsigned long) @ 0x000000000d9f98c8 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:356: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)1>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddb1124 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:0: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddaffd8 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:211: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddaf5fa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:28:27.798500 [ 50483 ] {31bb675f-813b-4297-be08-c3b6935cbeb5} executeQuery: Code: 36. DB::Exception: Invalid IV size: 2 expected 16: While processing encrypt('aes-128-cbc', '[HIDDEN]'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-cbc', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long const&) @ 0x000000000c4aa28c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:130: void OpenSSLDetails::validateIV<(OpenSSLDetails::CipherMode)1>(StringRef, unsigned long) @ 0x000000000d9f98c8 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:356: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)1>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddb1124 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:0: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddaffd8 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:211: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddaf5fa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:28:27.799294 [ 50483 ] {31bb675f-813b-4297-be08-c3b6935cbeb5} TCPHandler: Code: 36. DB::Exception: Invalid IV size: 2 expected 16: While processing encrypt('aes-128-cbc', '[HIDDEN]'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long const&) @ 0x000000000c4aa28c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsAES.h:130: void OpenSSLDetails::validateIV<(OpenSSLDetails::CipherMode)1>(StringRef, unsigned long) @ 0x000000000d9f98c8 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:356: COW::immutable_ptr DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncryptImpl<(OpenSSLDetails::CipherMode)1>(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddb1124 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:0: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::doEncrypt(evp_cipher_st const*, unsigned long, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&, COW::immutable_ptr const&) @ 0x000000000ddaffd8 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsAES.h:211: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ddaf5fa in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 11. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:28:27.807878 [ 50483 ] {3d961f1e-a674-4615-844a-e5a532d7a7c0} executeQuery: Code: 42. DB::Exception: Incorrect number of arguments for function aes_encrypt_mysql provided 5 (String, String, String, String, UInt16), expected 3 to 4 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string]): While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001abf4a5d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf29a5 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4abdfd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:28:27.808661 [ 50483 ] {3d961f1e-a674-4615-844a-e5a532d7a7c0} TCPHandler: Code: 42. DB::Exception: Incorrect number of arguments for function aes_encrypt_mysql provided 5 (String, String, String, String, UInt16), expected 3 to 4 ('mode' : encryption mode string, 'input' : plaintext, 'key' : encryption key binary string, ['IV' : Initialization vector binary string]): While processing aes_encrypt_mysql('aes-128-ecb', '[HIDDEN]'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&, unsigned long&&, String&&, String&&, String&&) @ 0x000000001abf4a5d in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:185: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf29a5 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptMySQLModeImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c4abdfd in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:28:27.816786 [ 50483 ] {9dd70969-54e2-4e21-bde9-93b773c90ca9} executeQuery: Code: 43. DB::Exception: Illegal type of argument #5 'AAD' of function encrypt, expected Additional authenticated data binary string for GCM mode, got UInt16: While processing encrypt('aes-128-ecb', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-ecb', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:195: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c8a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddafbdd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:27.817602 [ 50483 ] {9dd70969-54e2-4e21-bde9-93b773c90ca9} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #5 'AAD' of function encrypt, expected Additional authenticated data binary string for GCM mode, got UInt16: While processing encrypt('aes-128-ecb', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:195: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c8a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddafbdd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:27.825438 [ 50483 ] {e2153929-5731-4297-8386-418063d01a86} executeQuery: Code: 43. DB::Exception: Illegal type of argument #5 'AAD' of function encrypt, expected Additional authenticated data binary string for GCM mode, got UInt16: While processing encrypt('aes-128-gcm', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45664) (comment: 01318_encrypt.sql) (in query: SELECT encrypt('aes-128-gcm', '[HIDDEN]')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:195: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c8a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddafbdd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:27.826251 [ 50483 ] {e2153929-5731-4297-8386-418063d01a86} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #5 'AAD' of function encrypt, expected Additional authenticated data binary string for GCM mode, got UInt16: While processing encrypt('aes-128-gcm', '[HIDDEN]'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:195: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c8a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsAES.h:168: DB::FunctionEncrypt<(anonymous namespace)::EncryptImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000ddafbdd in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:30.759532 [ 5964 ] {f3b6dd19-b891-4026-ac5d-970d7bebbfb1} executeQuery: Code: 427. DB::Exception: OptimizedRegularExpression: cannot compile re2: \He\l\l\o, error: invalid escape sequence: \H. Look at https://github.com/google/re2/wiki/Syntax for reference. Please note that if you specify regex as an SQL string literal, the slashes have to be additionally escaped. For example, to match an opening brace, write '\(' -- the first slash is for SQL and the second one is for regex: While processing match('Hello', '\\He\\l\\l\\o'). (CANNOT_COMPILE_REGEXP) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34548) (comment: 01284_escape_sequences_php_mysql_style.sql) (in query: SELECT match('Hello', '\He\l\l\o');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String const&) @ 0x000000000ba1586c in /usr/bin/clickhouse 6. /build/src/Common/OptimizedRegularExpression.cpp:503: OptimizedRegularExpressionImpl::OptimizedRegularExpressionImpl(String const&, int) @ 0x0000000013900d84 in /usr/bin/clickhouse 7. /build/src/Functions/Regexps.h:57: OptimizedRegularExpressionImpl DB::Regexps::createRegexp(String const&) @ 0x000000000d9368d3 in /usr/bin/clickhouse 8. /build/src/Functions/Regexps.h:77: std::shared_ptr> DB::Regexps::LocalCacheTable::getOrSet(String const&) @ 0x0000000010320e43 in /usr/bin/clickhouse 9. /build/src/Functions/MatchImpl.h:516: DB::MatchImpl::vectorVector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, COW::immutable_ptr const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector*) @ 0x000000001031e940 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsStringSearch.h:190: DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001031d95e in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 2024.05.01 13:28:30.760515 [ 5964 ] {f3b6dd19-b891-4026-ac5d-970d7bebbfb1} TCPHandler: Code: 427. DB::Exception: OptimizedRegularExpression: cannot compile re2: \He\l\l\o, error: invalid escape sequence: \H. Look at https://github.com/google/re2/wiki/Syntax for reference. Please note that if you specify regex as an SQL string literal, the slashes have to be additionally escaped. For example, to match an opening brace, write '\(' -- the first slash is for SQL and the second one is for regex: While processing match('Hello', '\\He\\l\\l\\o'). (CANNOT_COMPILE_REGEXP), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String const&) @ 0x000000000ba1586c in /usr/bin/clickhouse 6. /build/src/Common/OptimizedRegularExpression.cpp:503: OptimizedRegularExpressionImpl::OptimizedRegularExpressionImpl(String const&, int) @ 0x0000000013900d84 in /usr/bin/clickhouse 7. /build/src/Functions/Regexps.h:57: OptimizedRegularExpressionImpl DB::Regexps::createRegexp(String const&) @ 0x000000000d9368d3 in /usr/bin/clickhouse 8. /build/src/Functions/Regexps.h:77: std::shared_ptr> DB::Regexps::LocalCacheTable::getOrSet(String const&) @ 0x0000000010320e43 in /usr/bin/clickhouse 9. /build/src/Functions/MatchImpl.h:516: DB::MatchImpl::vectorVector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, COW::immutable_ptr const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector*) @ 0x000000001031e940 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsStringSearch.h:190: DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001031d95e in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 2024.05.01 13:28:30.768560 [ 5964 ] {bf7d66ec-afe2-4b79-aa39-69d6b9608788} executeQuery: Code: 427. DB::Exception: OptimizedRegularExpression: cannot compile re2: \H\l\l\o, error: invalid escape sequence: \H. Look at https://github.com/google/re2/wiki/Syntax for reference. Please note that if you specify regex as an SQL string literal, the slashes have to be additionally escaped. For example, to match an opening brace, write '\(' -- the first slash is for SQL and the second one is for regex: While processing match('Hello', '\\H\\l\\l\\o'). (CANNOT_COMPILE_REGEXP) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34548) (comment: 01284_escape_sequences_php_mysql_style.sql) (in query: SELECT match('Hello', '\H\e\l\l\o');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String const&) @ 0x000000000ba1586c in /usr/bin/clickhouse 6. /build/src/Common/OptimizedRegularExpression.cpp:503: OptimizedRegularExpressionImpl::OptimizedRegularExpressionImpl(String const&, int) @ 0x0000000013900d84 in /usr/bin/clickhouse 7. /build/src/Functions/Regexps.h:57: OptimizedRegularExpressionImpl DB::Regexps::createRegexp(String const&) @ 0x000000000d9368d3 in /usr/bin/clickhouse 8. /build/src/Functions/Regexps.h:77: std::shared_ptr> DB::Regexps::LocalCacheTable::getOrSet(String const&) @ 0x0000000010320e43 in /usr/bin/clickhouse 9. /build/src/Functions/MatchImpl.h:516: DB::MatchImpl::vectorVector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, COW::immutable_ptr const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector*) @ 0x000000001031e940 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsStringSearch.h:190: DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001031d95e in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 2024.05.01 13:28:30.769425 [ 5964 ] {bf7d66ec-afe2-4b79-aa39-69d6b9608788} TCPHandler: Code: 427. DB::Exception: OptimizedRegularExpression: cannot compile re2: \H\l\l\o, error: invalid escape sequence: \H. Look at https://github.com/google/re2/wiki/Syntax for reference. Please note that if you specify regex as an SQL string literal, the slashes have to be additionally escaped. For example, to match an opening brace, write '\(' -- the first slash is for SQL and the second one is for regex: While processing match('Hello', '\\H\\l\\l\\o'). (CANNOT_COMPILE_REGEXP), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String const&) @ 0x000000000ba1586c in /usr/bin/clickhouse 6. /build/src/Common/OptimizedRegularExpression.cpp:503: OptimizedRegularExpressionImpl::OptimizedRegularExpressionImpl(String const&, int) @ 0x0000000013900d84 in /usr/bin/clickhouse 7. /build/src/Functions/Regexps.h:57: OptimizedRegularExpressionImpl DB::Regexps::createRegexp(String const&) @ 0x000000000d9368d3 in /usr/bin/clickhouse 8. /build/src/Functions/Regexps.h:77: std::shared_ptr> DB::Regexps::LocalCacheTable::getOrSet(String const&) @ 0x0000000010320e43 in /usr/bin/clickhouse 9. /build/src/Functions/MatchImpl.h:516: DB::MatchImpl::vectorVector(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul> const&, COW::immutable_ptr const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector*) @ 0x000000001031e940 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsStringSearch.h:190: DB::FunctionsStringSearch, (DB::ExecutionErrorPolicy)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001031d95e in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 2024.05.01 13:28:38.406672 [ 1080 ] {24dfaa62-c3be-485e-b6a0-fd6d1c4ba498} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_lkmuk048.testXB (f38be1b0-4051-4005-941f-7f77f9ee302f). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34710) (comment: 01275_parallel_mv.gen.sql) (in query: insert into testX select number from numbers(10) settings log_queries=1, parallel_view_processing=0, optimize_trivial_insert_select=0, max_insert_threads=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ec7b9e3 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001eb60161 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60135 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60115 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb600f5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb600bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f302 in /usr/bin/clickhouse 2024.05.01 13:28:38.411792 [ 1080 ] {24dfaa62-c3be-485e-b6a0-fd6d1c4ba498} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_lkmuk048.testXB (f38be1b0-4051-4005-941f-7f77f9ee302f). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ec7b9e3 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001eb60161 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60135 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60115 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb600f5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb600bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f302 in /usr/bin/clickhouse 2024.05.01 13:28:43.114582 [ 1080 ] {6b00deb8-cf73-4831-ad34-e9d5a2a38e38} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_lkmuk048.testXB (f38be1b0-4051-4005-941f-7f77f9ee302f). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34710) (comment: 01275_parallel_mv.gen.sql) (in query: insert into testX select number from numbers(10) settings log_queries=1, parallel_view_processing=0, optimize_trivial_insert_select=0, max_insert_threads=16;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ec7b9e3 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001eb60161 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60135 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60115 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb600f5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb600bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f302 in /usr/bin/clickhouse 2024.05.01 13:28:43.117896 [ 1080 ] {6b00deb8-cf73-4831-ad34-e9d5a2a38e38} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_lkmuk048.testXB (f38be1b0-4051-4005-941f-7f77f9ee302f). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ec7b9e3 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001eb60161 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60135 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60115 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb600f5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb600bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f302 in /usr/bin/clickhouse 2024.05.01 13:28:47.337930 [ 1080 ] {37a1f2e6-0a7e-4889-ab24-cfa71b9538c9} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_lkmuk048.testXB (f38be1b0-4051-4005-941f-7f77f9ee302f). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34710) (comment: 01275_parallel_mv.gen.sql) (in query: insert into testX select number from numbers(10) settings log_queries=1, parallel_view_processing=0, optimize_trivial_insert_select=1, max_insert_threads=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ec7b9e3 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001eb60161 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60135 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60115 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb600f5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb600bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f302 in /usr/bin/clickhouse 2024.05.01 13:28:47.342850 [ 1080 ] {37a1f2e6-0a7e-4889-ab24-cfa71b9538c9} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_lkmuk048.testXB (f38be1b0-4051-4005-941f-7f77f9ee302f). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ec7b9e3 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001eb60161 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60135 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60115 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb600f5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb600bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f302 in /usr/bin/clickhouse 2024.05.01 13:28:51.526595 [ 1080 ] {f3f235db-221e-4e91-b5a8-791e26237e98} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_lkmuk048.testXB (f38be1b0-4051-4005-941f-7f77f9ee302f). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34710) (comment: 01275_parallel_mv.gen.sql) (in query: insert into testX select number from numbers(10) settings log_queries=1, parallel_view_processing=0, optimize_trivial_insert_select=1, max_insert_threads=16;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ec7b9e3 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001eb60161 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60135 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60115 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb600f5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb600bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f302 in /usr/bin/clickhouse 2024.05.01 13:28:51.530044 [ 1080 ] {f3f235db-221e-4e91-b5a8-791e26237e98} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_lkmuk048.testXB (f38be1b0-4051-4005-941f-7f77f9ee302f). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ec7b9e3 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001eb60161 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60135 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60115 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb600f5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb600bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f302 in /usr/bin/clickhouse 2024.05.01 13:28:55.382388 [ 1080 ] {b54ccaf3-18fe-46d3-9bed-20b98403bf59} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_lkmuk048.testXB (f38be1b0-4051-4005-941f-7f77f9ee302f). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34710) (comment: 01275_parallel_mv.gen.sql) (in query: insert into testX select number from numbers(10) settings log_queries=1, parallel_view_processing=1, optimize_trivial_insert_select=0, max_insert_threads=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ec7b9e3 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001eb60161 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60135 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60115 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb600f5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb600bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f302 in /usr/bin/clickhouse 2024.05.01 13:28:55.387609 [ 1080 ] {b54ccaf3-18fe-46d3-9bed-20b98403bf59} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_lkmuk048.testXB (f38be1b0-4051-4005-941f-7f77f9ee302f). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ec7b9e3 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001eb60161 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60135 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60115 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb600f5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb600bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f302 in /usr/bin/clickhouse 2024.05.01 13:28:56.172402 [ 50481 ] {1a71b862-5477-4c45-8310-ca38214a727b} executeQuery: Code: 69. DB::Exception: Scale 10 is too large for DateTime64. Maximum is up to nanoseconds (9).: While processing now64(10). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35978) (comment: 01259_datetime64_ubsan.sql) (in query: select now64(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeDateTime64.cpp:25: DB::DataTypeDateTime64::DataTypeDateTime64(unsigned int, String const&) @ 0x000000001b8a60bd in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeDateTime64* std::construct_at[abi:v15000](DB::DataTypeDateTime64*, unsigned int&, String&) @ 0x00000000118e24ec in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::DataTypeDateTime64*, unsigned int&, String&) @ 0x00000000118e2469 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, unsigned int&, String&) @ 0x00000000118e23ef in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], unsigned int&, String&, void>(std::allocator const&, unsigned int&, String&) @ 0x00000000118e2302 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](unsigned int&, String&) @ 0x00000000118e228e in /usr/bin/clickhouse 12. /build/src/Functions/now64.cpp:147: DB::(anonymous namespace)::Now64OverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118dffc1 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:28:56.173234 [ 50481 ] {1a71b862-5477-4c45-8310-ca38214a727b} TCPHandler: Code: 69. DB::Exception: Scale 10 is too large for DateTime64. Maximum is up to nanoseconds (9).: While processing now64(10). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeDateTime64.cpp:25: DB::DataTypeDateTime64::DataTypeDateTime64(unsigned int, String const&) @ 0x000000001b8a60bd in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::DataTypeDateTime64* std::construct_at[abi:v15000](DB::DataTypeDateTime64*, unsigned int&, String&) @ 0x00000000118e24ec in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::DataTypeDateTime64*, unsigned int&, String&) @ 0x00000000118e2469 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, unsigned int&, String&) @ 0x00000000118e23ef in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], unsigned int&, String&, void>(std::allocator const&, unsigned int&, String&) @ 0x00000000118e2302 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](unsigned int&, String&) @ 0x00000000118e228e in /usr/bin/clickhouse 12. /build/src/Functions/now64.cpp:147: DB::(anonymous namespace)::Now64OverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118dffc1 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:28:57.893448 [ 12030 ] {9e65e414-890a-411e-a8d9-fcbdc0eb52b3} executeQuery: Code: 137. DB::Exception: Unknown dictionary layout type: iptrie. (UNKNOWN_ELEMENT_IN_CONFIG) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36022) (comment: 01256_misspell_layout_name_podshumok.sql) (in query: CREATE DICTIONARY testip ( `network` String, `test_field` String ) PRIMARY KEY network SOURCE(FILE(PATH '/tmp/test.csv' FORMAT CSVWithNames)) LIFETIME(MIN 0 MAX 300) LAYOUT(IPTRIE());), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Dictionaries/DictionaryFactory.cpp:84: DB::DictionaryFactory::isComplex(String const&) const @ 0x000000001abca1e6 in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:611: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abd90a9 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d63d030 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63cd1d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63ccbd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d63cc7d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d63cc45 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:57.894351 [ 12030 ] {9e65e414-890a-411e-a8d9-fcbdc0eb52b3} TCPHandler: Code: 137. DB::Exception: Unknown dictionary layout type: iptrie. (UNKNOWN_ELEMENT_IN_CONFIG), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Dictionaries/DictionaryFactory.cpp:84: DB::DictionaryFactory::isComplex(String const&) const @ 0x000000001abca1e6 in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:611: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abd90a9 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d63d030 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63cd1d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63ccbd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d63cc7d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d63cc45 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:28:58.193219 [ 12030 ] {0611c340-9b8e-48ae-adf8-3cbe1cf6d162} executeQuery: Code: 42. DB::Exception: Number of arguments for function extractAllGroupsVertical doesn't match: passed 0, should be 2: While processing extractAllGroupsVertical(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36038) (comment: 01246_extractAllGroupsVertical.sql) (in query: -- error cases SELECT extractAllGroupsVertical();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:28:58.194158 [ 12030 ] {0611c340-9b8e-48ae-adf8-3cbe1cf6d162} TCPHandler: Code: 42. DB::Exception: Number of arguments for function extractAllGroupsVertical doesn't match: passed 0, should be 2: While processing extractAllGroupsVertical(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:28:58.202736 [ 12030 ] {2e56c156-a038-4b66-a35b-dc2a16256ff6} executeQuery: Code: 42. DB::Exception: Number of arguments for function extractAllGroupsVertical doesn't match: passed 1, should be 2: While processing extractAllGroupsVertical('hello'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36038) (comment: 01246_extractAllGroupsVertical.sql) (in query: SELECT extractAllGroupsVertical('hello');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:28:58.203668 [ 12030 ] {2e56c156-a038-4b66-a35b-dc2a16256ff6} TCPHandler: Code: 42. DB::Exception: Number of arguments for function extractAllGroupsVertical doesn't match: passed 1, should be 2: While processing extractAllGroupsVertical('hello'). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:28:58.349972 [ 12030 ] {e305e1bb-6d5d-4013-a536-11e930c08da1} executeQuery: Code: 43. DB::Exception: Illegal type of argument #2 'needle' of function extractAllGroupsVertical, expected const String or const FixedString, got UInt8: While processing extractAllGroupsVertical('hello', 123). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36038) (comment: 01246_extractAllGroupsVertical.sql) (in query: SELECT extractAllGroupsVertical('hello', 123);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/extractAllGroups.h:77: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e1b8a02 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:58.351164 [ 12030 ] {e305e1bb-6d5d-4013-a536-11e930c08da1} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #2 'needle' of function extractAllGroupsVertical, expected const String or const FixedString, got UInt8: While processing extractAllGroupsVertical('hello', 123). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/extractAllGroups.h:77: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e1b8a02 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:58.360617 [ 12030 ] {2b1592b9-295a-47da-a696-d4230ed00a54} executeQuery: Code: 43. DB::Exception: Illegal type of argument #1 'haystack' of function extractAllGroupsVertical, expected const String or const FixedString, got UInt8: While processing extractAllGroupsVertical(123, 'world'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36038) (comment: 01246_extractAllGroupsVertical.sql) (in query: SELECT extractAllGroupsVertical(123, 'world');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/extractAllGroups.h:77: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e1b8a02 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:58.361643 [ 12030 ] {2b1592b9-295a-47da-a696-d4230ed00a54} TCPHandler: Code: 43. DB::Exception: Illegal type of argument #1 'haystack' of function extractAllGroupsVertical, expected const String or const FixedString, got UInt8: While processing extractAllGroupsVertical(123, 'world'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/extractAllGroups.h:77: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e1b8a02 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:58.496056 [ 12030 ] {b9cf2180-e7c7-450e-96f3-fbca5603ea2b} executeQuery: Code: 427. DB::Exception: OptimizedRegularExpression: cannot compile re2: (((, error: missing ): (((. Look at https://github.com/google/re2/wiki/Syntax for reference. Please note that if you specify regex as an SQL string literal, the slashes have to be additionally escaped. For example, to match an opening brace, write '\(' -- the first slash is for SQL and the second one is for regex: While processing extractAllGroupsVertical('hello world', '((('). (CANNOT_COMPILE_REGEXP) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36038) (comment: 01246_extractAllGroupsVertical.sql) (in query: SELECT extractAllGroupsVertical('hello world', '(((');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String const&) @ 0x000000000ba1586c in /usr/bin/clickhouse 6. /build/src/Common/OptimizedRegularExpression.cpp:503: OptimizedRegularExpressionImpl::OptimizedRegularExpressionImpl(String const&, int) @ 0x0000000013900d84 in /usr/bin/clickhouse 7. /build/src/Functions/Regexps.h:57: OptimizedRegularExpressionImpl DB::Regexps::createRegexp(String const&) @ 0x000000000c3348ca in /usr/bin/clickhouse 8. /build/src/Functions/extractAllGroups.h:95: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1b7de6 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 2024.05.01 13:28:58.496921 [ 12030 ] {b9cf2180-e7c7-450e-96f3-fbca5603ea2b} TCPHandler: Code: 427. DB::Exception: OptimizedRegularExpression: cannot compile re2: (((, error: missing ): (((. Look at https://github.com/google/re2/wiki/Syntax for reference. Please note that if you specify regex as an SQL string literal, the slashes have to be additionally escaped. For example, to match an opening brace, write '\(' -- the first slash is for SQL and the second one is for regex: While processing extractAllGroupsVertical('hello world', '((('). (CANNOT_COMPILE_REGEXP), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String const&) @ 0x000000000ba1586c in /usr/bin/clickhouse 6. /build/src/Common/OptimizedRegularExpression.cpp:503: OptimizedRegularExpressionImpl::OptimizedRegularExpressionImpl(String const&, int) @ 0x0000000013900d84 in /usr/bin/clickhouse 7. /build/src/Functions/Regexps.h:57: OptimizedRegularExpressionImpl DB::Regexps::createRegexp(String const&) @ 0x000000000c3348ca in /usr/bin/clickhouse 8. /build/src/Functions/extractAllGroups.h:95: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1b7de6 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 2024.05.01 13:28:58.508876 [ 12030 ] {d7a9eeac-36a0-4a5c-8df6-7995b697d928} executeQuery: Code: 44. DB::Exception: Illegal type of argument #2 'needle' of function extractAllGroupsVertical, expected const String or const FixedString, got String: While processing extractAllGroupsVertical('hello world', materialize('\\w+')). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36038) (comment: 01246_extractAllGroupsVertical.sql) (in query: SELECT extractAllGroupsVertical('hello world', materialize('\\w+'));), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/extractAllGroups.h:77: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e1b8a02 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:58.509997 [ 12030 ] {d7a9eeac-36a0-4a5c-8df6-7995b697d928} TCPHandler: Code: 44. DB::Exception: Illegal type of argument #2 'needle' of function extractAllGroupsVertical, expected const String or const FixedString, got String: While processing extractAllGroupsVertical('hello world', materialize('\\w+')). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned long&&, String&&, String&&, String&&, String&&) @ 0x000000001abf523a in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:130: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000001abf34be in /usr/bin/clickhouse 7. /build/src/Functions/FunctionHelpers.cpp:193: DB::validateFunctionArgumentTypes(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000001abf2c40 in /usr/bin/clickhouse 8. /build/src/Functions/extractAllGroups.h:77: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e1b8a02 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:28:58.633085 [ 12030 ] {c1b305e9-be93-4379-bc5f-7a1b7ac54766} executeQuery: Code: 36. DB::Exception: There are no groups in regexp: \w+: While processing extractAllGroupsVertical('hello world', '\\w+'). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36038) (comment: 01246_extractAllGroupsVertical.sql) (in query: SELECT extractAllGroupsVertical('hello world', '\\w+');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractAllGroups.h:104: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1b7f92 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:28:58.634163 [ 12030 ] {c1b305e9-be93-4379-bc5f-7a1b7ac54766} TCPHandler: Code: 36. DB::Exception: There are no groups in regexp: \w+: While processing extractAllGroupsVertical('hello world', '\\w+'). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractAllGroups.h:104: DB::FunctionExtractAllGroups<(anonymous namespace)::VerticalImpl>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1b7f92 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:28:59.534215 [ 1080 ] {9db6d948-06f2-40ae-b239-b765494cec59} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_lkmuk048.testXB (f38be1b0-4051-4005-941f-7f77f9ee302f). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34710) (comment: 01275_parallel_mv.gen.sql) (in query: insert into testX select number from numbers(10) settings log_queries=1, parallel_view_processing=1, optimize_trivial_insert_select=0, max_insert_threads=16;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ec7b9e3 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001eb60161 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60135 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60115 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb600f5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb600bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f302 in /usr/bin/clickhouse 2024.05.01 13:28:59.539689 [ 1080 ] {9db6d948-06f2-40ae-b239-b765494cec59} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_lkmuk048.testXB (f38be1b0-4051-4005-941f-7f77f9ee302f). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ec7b9e3 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001eb60161 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60135 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60115 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb600f5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb600bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f302 in /usr/bin/clickhouse 2024.05.01 13:29:03.740665 [ 1080 ] {0e3a52e7-b67e-4789-b265-9b71160ab823} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_lkmuk048.testXB (f38be1b0-4051-4005-941f-7f77f9ee302f). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34710) (comment: 01275_parallel_mv.gen.sql) (in query: insert into testX select number from numbers(10) settings log_queries=1, parallel_view_processing=1, optimize_trivial_insert_select=1, max_insert_threads=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ec7b9e3 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001eb60161 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60135 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60115 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb600f5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb600bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f302 in /usr/bin/clickhouse 2024.05.01 13:29:03.744216 [ 1080 ] {0e3a52e7-b67e-4789-b265-9b71160ab823} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_lkmuk048.testXB (f38be1b0-4051-4005-941f-7f77f9ee302f). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ec7b9e3 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001eb60161 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60135 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60115 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb600f5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb600bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f302 in /usr/bin/clickhouse 2024.05.01 13:29:06.915457 [ 5967 ] {1eab49ec-0dc7-4783-8203-164b130bf20e} executeQuery: Code: 507. DB::Exception: Sharding key key is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34276) (comment: 01211_optimize_skip_unused_shards_type_mismatch.sql) (in query: select * from dist_02000 where key = 0xdeadbeafdeadbeaf settings force_optimize_skip_unused_shards=2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:06.916468 [ 5967 ] {1eab49ec-0dc7-4783-8203-164b130bf20e} TCPHandler: Code: 507. DB::Exception: Sharding key key is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:08.066124 [ 1080 ] {305fc4c0-54ba-4fdb-9473-07dc6185aa1a} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_lkmuk048.testXB (f38be1b0-4051-4005-941f-7f77f9ee302f). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34710) (comment: 01275_parallel_mv.gen.sql) (in query: insert into testX select number from numbers(10) settings log_queries=1, parallel_view_processing=1, optimize_trivial_insert_select=1, max_insert_threads=16;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ec7b9e3 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001eb60161 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60135 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60115 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb600f5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb600bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f302 in /usr/bin/clickhouse 2024.05.01 13:29:08.071120 [ 1080 ] {305fc4c0-54ba-4fdb-9473-07dc6185aa1a} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(equals(A, 1) :: 1) -> throwIf(equals(A, 1)) UInt8 : 2': while pushing to view test_lkmuk048.testXB (f38be1b0-4051-4005-941f-7f77f9ee302f). (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:634: DB::ExecutingInnerQueryFromViewTransform::onGenerate() @ 0x000000001ec7b9e3 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work()::$_2::operator()() const @ 0x000000001eb60161 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60135 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_2&) @ 0x000000001eb60115 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb600f5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb600bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 31. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:164: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f302 in /usr/bin/clickhouse 2024.05.01 13:29:08.783366 [ 5967 ] {dd99cebd-983e-4f46-8c0e-419fd361269a} executeQuery: Code: 43. DB::Exception: arrayAUC cannot process values of type Nothing: While processing arrayAUC([], []). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39590) (comment: 01202_array_auc_special.sql) (in query: SELECT arrayAUC([], []);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:162: DB::FunctionArrayAUC::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001293adce in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:29:08.784473 [ 5967 ] {dd99cebd-983e-4f46-8c0e-419fd361269a} TCPHandler: Code: 43. DB::Exception: arrayAUC cannot process values of type Nothing: While processing arrayAUC([], []). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:162: DB::FunctionArrayAUC::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001293adce in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:29:08.962860 [ 5967 ] {457904fd-9de7-4f75-a766-56700ec1d4dc} executeQuery: Code: 43. DB::Exception: arrayAUC cannot process values of type Nothing: While processing arrayAUC([1], []). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39590) (comment: 01202_array_auc_special.sql) (in query: SELECT arrayAUC([1], []);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:162: DB::FunctionArrayAUC::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001293adce in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:29:08.963694 [ 5967 ] {457904fd-9de7-4f75-a766-56700ec1d4dc} TCPHandler: Code: 43. DB::Exception: arrayAUC cannot process values of type Nothing: While processing arrayAUC([1], []). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:162: DB::FunctionArrayAUC::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001293adce in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:29:08.970616 [ 5967 ] {a45b8b55-1108-48eb-9615-3b9d47bb94d9} executeQuery: Code: 43. DB::Exception: arrayAUC cannot process values of type Nothing: While processing arrayAUC([], [1]). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39590) (comment: 01202_array_auc_special.sql) (in query: SELECT arrayAUC([], [1]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:162: DB::FunctionArrayAUC::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001293adce in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:29:08.971369 [ 5967 ] {a45b8b55-1108-48eb-9615-3b9d47bb94d9} TCPHandler: Code: 43. DB::Exception: arrayAUC cannot process values of type Nothing: While processing arrayAUC([], [1]). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:162: DB::FunctionArrayAUC::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001293adce in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:29:09.087578 [ 5967 ] {8fe4757c-5527-4998-aa0d-22d4bf11310b} executeQuery: Code: 36. DB::Exception: Array arguments for function arrayAUC must have equal sizes: While processing arrayAUC([1, 2], [3]). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39590) (comment: 01202_array_auc_special.sql) (in query: SELECT arrayAUC([1, 2], [3]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:185: DB::FunctionArrayAUC::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001293a94c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:29:09.088555 [ 5967 ] {8fe4757c-5527-4998-aa0d-22d4bf11310b} TCPHandler: Code: 36. DB::Exception: Array arguments for function arrayAUC must have equal sizes: While processing arrayAUC([1, 2], [3]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:185: DB::FunctionArrayAUC::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001293a94c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:29:09.096502 [ 5967 ] {5226142e-507b-471c-a2c6-21e812dc0b19} executeQuery: Code: 36. DB::Exception: Array arguments for function arrayAUC must have equal sizes: While processing arrayAUC([1], [2, 3]). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39590) (comment: 01202_array_auc_special.sql) (in query: SELECT arrayAUC([1], [2, 3]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:185: DB::FunctionArrayAUC::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001293a94c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:29:09.097310 [ 5967 ] {5226142e-507b-471c-a2c6-21e812dc0b19} TCPHandler: Code: 36. DB::Exception: Array arguments for function arrayAUC must have equal sizes: While processing arrayAUC([1], [2, 3]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayAUC.cpp:185: DB::FunctionArrayAUC::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001293a94c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:29:11.590284 [ 50700 ] {6d8f7065-5000-4c02-8571-946d4da54bbd} executeQuery: Code: 36. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): arrayJoin([1, 2]). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39612) (comment: 01165_lost_part_empty_partition.sql) (in query: insert into rmt1(n) select * from system.numbers limit arrayJoin([1, 2]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Interpreters/evaluateConstantExpression.cpp:93: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001d07b794 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1227: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab6dcf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 13. /build/src/Interpreters/IInterpreterUnionOrSelectQuery.cpp:26: DB::IInterpreterUnionOrSelectQuery::buildQueryPipeline(DB::QueryPlan&) @ 0x000000001ca7c100 in /usr/bin/clickhouse 14. /build/src/Interpreters/IInterpreterUnionOrSelectQuery.cpp:21: DB::IInterpreterUnionOrSelectQuery::buildQueryPipeline() @ 0x000000001ca7c05c in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterInsertQuery.cpp:471: DB::InterpreterInsertQuery::execute() @ 0x000000001ca75a34 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:11.591192 [ 50700 ] {6d8f7065-5000-4c02-8571-946d4da54bbd} TCPHandler: Code: 36. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): arrayJoin([1, 2]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Interpreters/evaluateConstantExpression.cpp:93: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001d07b794 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1227: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab6dcf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 13. /build/src/Interpreters/IInterpreterUnionOrSelectQuery.cpp:26: DB::IInterpreterUnionOrSelectQuery::buildQueryPipeline(DB::QueryPlan&) @ 0x000000001ca7c100 in /usr/bin/clickhouse 14. /build/src/Interpreters/IInterpreterUnionOrSelectQuery.cpp:21: DB::IInterpreterUnionOrSelectQuery::buildQueryPipeline() @ 0x000000001ca7c05c in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterInsertQuery.cpp:471: DB::InterpreterInsertQuery::execute() @ 0x000000001ca75a34 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:11.716532 [ 675 ] {} InterserverIOHTTPHandler: Code: 221. DB::Exception: No interserver IO endpoint named DataPartsExchange:default:/test/01165/test_3gaeuuie/rmt/replicas/1. (NO_SUCH_INTERSERVER_IO_ENDPOINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterserverIOHandler.h:80: DB::InterserverIOHandler::getEndpoint(String const&) const @ 0x000000001e584052 in /usr/bin/clickhouse 7. /build/src/Server/InterserverIOHTTPHandler.cpp:62: DB::InterserverIOHTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::InterserverIOHTTPHandler::Output&) @ 0x000000001e581c98 in /usr/bin/clickhouse 8. /build/src/Server/InterserverIOHTTPHandler.cpp:120: DB::InterserverIOHTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e58232e in /usr/bin/clickhouse 9. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 15. ? @ 0x00007fcde32fbac3 in ? 16. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:29:11.718221 [ 940 ] {} test_3gaeuuie.rmt2 (f82178db-9f48-4f66-8ecb-e86001961e97): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F01165%2Ftest_3gaeuuie%2Frmt%2Freplicas%2F1&part=20240501_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 221. DB::Exception: No interserver IO endpoint named DataPartsExchange:default:/test/01165/test_3gaeuuie/rmt/replicas/1. (NO_SUCH_INTERSERVER_IO_ENDPOINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterserverIOHandler.h:80: DB::InterserverIOHandler::getEndpoint(String const&) const @ 0x000000001e584052 in /usr/bin/clickhouse 7. /build/src/Server/InterserverIOHTTPHandler.cpp:62: DB::InterserverIOHTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::InterserverIOHTTPHandler::Output&) @ 0x000000001e581c98 in /usr/bin/clickhouse 8. /build/src/Server/InterserverIOHTTPHandler.cpp:120: DB::InterserverIOHTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e58232e in /usr/bin/clickhouse 9. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 15. ? @ 0x00007fcde32fbac3 in ? 16. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:29:12.237525 [ 766 ] {} test_3gaeuuie.rmt2 (ReplicatedMergeTreePartCheckThread): No replica has part covering 20240501_0_0_0 and a merge is impossible: we didn't find smaller parts with either the same min block or the same max block. 2024.05.01 13:29:12.250749 [ 766 ] {} test_3gaeuuie.rmt2 (ReplicatedMergeTreePartCheckThread): Part 20240501_0_0_0 is lost forever. 2024.05.01 13:29:12.764590 [ 60040 ] {8cdc0c84-8209-4ef9-9301-6887f9af5fe2} executeQuery: Code: 167. DB::Exception: AST is too deep. Maximum: 1000. (TOO_DEEP_AST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39642) (comment: 01196_max_parser_depth.sh) (in query: select coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, 1))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Parsers/IAST.cpp:157: DB::IAST::checkDepthImpl(unsigned long) const @ 0x000000001f3df142 in /usr/bin/clickhouse 7. /build/src/Parsers/IAST.h:96: DB::IAST::checkDepth(unsigned long) const @ 0x000000001d0ac6dd in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:109: DB::checkASTSizeLimits(DB::IAST const&, DB::Settings const&) @ 0x000000001d0a5c36 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:851: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09e1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:12.777602 [ 60040 ] {8cdc0c84-8209-4ef9-9301-6887f9af5fe2} TCPHandler: Code: 167. DB::Exception: AST is too deep. Maximum: 1000. (TOO_DEEP_AST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Parsers/IAST.cpp:157: DB::IAST::checkDepthImpl(unsigned long) const @ 0x000000001f3df142 in /usr/bin/clickhouse 7. /build/src/Parsers/IAST.h:96: DB::IAST::checkDepth(unsigned long) const @ 0x000000001d0ac6dd in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:109: DB::checkASTSizeLimits(DB::IAST const&, DB::Settings const&) @ 0x000000001d0a5c36 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:851: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09e1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:12.777678 [ 943 ] {} test_3gaeuuie.rmt2 (046bf86f-2d41-4a8f-9376-850cfd9ffd26): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F01165%2Ftest_3gaeuuie%2Frmt%2Freplicas%2F1&part=all_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:29:12.807409 [ 740 ] {} test_3gaeuuie.rmt2 (ReplicatedMergeTreePartCheckThread): No replica has part covering all_0_0_0 and a merge is impossible: we didn't find smaller parts with either the same min block or the same max block. 2024.05.01 13:29:12.820539 [ 740 ] {} test_3gaeuuie.rmt2 (ReplicatedMergeTreePartCheckThread): Part all_0_0_0 is lost forever. 2024.05.01 13:29:13.960060 [ 947 ] {} test_3gaeuuie.rmt2 (2920ead9-e64f-4cf7-aa5d-a49780d48b98): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F01165%2Ftest_3gaeuuie%2Frmt%2Freplicas%2F1&part=78-40289209-20240501-1714562953_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:29:14.025099 [ 942 ] {} test_3gaeuuie.rmt2 (2920ead9-e64f-4cf7-aa5d-a49780d48b98): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F01165%2Ftest_3gaeuuie%2Frmt%2Freplicas%2F1&part=78-40289209-20240501-1714562953_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:29:14.025771 [ 945 ] {} test_3gaeuuie.rmt2 (2920ead9-e64f-4cf7-aa5d-a49780d48b98): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F01165%2Ftest_3gaeuuie%2Frmt%2Freplicas%2F1&part=113--19621857-20240501-1714562953_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:29:14.074467 [ 947 ] {} test_3gaeuuie.rmt2 (2920ead9-e64f-4cf7-aa5d-a49780d48b98): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F01165%2Ftest_3gaeuuie%2Frmt%2Freplicas%2F1&part=78-40289209-20240501-1714562953_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:29:14.074853 [ 940 ] {} test_3gaeuuie.rmt2 (2920ead9-e64f-4cf7-aa5d-a49780d48b98): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F01165%2Ftest_3gaeuuie%2Frmt%2Freplicas%2F1&part=113--19621857-20240501-1714562953_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:29:14.074906 [ 938 ] {} test_3gaeuuie.rmt2 (2920ead9-e64f-4cf7-aa5d-a49780d48b98): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Ftest%2F01165%2Ftest_3gaeuuie%2Frmt%2Freplicas%2F1&part=237-44058405-20240501-1714562954_0_0_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:29:14.107172 [ 787 ] {} test_3gaeuuie.rmt2 (ReplicatedMergeTreePartCheckThread): No replica has part covering 78-40289209-20240501-1714562953_0_0_0 and a merge is impossible: we didn't find smaller parts with either the same min block or the same max block. 2024.05.01 13:29:14.121344 [ 787 ] {} test_3gaeuuie.rmt2 (ReplicatedMergeTreePartCheckThread): Part 78-40289209-20240501-1714562953_0_0_0 is lost forever. 2024.05.01 13:29:14.123066 [ 787 ] {} test_3gaeuuie.rmt2 (ReplicatedMergeTreePartCheckThread): No replica has part covering 113--19621857-20240501-1714562953_0_0_0 and a merge is impossible: we didn't find smaller parts with either the same min block or the same max block. 2024.05.01 13:29:14.139328 [ 787 ] {} test_3gaeuuie.rmt2 (ReplicatedMergeTreePartCheckThread): Part 113--19621857-20240501-1714562953_0_0_0 is lost forever. 2024.05.01 13:29:14.141559 [ 787 ] {} test_3gaeuuie.rmt2 (ReplicatedMergeTreePartCheckThread): No replica has part covering 237-44058405-20240501-1714562954_0_0_0 and a merge is impossible: we didn't find smaller parts with either the same min block or the same max block. 2024.05.01 13:29:14.160168 [ 787 ] {} test_3gaeuuie.rmt2 (ReplicatedMergeTreePartCheckThread): Part 237-44058405-20240501-1714562954_0_0_0 is lost forever. 2024.05.01 13:29:15.422511 [ 50700 ] {021e623e-f817-4d5c-8274-c1599cc1a8df} executeQuery: Code: 167. DB::Exception: AST is too deep. Maximum: 1000. (TOO_DEEP_AST) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:52712) (comment: 01196_max_parser_depth.sh) (in query: select coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, coalesce(null, 1))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Parsers/IAST.cpp:157: DB::IAST::checkDepthImpl(unsigned long) const @ 0x000000001f3df142 in /usr/bin/clickhouse 7. /build/src/Parsers/IAST.h:96: DB::IAST::checkDepth(unsigned long) const @ 0x000000001d0ac6dd in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:109: DB::checkASTSizeLimits(DB::IAST const&, DB::Settings const&) @ 0x000000001d0a5c36 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:851: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09e1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 12. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 13. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:15.432258 [ 50700 ] {021e623e-f817-4d5c-8274-c1599cc1a8df} DynamicQueryHandler: Code: 167. DB::Exception: AST is too deep. Maximum: 1000. (TOO_DEEP_AST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&) @ 0x000000000c0b57b3 in /usr/bin/clickhouse 6. /build/src/Parsers/IAST.cpp:157: DB::IAST::checkDepthImpl(unsigned long) const @ 0x000000001f3df142 in /usr/bin/clickhouse 7. /build/src/Parsers/IAST.h:96: DB::IAST::checkDepth(unsigned long) const @ 0x000000001d0ac6dd in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:109: DB::checkASTSizeLimits(DB::IAST const&, DB::Settings const&) @ 0x000000001d0a5c36 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:851: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09e1d9 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 12. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 13. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:29:17.776231 [ 12034 ] {01170_alter_partition_isolation_test_uraaenas_tx3_2946} executeQuery: Code: 650. DB::Exception: Serialization error: Transaction (41, 39, 5f4d2fcf-9824-4d0e-9e6f-fedff2b5949e) tried to remove data part all_4_4_0 from test_uraaenas.mt (bf998076-eea3-4613-9678-8c613103e9fb), but it's locked by another transaction (TID: (41, 37, 5f4d2fcf-9824-4d0e-9e6f-fedff2b5949e), TIDH: 8084599990956515419) which is currently removing this part. (SERIALIZATION_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:54396) (in query: alter table mt drop partition id 'all'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, DB::TransactionID const&, String&, String&&, DB::TransactionID&&, unsigned long&) @ 0x000000001cf860fa in /usr/bin/clickhouse 6. /build/src/Interpreters/TransactionVersionMetadata.cpp:62: DB::VersionMetadata::lockRemovalTID(DB::TransactionID const&, DB::TransactionInfoContext const&) @ 0x000000001cf82b2f in /usr/bin/clickhouse 7. /build/src/Interpreters/MergeTreeTransaction.cpp:149: DB::MergeTreeTransaction::removeOldPart(std::shared_ptr const&, std::shared_ptr const&, DB::TransactionInfoContext const&) @ 0x000000001cc4694f in /usr/bin/clickhouse 8. /build/src/Interpreters/MergeTreeTransaction.cpp:93: DB::MergeTreeTransaction::removeOldPart(std::shared_ptr const&, std::shared_ptr const&, DB::MergeTreeTransaction*) @ 0x000000001cc467c7 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:3962: DB::MergeTreeData::removePartsFromWorkingSet(DB::MergeTreeTransaction*, std::vector, std::allocator>> const&, bool, DB::DataPartsLock&) @ 0x000000001de365b3 in /usr/bin/clickhouse 10. /build/src/Storages/StorageMergeTree.cpp:1873: DB::StorageMergeTree::dropPartition(std::shared_ptr const&, bool, std::shared_ptr) @ 0x000000001e313287 in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeData.cpp:5144: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001de484ca in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caccc in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 16. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 17. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 18. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:17.777164 [ 12034 ] {01170_alter_partition_isolation_test_uraaenas_tx3_2946} DynamicQueryHandler: Code: 650. DB::Exception: Serialization error: Transaction (41, 39, 5f4d2fcf-9824-4d0e-9e6f-fedff2b5949e) tried to remove data part all_4_4_0 from test_uraaenas.mt (bf998076-eea3-4613-9678-8c613103e9fb), but it's locked by another transaction (TID: (41, 37, 5f4d2fcf-9824-4d0e-9e6f-fedff2b5949e), TIDH: 8084599990956515419) which is currently removing this part. (SERIALIZATION_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, DB::TransactionID const&, String&, String&&, DB::TransactionID&&, unsigned long&) @ 0x000000001cf860fa in /usr/bin/clickhouse 6. /build/src/Interpreters/TransactionVersionMetadata.cpp:62: DB::VersionMetadata::lockRemovalTID(DB::TransactionID const&, DB::TransactionInfoContext const&) @ 0x000000001cf82b2f in /usr/bin/clickhouse 7. /build/src/Interpreters/MergeTreeTransaction.cpp:149: DB::MergeTreeTransaction::removeOldPart(std::shared_ptr const&, std::shared_ptr const&, DB::TransactionInfoContext const&) @ 0x000000001cc4694f in /usr/bin/clickhouse 8. /build/src/Interpreters/MergeTreeTransaction.cpp:93: DB::MergeTreeTransaction::removeOldPart(std::shared_ptr const&, std::shared_ptr const&, DB::MergeTreeTransaction*) @ 0x000000001cc467c7 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeData.cpp:3962: DB::MergeTreeData::removePartsFromWorkingSet(DB::MergeTreeTransaction*, std::vector, std::allocator>> const&, bool, DB::DataPartsLock&) @ 0x000000001de365b3 in /usr/bin/clickhouse 10. /build/src/Storages/StorageMergeTree.cpp:1873: DB::StorageMergeTree::dropPartition(std::shared_ptr const&, bool, std::shared_ptr) @ 0x000000001e313287 in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeData.cpp:5144: DB::MergeTreeData::alterPartition(std::shared_ptr const&, std::vector> const&, std::shared_ptr) @ 0x000000001de484ca in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterAlterQuery.cpp:185: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caccc in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 16. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 17. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 18. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:29:17.794550 [ 12034 ] {01170_alter_partition_isolation_test_uraaenas_tx3_10970} executeQuery: Code: 649. DB::Exception: Cannot execute query because current transaction failed. Expecting ROLLBACK statement. (INVALID_TRANSACTION) (version 23.8.11.29.altinitystable (altinity build)) (from [::ffff:127.0.0.1]:54398) (in query: insert into mt values ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [86]) @ 0x000000000f1f51be in /usr/bin/clickhouse 6. /build/src/Interpreters/executeQuery.cpp:799: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09db07 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 8. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 9. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 10. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 16. ? @ 0x00007fcde32fbac3 in ? 17. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:17.795469 [ 12034 ] {01170_alter_partition_isolation_test_uraaenas_tx3_10970} DynamicQueryHandler: Code: 649. DB::Exception: Cannot execute query because current transaction failed. Expecting ROLLBACK statement. (INVALID_TRANSACTION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [86]) @ 0x000000000f1f51be in /usr/bin/clickhouse 6. /build/src/Interpreters/executeQuery.cpp:799: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d09db07 in /usr/bin/clickhouse 7. /build/src/Interpreters/executeQuery.cpp:1319: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a2940 in /usr/bin/clickhouse 8. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 9. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 10. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 16. ? @ 0x00007fcde32fbac3 in ? 17. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:29:19.236945 [ 5967 ] {98f04051-2f1d-4607-80ea-fb0f04916945} executeQuery: Code: 48. DB::Exception: WITH TOTALS and WITH ROLLUP or CUBE are not supported together in presence of HAVING. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52310) (comment: 01122_totals_rollup_having_block_header.sql) (in query: SELECT a, b, count(*) FROM rollup_having GROUP BY a, b WITH ROLLUP WITH TOTALS HAVING a IS NOT NULL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [85]) @ 0x0000000015ba677e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1371: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa6c9a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:19.237747 [ 5967 ] {98f04051-2f1d-4607-80ea-fb0f04916945} TCPHandler: Code: 48. DB::Exception: WITH TOTALS and WITH ROLLUP or CUBE are not supported together in presence of HAVING. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [85]) @ 0x0000000015ba677e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1371: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa6c9a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:19.251824 [ 5967 ] {563ccd4e-be7c-47d8-a992-ed797f3ed99c} executeQuery: Code: 48. DB::Exception: WITH TOTALS and WITH ROLLUP or CUBE are not supported together in presence of HAVING. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52310) (comment: 01122_totals_rollup_having_block_header.sql) (in query: SELECT a, b, count(*) FROM rollup_having GROUP BY a, b WITH ROLLUP WITH TOTALS HAVING a IS NOT NULL and b IS NOT NULL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [85]) @ 0x0000000015ba677e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1371: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa6c9a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:19.252588 [ 5967 ] {563ccd4e-be7c-47d8-a992-ed797f3ed99c} TCPHandler: Code: 48. DB::Exception: WITH TOTALS and WITH ROLLUP or CUBE are not supported together in presence of HAVING. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [85]) @ 0x0000000015ba677e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1371: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa6c9a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:19.836399 [ 1276 ] {ffc6e3ee-408a-459d-8e42-3111dc697f84} executeQuery: Code: 42. DB::Exception: Number of arguments for function isConstant doesn't match: passed 0, should be 1: While processing isConstant(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52330) (comment: 01118_is_constant.sql) (in query: select isConstant();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:445: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe69f5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:29:19.837478 [ 1276 ] {ffc6e3ee-408a-459d-8e42-3111dc697f84} TCPHandler: Code: 42. DB::Exception: Number of arguments for function isConstant doesn't match: passed 0, should be 1: While processing isConstant(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:445: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe69f5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:29:19.844867 [ 1276 ] {d601b0b7-3b5b-4a38-a8e1-95755848aa6f} executeQuery: Code: 42. DB::Exception: Number of arguments for function isConstant doesn't match: passed 2, should be 1: While processing isConstant(1, 2). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52330) (comment: 01118_is_constant.sql) (in query: select isConstant(1, 2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:445: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe69f5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:29:19.845728 [ 1276 ] {d601b0b7-3b5b-4a38-a8e1-95755848aa6f} TCPHandler: Code: 42. DB::Exception: Number of arguments for function isConstant doesn't match: passed 2, should be 1: While processing isConstant(1, 2). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:445: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe69f5 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:29:25.367113 [ 5967 ] {a9c0c1cb-7430-4c73-a4d0-20a810426e1a} executeQuery: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52512) (comment: 01097_cyclic_defaults.sql) (in query: CREATE TABLE table_with_cyclic_defaults (a DEFAULT b, b DEFAULT a) ENGINE = Memory;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x00000000133771be in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009481 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 11. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 13. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:25.485790 [ 5967 ] {a9c0c1cb-7430-4c73-a4d0-20a810426e1a} TCPHandler: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x00000000133771be in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009481 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 11. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 12. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 13. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:25.485856 [ 50482 ] {3c5eee7e-0ebc-460f-b4f4-681e8a455afa} executeQuery: Code: 43. DB::Exception: addMilliseconds cannot be used with Date: While processing toDate('2001-09-29') + toIntervalMillisecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52498) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (date '2001-09-29' + interval 12345 millisecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c47f9e4 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c477c9c in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c6eac7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000119535cf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:25.487230 [ 50482 ] {3c5eee7e-0ebc-460f-b4f4-681e8a455afa} TCPHandler: Code: 43. DB::Exception: addMilliseconds cannot be used with Date: While processing toDate('2001-09-29') + toIntervalMillisecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c47f9e4 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c477c9c in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c6eac7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000119535cf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:25.650407 [ 5967 ] {e79d0743-1702-4a23-8614-163d921061ff} executeQuery: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52512) (comment: 01097_cyclic_defaults.sql) (in query: CREATE TABLE table_with_cyclic_defaults (a DEFAULT b + 1, b DEFAULT a * a) ENGINE = Memory;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x00000000133771be in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009481 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 18. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 2024.05.01 13:29:25.781288 [ 5967 ] {e79d0743-1702-4a23-8614-163d921061ff} TCPHandler: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x00000000133771be in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009481 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 18. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 2024.05.01 13:29:25.781374 [ 50482 ] {b42c381c-ea78-420c-a221-918ec138f294} executeQuery: Code: 43. DB::Exception: addMicroseconds cannot be used with Date: While processing toDate('2001-09-29') + toIntervalMicrosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52498) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (date '2001-09-29' + interval 12345 microsecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c476004 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c46e2bc in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c6eac7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000119535cf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:25.782515 [ 50482 ] {b42c381c-ea78-420c-a221-918ec138f294} TCPHandler: Code: 43. DB::Exception: addMicroseconds cannot be used with Date: While processing toDate('2001-09-29') + toIntervalMicrosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c476004 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c46e2bc in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c6eac7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000119535cf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:25.946370 [ 5967 ] {5e1aa064-2860-447b-83dc-3fafa24a6162} executeQuery: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52512) (comment: 01097_cyclic_defaults.sql) (in query: CREATE TABLE table_with_cyclic_defaults (a DEFAULT b, b DEFAULT toString(c), c DEFAULT concat(a, '1')) ENGINE = Memory;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x00000000133771be in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009481 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 19. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:29:26.068128 [ 50482 ] {36d1e964-dde9-4fbd-a374-239bcaab5079} executeQuery: Code: 43. DB::Exception: addNanoseconds cannot be used with Date: While processing toDate('2001-09-29') + toIntervalNanosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52498) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (date '2001-09-29' + interval 12345 nanosecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c46c604 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c46483c in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c6eac7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000119535cf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:26.068292 [ 5967 ] {5e1aa064-2860-447b-83dc-3fafa24a6162} TCPHandler: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x00000000133771be in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009481 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 17. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 19. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:29:26.068979 [ 50482 ] {36d1e964-dde9-4fbd-a374-239bcaab5079} TCPHandler: Code: 43. DB::Exception: addNanoseconds cannot be used with Date: While processing toDate('2001-09-29') + toIntervalNanosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c46c604 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c46483c in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c6eac7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000119535cf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:26.216148 [ 5967 ] {b76ee015-eaaa-46e7-a864-78ff1a73a8a3} executeQuery: Code: 174. DB::Exception: Self referencing of `a` to `a`. Cyclic alias: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52512) (comment: 01097_cyclic_defaults.sql) (in query: CREATE TABLE table_with_cyclic_defaults (a DEFAULT b, b DEFAULT c, c DEFAULT a * b) ENGINE = Memory;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:90: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d0091ae in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 15. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 17. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:29:26.323999 [ 50482 ] {5533d1d5-ec1d-4f1f-ac83-021163525e62} executeQuery: Code: 43. DB::Exception: subtractMilliseconds cannot be used with Date: While processing toDate('2001-09-29') - toIntervalMillisecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52498) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (date '2001-09-29' - interval 12345 millisecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3f8b24 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3f085c in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107ac8c7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000010481c6f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:26.323983 [ 5967 ] {b76ee015-eaaa-46e7-a864-78ff1a73a8a3} TCPHandler: Code: 174. DB::Exception: Self referencing of `a` to `a`. Cyclic alias: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:90: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d0091ae in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 15. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 16. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 17. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 22. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:29:26.324994 [ 50482 ] {5533d1d5-ec1d-4f1f-ac83-021163525e62} TCPHandler: Code: 43. DB::Exception: subtractMilliseconds cannot be used with Date: While processing toDate('2001-09-29') - toIntervalMillisecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3f8b24 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3f085c in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107ac8c7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000010481c6f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:26.475265 [ 5967 ] {6ccc1626-681c-402e-9c14-2d874d294ace} executeQuery: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52512) (comment: 01097_cyclic_defaults.sql) (in query: CREATE TABLE table_with_cyclic_defaults (a String DEFAULT b, b String DEFAULT a) ENGINE = Memory;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x00000000133771be in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009481 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 20. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:29:26.590357 [ 5967 ] {6ccc1626-681c-402e-9c14-2d874d294ace} TCPHandler: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x00000000133771be in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009481 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 20. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:29:26.590403 [ 50482 ] {b085a184-f4fe-4839-87ab-6e3879434b32} executeQuery: Code: 43. DB::Exception: subtractMicroseconds cannot be used with Date: While processing toDate('2001-09-29') - toIntervalMicrosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52498) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (date '2001-09-29' - interval 12345 microsecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3eebc4 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3e68fc in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107ac8c7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000010481c6f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:26.591229 [ 50482 ] {b085a184-f4fe-4839-87ab-6e3879434b32} TCPHandler: Code: 43. DB::Exception: subtractMicroseconds cannot be used with Date: While processing toDate('2001-09-29') - toIntervalMicrosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3eebc4 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3e68fc in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107ac8c7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000010481c6f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:26.729418 [ 50482 ] {be7906ed-e3f1-4a5f-84eb-fdba222ff179} executeQuery: Code: 43. DB::Exception: subtractNanoseconds cannot be used with Date: While processing toDate('2001-09-29') - toIntervalNanosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52498) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (date '2001-09-29' - interval 12345 nanosecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3e4604 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3db39c in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107ac8c7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000010481c6f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:26.879668 [ 50482 ] {be7906ed-e3f1-4a5f-84eb-fdba222ff179} TCPHandler: Code: 43. DB::Exception: subtractNanoseconds cannot be used with Date: While processing toDate('2001-09-29') - toIntervalNanosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3e4604 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3db39c in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107ac8c7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000010481c6f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:26.879693 [ 5967 ] {1aa4a7c5-3462-4312-b6e5-b0b8c5ad7ed8} executeQuery: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52512) (comment: 01097_cyclic_defaults.sql) (in query: ALTER TABLE table_with_cyclic_defaults ADD COLUMN c String DEFAULT b, ADD COLUMN b String DEFAULT c;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x00000000133771be in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009481 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 20. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 21. /build/src/Storages/AlterCommands.cpp:1389: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d58173d in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:29:26.880587 [ 5967 ] {1aa4a7c5-3462-4312-b6e5-b0b8c5ad7ed8} TCPHandler: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x00000000133771be in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009481 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 20. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 21. /build/src/Storages/AlterCommands.cpp:1389: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d58173d in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:29:26.888769 [ 5967 ] {ae3cdcb1-2969-4a43-9f49-7ca34b5cf879} executeQuery: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52512) (comment: 01097_cyclic_defaults.sql) (in query: ALTER TABLE table_with_cyclic_defaults ADD COLUMN b String DEFAULT a, MODIFY COLUMN a DEFAULT b;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x00000000133771be in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009481 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 20. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 21. /build/src/Storages/AlterCommands.cpp:1389: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d58173d in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:29:26.889460 [ 5967 ] {ae3cdcb1-2969-4a43-9f49-7ca34b5cf879} TCPHandler: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x00000000133771be in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009481 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 20. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 21. /build/src/Storages/AlterCommands.cpp:1389: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d58173d in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 25. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 2024.05.01 13:29:27.018441 [ 50482 ] {d9f98fab-970c-4e23-93fd-c372537c9d30} executeQuery: Code: 43. DB::Exception: addMilliseconds cannot be used with Date32: While processing toDate32('2001-09-29') + toIntervalMillisecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52498) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (toDate32('2001-09-29') + interval 12345 millisecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c47fb44 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c477cb9 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c6eac7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000119535cf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:27.019334 [ 50482 ] {d9f98fab-970c-4e23-93fd-c372537c9d30} TCPHandler: Code: 43. DB::Exception: addMilliseconds cannot be used with Date32: While processing toDate32('2001-09-29') + toIntervalMillisecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c47fb44 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c477cb9 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c6eac7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000119535cf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:27.137722 [ 50482 ] {3a7d8504-e39d-4ce3-b876-3a5228639e5f} executeQuery: Code: 43. DB::Exception: addMicroseconds cannot be used with Date32: While processing toDate32('2001-09-29') + toIntervalMicrosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52498) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (toDate32('2001-09-29') + interval 12345 microsecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c476164 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c46e2d9 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c6eac7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000119535cf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:27.138568 [ 50482 ] {3a7d8504-e39d-4ce3-b876-3a5228639e5f} TCPHandler: Code: 43. DB::Exception: addMicroseconds cannot be used with Date32: While processing toDate32('2001-09-29') + toIntervalMicrosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c476164 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c46e2d9 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c6eac7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000119535cf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:27.253110 [ 50482 ] {d4445aff-ec1c-45d4-8d65-3e35431845ae} executeQuery: Code: 43. DB::Exception: addNanoseconds cannot be used with Date32: While processing toDate32('2001-09-29') + toIntervalNanosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52498) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (toDate32('2001-09-29') + interval 12345 nanosecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c46c764 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c464859 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c6eac7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000119535cf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:27.254002 [ 50482 ] {d4445aff-ec1c-45d4-8d65-3e35431845ae} TCPHandler: Code: 43. DB::Exception: addNanoseconds cannot be used with Date32: While processing toDate32('2001-09-29') + toIntervalNanosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c46c764 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c464859 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c6eac7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000119535cf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:27.391736 [ 50482 ] {0c8c0771-233d-478e-9e8b-5347fd429659} executeQuery: Code: 43. DB::Exception: subtractMilliseconds cannot be used with Date32: While processing toDate32('2001-09-29') - toIntervalMillisecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52498) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (toDate32('2001-09-29') - interval 12345 millisecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3f8c84 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3f0879 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107ac8c7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000010481c6f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:27.392575 [ 50482 ] {0c8c0771-233d-478e-9e8b-5347fd429659} TCPHandler: Code: 43. DB::Exception: subtractMilliseconds cannot be used with Date32: While processing toDate32('2001-09-29') - toIntervalMillisecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3f8c84 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3f0879 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107ac8c7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000010481c6f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:27.514028 [ 50482 ] {f7dc15c2-41f8-4d1f-974c-33b29c03e5f9} executeQuery: Code: 43. DB::Exception: subtractMicroseconds cannot be used with Date32: While processing toDate32('2001-09-29') - toIntervalMicrosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52498) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (toDate32('2001-09-29') - interval 12345 microsecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3eed24 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3e6919 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107ac8c7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000010481c6f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:27.514896 [ 50482 ] {f7dc15c2-41f8-4d1f-974c-33b29c03e5f9} TCPHandler: Code: 43. DB::Exception: subtractMicroseconds cannot be used with Date32: While processing toDate32('2001-09-29') - toIntervalMicrosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3eed24 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3e6919 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107ac8c7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000010481c6f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:27.655397 [ 50482 ] {f485c642-f112-4ab3-8718-8cb65cf8d430} executeQuery: Code: 43. DB::Exception: subtractNanoseconds cannot be used with Date32: While processing toDate32('2001-09-29') - toIntervalNanosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52498) (comment: 01099_operators_date_and_timestamp.sql) (in query: select (toDate32('2001-09-29') - interval 12345 nanosecond) x, toTypeName(x);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3e4764 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3db3b9 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107ac8c7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000010481c6f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:27.656708 [ 50482 ] {f485c642-f112-4ab3-8718-8cb65cf8d430} TCPHandler: Code: 43. DB::Exception: subtractNanoseconds cannot be used with Date32: While processing toDate32('2001-09-29') - toIntervalNanosecond(12345) AS x, toTypeName(x). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c3e4764 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:564: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c3db3b9 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x00000000107ac8c7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x0000000010481c6f in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:29:29.162353 [ 60037 ] {fe12a74e-d6a5-419c-9be4-c0efae47783b} executeQuery: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33890) (comment: 01093_cyclic_defaults_filimonov.sql) (in query: CREATE TABLE test ( `a0` UInt64 DEFAULT a1 + 1, `a1` UInt64 DEFAULT a0 + 1, `a2` UInt64 DEFAULT a3 + a4, `a3` UInt64 DEFAULT a2 + 1, `a4` UInt64 ALIAS a3 + 1 ) ENGINE = Log;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x00000000133771be in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009481 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 18. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 19. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 20. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 21. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 22. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 23. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 24. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:29:29.163296 [ 60037 ] {fe12a74e-d6a5-419c-9be4-c0efae47783b} TCPHandler: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x00000000133771be in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009481 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 18. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 19. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 20. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 21. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 22. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 23. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 24. /build/src/Storages/ColumnsDescription.cpp:846: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d59879b in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:29:29.304047 [ 60037 ] {b61023fc-b338-43d8-ad43-d2538f7157d4} executeQuery: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33890) (comment: 01093_cyclic_defaults_filimonov.sql) (in query: CREATE TABLE pythagoras ( `a` Float64 DEFAULT sqrt((c * c) - (b * b)), `b` Float64 DEFAULT sqrt((c * c) - (a * a)), `c` Float64 DEFAULT sqrt((a * a) + (b * b)) ) ENGINE = Log;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x00000000133771be in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009481 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 18. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 19. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 20. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 21. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 22. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 23. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 24. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 25. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 26. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 27. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 28. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 29. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 30. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 31. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 2024.05.01 13:29:29.305982 [ 60037 ] {b61023fc-b338-43d8-ad43-d2538f7157d4} TCPHandler: Code: 174. DB::Exception: Cyclic aliases: default expression and column type are incompatible. (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [15]) @ 0x00000000133771be in /usr/bin/clickhouse 6. /build/src/Interpreters/QueryNormalizer.cpp:109: DB::QueryNormalizer::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009481 in /usr/bin/clickhouse 7. /build/src/Interpreters/QueryNormalizer.cpp:286: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d009d3e in /usr/bin/clickhouse 8. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 9. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 10. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 11. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 12. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 13. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 14. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 15. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 16. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 17. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 18. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 19. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 20. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 21. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 22. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 23. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 24. /build/src/Interpreters/QueryNormalizer.cpp:302: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a068 in /usr/bin/clickhouse 25. /build/src/Interpreters/QueryNormalizer.cpp:240: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00a97d in /usr/bin/clickhouse 26. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 27. /build/src/Interpreters/QueryNormalizer.cpp:256: DB::QueryNormalizer::visitChildren(DB::IAST*, DB::QueryNormalizer::Data&) @ 0x000000001d00ab8a in /usr/bin/clickhouse 28. /build/src/Interpreters/QueryNormalizer.cpp:304: DB::QueryNormalizer::visit(std::shared_ptr&, DB::QueryNormalizer::Data&) @ 0x000000001d00a087 in /usr/bin/clickhouse 29. /build/src/Interpreters/QueryNormalizer.h:77: DB::QueryNormalizer::visit(std::shared_ptr&) @ 0x000000001cf9dca0 in /usr/bin/clickhouse 30. /build/src/Interpreters/TreeRewriter.cpp:1438: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8f6ad in /usr/bin/clickhouse 31. /build/src/Interpreters/TreeRewriter.cpp:1331: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf922ec in /usr/bin/clickhouse 2024.05.01 13:29:30.943224 [ 60037 ] {6579c97c-6ae2-4999-ad9e-c29db35c7b40} executeQuery: Code: 36. DB::Exception: Cannot alter settings, because table engine doesn't support settings changes. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33930) (comment: 01089_alter_settings_old_format.sql) (in query: ALTER TABLE old_format_mt MODIFY SETTING enable_mixed_granularity_parts = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [77]) @ 0x000000000bc3733e in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1268: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d57fce7 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:30.943951 [ 60037 ] {6579c97c-6ae2-4999-ad9e-c29db35c7b40} TCPHandler: Code: 36. DB::Exception: Cannot alter settings, because table engine doesn't support settings changes. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [77]) @ 0x000000000bc3733e in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1268: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d57fce7 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:38.490406 [ 1276 ] {56fb40a8-fdc4-4cff-9fe9-b472e1f5d837} executeQuery: Code: 36. DB::Exception: Data type have to be specified for column `value` to add. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34108) (comment: 01079_alter_default_zookeeper_long.sql) (in query: -- Cannot add column without type ALTER TABLE alter_default ADD COLUMN value DEFAULT '10';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1089: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d57d282 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:38.491088 [ 1276 ] {56fb40a8-fdc4-4cff-9fe9-b472e1f5d837} TCPHandler: Code: 36. DB::Exception: Data type have to be specified for column `value` to add. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1089: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d57d282 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:39.113221 [ 1276 ] {dcdbd961-ab9c-4bb3-be8a-ab3a8bb18bc9} executeQuery: Code: 6. DB::Exception: Cannot parse string 'q' as UInt8: syntax error at begin of string. Note: there are toUInt8OrZero and toUInt8OrNull functions, which returns zero/NULL instead of throwing exception.: While processing _CAST('q' AS bad_column_tmp_alter9299453425860543419, 'UInt8') AS bad_column: default expression and column type are incompatible. (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34108) (comment: 01079_alter_default_zookeeper_long.sql) (in query: ALTER TABLE alter_default ADD COLUMN bad_column UInt8 DEFAULT 'q';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt8, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b25cc97 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt8, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b256ff8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt8, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b232f39 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt8, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b232248 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt8, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2313be in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 30. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 2024.05.01 13:29:39.114289 [ 1276 ] {dcdbd961-ab9c-4bb3-be8a-ab3a8bb18bc9} TCPHandler: Code: 6. DB::Exception: Cannot parse string 'q' as UInt8: syntax error at begin of string. Note: there are toUInt8OrZero and toUInt8OrNull functions, which returns zero/NULL instead of throwing exception.: While processing _CAST('q' AS bad_column_tmp_alter9299453425860543419, 'UInt8') AS bad_column: default expression and column type are incompatible. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt8, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b25cc97 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt8, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b256ff8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt8, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b232f39 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt8, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b232248 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt8, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2313be in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 30. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 2024.05.01 13:29:39.369949 [ 1276 ] {d27ca7f0-2f6b-4128-aa4d-905f06de3a1c} executeQuery: Code: 41. DB::ParsingException: Cannot parse datetime: Cannot parse DateTime from String: While processing _CAST('0' AS other_date_tmp_alter10320455259398181620, 'DateTime') AS other_date: default expression and column type are incompatible. (CANNOT_PARSE_DATETIME) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34108) (comment: 01079_alter_default_zookeeper_long.sql) (in query: ALTER TABLE alter_default MODIFY COLUMN other_date DateTime;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b25d437 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:1218: void DB::readDateTimeTextFallback(long&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x00000000139848f6 in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:966: void DB::readDateTimeTextImpl(long&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000000b594a56 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:1047: DB::readDateTimeText(long&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000000b594725 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1077: void DB::parseImpl(DB::DataTypeDateTime::FieldType&, DB::ReadBuffer&, DateLUTImpl const*, bool) @ 0x000000000b594654 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1426: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b59453b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b58eb78 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b57e7d9 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b57db08 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b57ccfe in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 27. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 30. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 2024.05.01 13:29:39.370988 [ 1276 ] {d27ca7f0-2f6b-4128-aa4d-905f06de3a1c} TCPHandler: Code: 41. DB::ParsingException: Cannot parse datetime: Cannot parse DateTime from String: While processing _CAST('0' AS other_date_tmp_alter10320455259398181620, 'DateTime') AS other_date: default expression and column type are incompatible. (CANNOT_PARSE_DATETIME), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:196: DB::ParsingException::ParsingException<>(int, FormatStringHelperImpl<>) @ 0x000000000b25d437 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:1218: void DB::readDateTimeTextFallback(long&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x00000000139848f6 in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.h:966: void DB::readDateTimeTextImpl(long&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000000b594a56 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:1047: DB::readDateTimeText(long&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000000b594725 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1077: void DB::parseImpl(DB::DataTypeDateTime::FieldType&, DB::ReadBuffer&, DateLUTImpl const*, bool) @ 0x000000000b594654 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1426: COW::immutable_ptr DB::ConvertThroughParsing::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b59453b in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator(), DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b58eb78 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b57e7d9 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b57db08 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b57ccfe in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 27. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 30. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 31. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 2024.05.01 13:29:47.860030 [ 50482 ] {77567b5a-4b82-40bf-b120-3978a97f3122} executeQuery: Code: 69. DB::Exception: The argument 'resolution' (100) of function h3EdgeLengthM is out of bounds because the maximum resolution in H3 library is 15: While processing h3EdgeLengthM(100). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42576) (comment: 01074_h3_range_check.sql) (in query: SELECT h3EdgeLengthM(100);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e470988 in /usr/bin/clickhouse 6. /build/src/Functions/h3EdgeLengthM.cpp:84: DB::(anonymous namespace)::FunctionH3EdgeLengthM::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eecb65e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:29:47.861131 [ 50482 ] {77567b5a-4b82-40bf-b120-3978a97f3122} TCPHandler: Code: 69. DB::Exception: The argument 'resolution' (100) of function h3EdgeLengthM is out of bounds because the maximum resolution in H3 library is 15: While processing h3EdgeLengthM(100). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e470988 in /usr/bin/clickhouse 6. /build/src/Functions/h3EdgeLengthM.cpp:84: DB::(anonymous namespace)::FunctionH3EdgeLengthM::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eecb65e in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:29:47.984158 [ 50482 ] {d23e7e0f-e5ed-4842-a976-96055b11d5cb} executeQuery: Code: 69. DB::Exception: The argument 'resolution' (100) of function h3HexAreaM2 is out of bounds because the maximum resolution in H3 library is 15: While processing h3HexAreaM2(100). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42576) (comment: 01074_h3_range_check.sql) (in query: SELECT h3HexAreaM2(100);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e470988 in /usr/bin/clickhouse 6. /build/src/Functions/h3HexAreaM2.cpp:79: DB::(anonymous namespace)::FunctionH3HexAreaM2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eee4fde in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:29:47.985195 [ 50482 ] {d23e7e0f-e5ed-4842-a976-96055b11d5cb} TCPHandler: Code: 69. DB::Exception: The argument 'resolution' (100) of function h3HexAreaM2 is out of bounds because the maximum resolution in H3 library is 15: While processing h3HexAreaM2(100). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e470988 in /usr/bin/clickhouse 6. /build/src/Functions/h3HexAreaM2.cpp:79: DB::(anonymous namespace)::FunctionH3HexAreaM2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eee4fde in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:29:48.100206 [ 50482 ] {f0c5b490-c238-4e35-8efa-b6c596ad373f} executeQuery: Code: 69. DB::Exception: The argument 'resolution' (100) of function h3HexAreaKm2 is out of bounds because the maximum resolution in H3 library is 15: While processing h3HexAreaKm2(100). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42576) (comment: 01074_h3_range_check.sql) (in query: SELECT h3HexAreaKm2(100);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e470988 in /usr/bin/clickhouse 6. /build/src/Functions/h3HexAreaKm2.cpp:79: DB::(anonymous namespace)::FunctionH3HexAreaKm2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eee3719 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:29:48.101292 [ 50482 ] {f0c5b490-c238-4e35-8efa-b6c596ad373f} TCPHandler: Code: 69. DB::Exception: The argument 'resolution' (100) of function h3HexAreaKm2 is out of bounds because the maximum resolution in H3 library is 15: While processing h3HexAreaKm2(100). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, int&&) @ 0x000000000e470988 in /usr/bin/clickhouse 6. /build/src/Functions/h3HexAreaKm2.cpp:79: DB::(anonymous namespace)::FunctionH3HexAreaKm2::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000eee3719 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:29:52.782795 [ 60040 ] {6b8eebe8-cf07-48c8-83e7-e60775501f94} executeQuery: Code: 38. DB::Exception: Cannot parse date: value is too short: while converting '202001-06' to Date. (CANNOT_PARSE_DATE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51270) (comment: 01073_bad_alter_partition.sql) (in query: ALTER TABLE merge_tree DROP PARTITION '202001-06';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f81ac7e in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:1063: void DB::readDateTextFallback(LocalDate&, DB::ReadBuffer&)::'lambda'()::operator()() const @ 0x0000000013983bf5 in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.cpp:1099: void DB::readDateTextFallback(LocalDate&, DB::ReadBuffer&) @ 0x0000000013983971 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:719: void DB::readDateTextImpl(LocalDate&, DB::ReadBuffer&) @ 0x000000000b546417 in /usr/bin/clickhouse 9. /build/src/IO/ReadHelpers.h:743: void DB::readDateTextImpl(StrongTypedef&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000000b54610a in /usr/bin/clickhouse 10. /build/src/IO/ReadHelpers.h:774: DB::readDateText(StrongTypedef&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000000b5460c5 in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationDate.cpp:30: DB::SerializationDate::deserializeTextEscaped(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ba7e in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationDate.cpp:22: DB::SerializationDate::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2b954 in /usr/bin/clickhouse 13. /build/src/Interpreters/convertFieldToType.cpp:503: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05dbdc in /usr/bin/clickhouse 14. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05a5fd in /usr/bin/clickhouse 15. /build/src/Interpreters/convertFieldToType.cpp:560: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05e4d8 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:5576: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de2e94f in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:4948: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001de45f44 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cac33 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 29. ? @ 0x00007fcde32fbac3 in ? 30. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:52.783527 [ 60040 ] {6b8eebe8-cf07-48c8-83e7-e60775501f94} TCPHandler: Code: 38. DB::Exception: Cannot parse date: value is too short: while converting '202001-06' to Date. (CANNOT_PARSE_DATE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f81ac7e in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:1063: void DB::readDateTextFallback(LocalDate&, DB::ReadBuffer&)::'lambda'()::operator()() const @ 0x0000000013983bf5 in /usr/bin/clickhouse 7. /build/src/IO/ReadHelpers.cpp:1099: void DB::readDateTextFallback(LocalDate&, DB::ReadBuffer&) @ 0x0000000013983971 in /usr/bin/clickhouse 8. /build/src/IO/ReadHelpers.h:719: void DB::readDateTextImpl(LocalDate&, DB::ReadBuffer&) @ 0x000000000b546417 in /usr/bin/clickhouse 9. /build/src/IO/ReadHelpers.h:743: void DB::readDateTextImpl(StrongTypedef&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000000b54610a in /usr/bin/clickhouse 10. /build/src/IO/ReadHelpers.h:774: DB::readDateText(StrongTypedef&, DB::ReadBuffer&, DateLUTImpl const&) @ 0x000000000b5460c5 in /usr/bin/clickhouse 11. /build/src/DataTypes/Serializations/SerializationDate.cpp:30: DB::SerializationDate::deserializeTextEscaped(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2ba7e in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationDate.cpp:22: DB::SerializationDate::deserializeWholeText(DB::IColumn&, DB::ReadBuffer&, DB::FormatSettings const&) const @ 0x000000001ba2b954 in /usr/bin/clickhouse 13. /build/src/Interpreters/convertFieldToType.cpp:503: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05dbdc in /usr/bin/clickhouse 14. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05a5fd in /usr/bin/clickhouse 15. /build/src/Interpreters/convertFieldToType.cpp:560: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05e4d8 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:5576: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de2e94f in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:4948: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001de45f44 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cac33 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 29. ? @ 0x00007fcde32fbac3 in ? 30. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:52.912654 [ 60037 ] {54c36953-bc6c-4156-8565-4e7c93494229} executeQuery: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51292) (comment: 01072_optimize_skip_unused_shards_const_expr_eval.sql) (in query: select * from dist_01072 where key=value;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:52.913529 [ 60037 ] {54c36953-bc6c-4156-8565-4e7c93494229} TCPHandler: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:52.923936 [ 60037 ] {256a7921-91cd-44d1-991f-b2ef14af956c} executeQuery: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51292) (comment: 01072_optimize_skip_unused_shards_const_expr_eval.sql) (in query: select * from dist_01072 where key=toInt32(value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:52.924605 [ 60037 ] {256a7921-91cd-44d1-991f-b2ef14af956c} TCPHandler: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:53.107348 [ 60037 ] {f36002e7-bdc5-4320-97e5-0ea87c6fe267} executeQuery: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51292) (comment: 01072_optimize_skip_unused_shards_const_expr_eval.sql) (in query: select * from dist_01072 where key=value;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:53.108235 [ 60037 ] {f36002e7-bdc5-4320-97e5-0ea87c6fe267} TCPHandler: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:53.119420 [ 60037 ] {1a079698-c30f-44a1-bc10-f157e312f8af} executeQuery: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51292) (comment: 01072_optimize_skip_unused_shards_const_expr_eval.sql) (in query: select * from dist_01072 where key=toInt32(value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:53.120198 [ 60037 ] {1a079698-c30f-44a1-bc10-f157e312f8af} TCPHandler: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:53.300749 [ 60037 ] {39a902dd-6d88-4723-b903-10fcfedd3674} executeQuery: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51292) (comment: 01072_optimize_skip_unused_shards_const_expr_eval.sql) (in query: select * from dist_01072 where key=value;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:53.301476 [ 60037 ] {39a902dd-6d88-4723-b903-10fcfedd3674} TCPHandler: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:53.312136 [ 60037 ] {0d54387d-df2f-4bcd-8973-e8d32782e667} executeQuery: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51292) (comment: 01072_optimize_skip_unused_shards_const_expr_eval.sql) (in query: select * from dist_01072 where key=toInt32(value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:53.312816 [ 60037 ] {0d54387d-df2f-4bcd-8973-e8d32782e667} TCPHandler: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:53.482234 [ 60037 ] {99057707-f280-4fd1-a76a-a71949b8b8e2} executeQuery: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51292) (comment: 01072_optimize_skip_unused_shards_const_expr_eval.sql) (in query: select * from dist_01072 where key=value;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:53.482959 [ 60037 ] {99057707-f280-4fd1-a76a-a71949b8b8e2} TCPHandler: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:53.493663 [ 60037 ] {94ef58dc-d859-4961-83f8-061ef2e2ec99} executeQuery: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51292) (comment: 01072_optimize_skip_unused_shards_const_expr_eval.sql) (in query: select * from dist_01072 where key=toInt32(value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:53.494372 [ 60037 ] {94ef58dc-d859-4961-83f8-061ef2e2ec99} TCPHandler: Code: 507. DB::Exception: Sharding key modulo(key, 2) is not used. (UNABLE_TO_SKIP_UNUSED_SHARDS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDistributed.cpp:1329: DB::StorageDistributed::getOptimizedCluster(std::shared_ptr, std::shared_ptr const&, DB::SelectQueryInfo const&) const @ 0x000000001d646580 in /usr/bin/clickhouse 7. /build/src/Storages/StorageDistributed.cpp:440: DB::StorageDistributed::getQueryProcessingStage(std::shared_ptr, DB::QueryProcessingStage::Enum, std::shared_ptr const&, DB::SelectQueryInfo&) const @ 0x000000001d645088 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:926: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaad1b in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:54.723048 [ 5967 ] {2faaef0e-a6c1-48e9-b7f4-8ff06ffbbc07} executeQuery: Code: 60. DB::Exception: Temporary table table_to_drop doesn't exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51340) (comment: 01072_drop_temporary_table_with_same_name.sql) (in query: DROP TEMPORARY TABLE table_to_drop;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterDropQuery.cpp:114: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9796 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:54.723842 [ 5967 ] {2faaef0e-a6c1-48e9-b7f4-8ff06ffbbc07} TCPHandler: Code: 60. DB::Exception: Temporary table table_to_drop doesn't exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterDropQuery.cpp:114: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9796 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:54.929855 [ 5967 ] {f49871ec-c383-4651-8b68-19c1645f4958} executeQuery: Code: 60. DB::Exception: Table test_wtagobs7.table_to_drop does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51340) (comment: 01072_drop_temporary_table_with_same_name.sql) (in query: DROP TABLE table_to_drop;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:54.930670 [ 5967 ] {f49871ec-c383-4651-8b68-19c1645f4958} TCPHandler: Code: 60. DB::Exception: Table test_wtagobs7.table_to_drop does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:54.959729 [ 5967 ] {85222297-165d-4960-b5a8-c19e089f246b} executeQuery: Code: 60. DB::Exception: Table test_wtagobs7.table_to_drop does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51340) (comment: 01072_drop_temporary_table_with_same_name.sql) (in query: DROP TABLE table_to_drop;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:29:54.960357 [ 5967 ] {85222297-165d-4960-b5a8-c19e089f246b} TCPHandler: Code: 60. DB::Exception: Table test_wtagobs7.table_to_drop does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:02.679508 [ 50481 ] {38cdd537-c035-4631-bdc7-9b33093d66e3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 74.01 MiB (attempt to allocate chunk of 67108864 bytes), maximum: 47.68 MiB.: While executing JoiningTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51422) (comment: 01062_pm_all_join_with_block_continuation.sql) (in query: SELECT count(1) FROM ( SELECT materialize(1) as k, n FROM numbers(10) nums JOIN (SELECT materialize(1) AS k, number n FROM numbers(1000000)) j USING k);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b19c8c6 in /usr/bin/clickhouse 13. /build/src/Columns/ColumnVector.cpp:492: DB::ColumnVector::insertRangeFrom(DB::IColumn const&, unsigned long, unsigned long) @ 0x000000001d3c0aef in /usr/bin/clickhouse 14. /build/src/Interpreters/MergeJoin.cpp:384: DB::(anonymous namespace)::copyLeftRange(DB::Block const&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long, unsigned long) @ 0x000000001cc26d94 in /usr/bin/clickhouse 15. /build/src/Interpreters/MergeJoin.cpp:435: bool DB::(anonymous namespace)::joinEquals(DB::Block const&, DB::Block const&, DB::Block const&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::MergeJoinEqualRange&, unsigned long) @ 0x000000001cc255ed in /usr/bin/clickhouse 16. /build/src/Interpreters/MergeJoin.cpp:941: DB::MergeJoin::allInnerJoin(DB::MergeJoinCursor&, DB::Block const&, DB::MergeJoin::RightBlockInfo&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long&) @ 0x000000001cc2529d in /usr/bin/clickhouse 17. /build/src/Interpreters/MergeJoin.cpp:831: void DB::MergeJoin::joinSortedBlock(DB::Block&, std::shared_ptr&) @ 0x000000001cc28245 in /usr/bin/clickhouse 18. /build/src/Interpreters/MergeJoin.cpp:726: DB::MergeJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001cc24d3a in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/JoiningTransform.cpp:206: DB::JoiningTransform::readExecute(DB::Chunk&) @ 0x000000001eb6a723 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/JoiningTransform.cpp:191: DB::JoiningTransform::transform(DB::Chunk&) @ 0x000000001eb6a48e in /usr/bin/clickhouse 21. /build/src/Processors/Transforms/JoiningTransform.cpp:125: DB::JoiningTransform::work() @ 0x000000001eb69d9d in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 2024.05.01 13:30:02.686679 [ 50481 ] {38cdd537-c035-4631-bdc7-9b33093d66e3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 74.01 MiB (attempt to allocate chunk of 67108864 bytes), maximum: 47.68 MiB.: While executing JoiningTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b19c8c6 in /usr/bin/clickhouse 13. /build/src/Columns/ColumnVector.cpp:492: DB::ColumnVector::insertRangeFrom(DB::IColumn const&, unsigned long, unsigned long) @ 0x000000001d3c0aef in /usr/bin/clickhouse 14. /build/src/Interpreters/MergeJoin.cpp:384: DB::(anonymous namespace)::copyLeftRange(DB::Block const&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long, unsigned long) @ 0x000000001cc26d94 in /usr/bin/clickhouse 15. /build/src/Interpreters/MergeJoin.cpp:435: bool DB::(anonymous namespace)::joinEquals(DB::Block const&, DB::Block const&, DB::Block const&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::MergeJoinEqualRange&, unsigned long) @ 0x000000001cc255ed in /usr/bin/clickhouse 16. /build/src/Interpreters/MergeJoin.cpp:941: DB::MergeJoin::allInnerJoin(DB::MergeJoinCursor&, DB::Block const&, DB::MergeJoin::RightBlockInfo&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long&) @ 0x000000001cc2529d in /usr/bin/clickhouse 17. /build/src/Interpreters/MergeJoin.cpp:831: void DB::MergeJoin::joinSortedBlock(DB::Block&, std::shared_ptr&) @ 0x000000001cc28245 in /usr/bin/clickhouse 18. /build/src/Interpreters/MergeJoin.cpp:726: DB::MergeJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001cc24d3a in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/JoiningTransform.cpp:206: DB::JoiningTransform::readExecute(DB::Chunk&) @ 0x000000001eb6a723 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/JoiningTransform.cpp:191: DB::JoiningTransform::transform(DB::Chunk&) @ 0x000000001eb6a48e in /usr/bin/clickhouse 21. /build/src/Processors/Transforms/JoiningTransform.cpp:125: DB::JoiningTransform::work() @ 0x000000001eb69d9d in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 2024.05.01 13:30:02.793394 [ 50481 ] {68f06421-a4e5-4582-9c60-ae63614c5a82} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 72.03 MiB (attempt to allocate chunk of 67108864 bytes), maximum: 47.68 MiB.: While executing JoiningTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51422) (comment: 01062_pm_all_join_with_block_continuation.sql) (in query: SELECT count(1) FROM ( SELECT materialize(1) as k, n FROM numbers(1000) nums JOIN (SELECT materialize(1) AS k, number n FROM numbers(10000)) j USING k);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b19c8c6 in /usr/bin/clickhouse 13. /build/src/Columns/ColumnVector.cpp:492: DB::ColumnVector::insertRangeFrom(DB::IColumn const&, unsigned long, unsigned long) @ 0x000000001d3c0aef in /usr/bin/clickhouse 14. /build/src/Interpreters/MergeJoin.cpp:384: DB::(anonymous namespace)::copyLeftRange(DB::Block const&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long, unsigned long) @ 0x000000001cc26d94 in /usr/bin/clickhouse 15. /build/src/Interpreters/MergeJoin.cpp:435: bool DB::(anonymous namespace)::joinEquals(DB::Block const&, DB::Block const&, DB::Block const&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::MergeJoinEqualRange&, unsigned long) @ 0x000000001cc255ed in /usr/bin/clickhouse 16. /build/src/Interpreters/MergeJoin.cpp:941: DB::MergeJoin::allInnerJoin(DB::MergeJoinCursor&, DB::Block const&, DB::MergeJoin::RightBlockInfo&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long&) @ 0x000000001cc2529d in /usr/bin/clickhouse 17. /build/src/Interpreters/MergeJoin.cpp:831: void DB::MergeJoin::joinSortedBlock(DB::Block&, std::shared_ptr&) @ 0x000000001cc28245 in /usr/bin/clickhouse 18. /build/src/Interpreters/MergeJoin.cpp:726: DB::MergeJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001cc24d3a in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/JoiningTransform.cpp:206: DB::JoiningTransform::readExecute(DB::Chunk&) @ 0x000000001eb6a723 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/JoiningTransform.cpp:191: DB::JoiningTransform::transform(DB::Chunk&) @ 0x000000001eb6a48e in /usr/bin/clickhouse 21. /build/src/Processors/Transforms/JoiningTransform.cpp:125: DB::JoiningTransform::work() @ 0x000000001eb69d9d in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 2024.05.01 13:30:02.797518 [ 50481 ] {68f06421-a4e5-4582-9c60-ae63614c5a82} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 72.03 MiB (attempt to allocate chunk of 67108864 bytes), maximum: 47.68 MiB.: While executing JoiningTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/Common/PODArray.h:0: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::resize<>(unsigned long) @ 0x000000000b19c8c6 in /usr/bin/clickhouse 13. /build/src/Columns/ColumnVector.cpp:492: DB::ColumnVector::insertRangeFrom(DB::IColumn const&, unsigned long, unsigned long) @ 0x000000001d3c0aef in /usr/bin/clickhouse 14. /build/src/Interpreters/MergeJoin.cpp:384: DB::(anonymous namespace)::copyLeftRange(DB::Block const&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long, unsigned long) @ 0x000000001cc26d94 in /usr/bin/clickhouse 15. /build/src/Interpreters/MergeJoin.cpp:435: bool DB::(anonymous namespace)::joinEquals(DB::Block const&, DB::Block const&, DB::Block const&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::MergeJoinEqualRange&, unsigned long) @ 0x000000001cc255ed in /usr/bin/clickhouse 16. /build/src/Interpreters/MergeJoin.cpp:941: DB::MergeJoin::allInnerJoin(DB::MergeJoinCursor&, DB::Block const&, DB::MergeJoin::RightBlockInfo&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, unsigned long&) @ 0x000000001cc2529d in /usr/bin/clickhouse 17. /build/src/Interpreters/MergeJoin.cpp:831: void DB::MergeJoin::joinSortedBlock(DB::Block&, std::shared_ptr&) @ 0x000000001cc28245 in /usr/bin/clickhouse 18. /build/src/Interpreters/MergeJoin.cpp:726: DB::MergeJoin::joinBlock(DB::Block&, std::shared_ptr&) @ 0x000000001cc24d3a in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/JoiningTransform.cpp:206: DB::JoiningTransform::readExecute(DB::Chunk&) @ 0x000000001eb6a723 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/JoiningTransform.cpp:191: DB::JoiningTransform::transform(DB::Chunk&) @ 0x000000001eb6a48e in /usr/bin/clickhouse 21. /build/src/Processors/Transforms/JoiningTransform.cpp:125: DB::JoiningTransform::work() @ 0x000000001eb69d9d in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 2024.05.01 13:30:15.262484 [ 5964 ] {1d84d701-68af-4330-813e-b6b7f41f5e41} executeQuery: Code: 264. DB::Exception: Table 'test_yq0bpikm.testJoinTable (abfc6a6e-0f2e-432c-954b-2b28175cf5d7)' has incompatible type of JOIN. (INCOMPATIBLE_TYPE_OF_JOIN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46178) (comment: 01050_engine_join_crash.sql) (in query: SELECT * FROM (SELECT * FROM numbers(10)) js1 INNER JOIN testJoinTable USING number;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:185: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4056 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5750 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:15.263383 [ 5964 ] {1d84d701-68af-4330-813e-b6b7f41f5e41} TCPHandler: Code: 264. DB::Exception: Table 'test_yq0bpikm.testJoinTable (abfc6a6e-0f2e-432c-954b-2b28175cf5d7)' has incompatible type of JOIN. (INCOMPATIBLE_TYPE_OF_JOIN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/StorageJoin.cpp:185: DB::StorageJoin::getJoinLocked(std::shared_ptr, std::shared_ptr, std::vector> const&) const @ 0x000000001d6c4056 in /usr/bin/clickhouse 7. /build/src/Interpreters/ExpressionAnalyzer.cpp:1143: DB::SelectQueryExpressionAnalyzer::makeJoin(DB::ASTTablesInSelectQueryElement const&, std::vector> const&, std::shared_ptr&) @ 0x000000001bfa5750 in /usr/bin/clickhouse 8. /build/src/Interpreters/ExpressionAnalyzer.cpp:928: DB::SelectQueryExpressionAnalyzer::appendJoin(DB::ExpressionActionsChain&, std::shared_ptr&) @ 0x000000001bfa4ebc in /usr/bin/clickhouse 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1887: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf2dd in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:16.637641 [ 5964 ] {af653a43-2a75-4481-b7f3-6182c428818b} executeQuery: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(nan). (TOO_LARGE_STRING_SIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46218) (comment: 01054_random_printable_ascii_ubsan.sh) (in query: SELECT randomPrintableASCII(nan);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241180c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:30:16.639961 [ 5964 ] {af653a43-2a75-4481-b7f3-6182c428818b} TCPHandler: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(nan). (TOO_LARGE_STRING_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241180c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:30:18.529909 [ 60040 ] {e2962b79-55ae-4cee-bf98-fd54fd4653de} executeQuery: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(inf). (TOO_LARGE_STRING_SIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58812) (comment: 01054_random_printable_ascii_ubsan.sh) (in query: SELECT randomPrintableASCII(inf);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241180c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:30:18.531954 [ 60040 ] {e2962b79-55ae-4cee-bf98-fd54fd4653de} TCPHandler: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(inf). (TOO_LARGE_STRING_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241180c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:30:20.477715 [ 60040 ] {6527c541-e419-4d44-af26-cd2574c5cecd} executeQuery: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(-inf). (TOO_LARGE_STRING_SIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58862) (comment: 01054_random_printable_ascii_ubsan.sh) (in query: SELECT randomPrintableASCII(-inf);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241180c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:30:20.480160 [ 60040 ] {6527c541-e419-4d44-af26-cd2574c5cecd} TCPHandler: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(-inf). (TOO_LARGE_STRING_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241180c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:30:22.511324 [ 50700 ] {2eb0ef9f-acdd-4ce2-b25f-7954ce764982} executeQuery: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(1e300). (TOO_LARGE_STRING_SIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58910) (comment: 01054_random_printable_ascii_ubsan.sh) (in query: SELECT randomPrintableASCII(1e300);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241180c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:30:22.512988 [ 50700 ] {2eb0ef9f-acdd-4ce2-b25f-7954ce764982} TCPHandler: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(1e300). (TOO_LARGE_STRING_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241180c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:30:24.429415 [ 60037 ] {7c486baf-0788-43f8-86d9-1215204a0167} executeQuery: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(-123.456). (TOO_LARGE_STRING_SIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58946) (comment: 01054_random_printable_ascii_ubsan.sh) (in query: SELECT randomPrintableASCII(-123.456);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241180c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:30:24.432076 [ 60037 ] {7c486baf-0788-43f8-86d9-1215204a0167} TCPHandler: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(-123.456). (TOO_LARGE_STRING_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241180c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:30:24.801746 [ 60040 ] {2aa3cfe2-f80b-402e-a93b-f24714aa20de} executeQuery: Code: 42. DB::Exception: Function arrayZip needs at least one argument; passed 0.: While processing arrayZip(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58944) (comment: 01045_array_zip.sql) (in query: SELECT arrayZip();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x000000000b22a7ac in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayZip.cpp:42: DB::FunctionArrayZip::getReturnTypeImpl(std::vector> const&) const @ 0x0000000013301d89 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:30:24.802687 [ 60040 ] {2aa3cfe2-f80b-402e-a93b-f24714aa20de} TCPHandler: Code: 42. DB::Exception: Function arrayZip needs at least one argument; passed 0.: While processing arrayZip(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x000000000b22a7ac in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayZip.cpp:42: DB::FunctionArrayZip::getReturnTypeImpl(std::vector> const&) const @ 0x0000000013301d89 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:30:24.952437 [ 60040 ] {848ca513-5824-4654-9dcc-3741dfbcf040} executeQuery: Code: 43. DB::Exception: Argument 1 of function arrayZip must be array. Found String instead.: While processing arrayZip('a', 'b', 'c'). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58944) (comment: 01045_array_zip.sql) (in query: SELECT arrayZip('a', 'b', 'c');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayZip.cpp:51: DB::FunctionArrayZip::getReturnTypeImpl(std::vector> const&) const @ 0x0000000013301f91 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:30:24.953597 [ 60040 ] {848ca513-5824-4654-9dcc-3741dfbcf040} TCPHandler: Code: 43. DB::Exception: Argument 1 of function arrayZip must be array. Found String instead.: While processing arrayZip('a', 'b', 'c'). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayZip.cpp:51: DB::FunctionArrayZip::getReturnTypeImpl(std::vector> const&) const @ 0x0000000013301f91 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:30:25.078100 [ 60040 ] {92326501-0eab-490e-be1b-38ad7405c098} executeQuery: Code: 190. DB::Exception: The argument 1 and argument 2 of function arrayZip have different array sizes: While processing arrayZip(['a', 'b', 'c'], ['d', 'e', 'f', 'd']). (SIZES_OF_ARRAYS_DONT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58944) (comment: 01045_array_zip.sql) (in query: SELECT arrayZip(['a', 'b', 'c'], ['d', 'e', 'f', 'd']);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, String&&) @ 0x00000000114ff4cc in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayZip.cpp:84: DB::FunctionArrayZip::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013301a41 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:30:25.079232 [ 60040 ] {92326501-0eab-490e-be1b-38ad7405c098} TCPHandler: Code: 190. DB::Exception: The argument 1 and argument 2 of function arrayZip have different array sizes: While processing arrayZip(['a', 'b', 'c'], ['d', 'e', 'f', 'd']). (SIZES_OF_ARRAYS_DONT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&&, String&&) @ 0x00000000114ff4cc in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayZip.cpp:84: DB::FunctionArrayZip::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000013301a41 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:30:26.408308 [ 60040 ] {f0d854e6-6ec5-4317-ad3e-20840760fd0f} executeQuery: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(-1). (TOO_LARGE_STRING_SIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58976) (comment: 01054_random_printable_ascii_ubsan.sh) (in query: SELECT randomPrintableASCII(-1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241180c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:30:26.410623 [ 60040 ] {f0d854e6-6ec5-4317-ad3e-20840760fd0f} TCPHandler: Code: 131. DB::Exception: Too large string size in function randomPrintableASCII: While processing randomPrintableASCII(-1). (TOO_LARGE_STRING_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/randomPrintableASCII.cpp:77: DB::(anonymous namespace)::FunctionRandomPrintableASCII::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001241180c in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:30:28.937235 [ 60040 ] {7c5b0d9d-a734-48fc-a644-a7492f1ca9f9} executeQuery: Code: 258. DB::Exception: Different number of columns in UNION ALL elements: c1, c2, c3 and c1, c2 . (UNION_ALL_RESULT_STRUCTURES_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43624) (comment: 01036_union_different_columns.sql) (in query: select 1 as c1, 2 as c2, 3 as c3 union all (select 1 as c1, 2 as c2, 3 as c3 union all select 1 as c1, 2 as c2) -- { serverError 258 } ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:218: DB::InterpreterSelectWithUnionQuery::getCommonHeaderForUnion(std::vector> const&) @ 0x000000001cbbc107 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:191: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb88f in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:28.938040 [ 60040 ] {7c5b0d9d-a734-48fc-a644-a7492f1ca9f9} TCPHandler: Code: 258. DB::Exception: Different number of columns in UNION ALL elements: c1, c2, c3 and c1, c2 . (UNION_ALL_RESULT_STRUCTURES_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:218: DB::InterpreterSelectWithUnionQuery::getCommonHeaderForUnion(std::vector> const&) @ 0x000000001cbbc107 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:191: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb88f in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:30.904224 [ 1276 ] {1ffc6887-5b00-4b17-8743-ad89744a63bf} executeQuery: Code: 47. DB::Exception: There's no column 'l.c' in table 'l': While processing l.c. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43714) (comment: 01034_unknown_qualified_column_in_join.sql) (in query: SELECT l.c FROM (SELECT 1 AS a, 2 AS b) AS l join (SELECT 2 AS b, 3 AS c) AS r USING b;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&) @ 0x00000000139f8d4c in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:128: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00f10c in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:106: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00ee41 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cf9e000 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cf9de45 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cf8eb8c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d086 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:30:30.905358 [ 1276 ] {1ffc6887-5b00-4b17-8743-ad89744a63bf} TCPHandler: Code: 47. DB::Exception: There's no column 'l.c' in table 'l': While processing l.c. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&) @ 0x00000000139f8d4c in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:128: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00f10c in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:106: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00ee41 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cf9e000 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cf9de45 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cf8eb8c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d086 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:30:30.920799 [ 1276 ] {384d4510-5657-4e14-95b2-03a0bc6a4b6f} executeQuery: Code: 47. DB::Exception: There's no column 'r.a' in table 'r': While processing r.a. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43714) (comment: 01034_unknown_qualified_column_in_join.sql) (in query: SELECT r.a FROM (SELECT 1 AS a, 2 AS b) AS l join (SELECT 2 AS b, 3 AS c) AS r USING b;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&) @ 0x00000000139f8d4c in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:128: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00f10c in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:106: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00ee41 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cf9e000 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cf9de45 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cf8eb8c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d086 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:30:30.921795 [ 1276 ] {384d4510-5657-4e14-95b2-03a0bc6a4b6f} TCPHandler: Code: 47. DB::Exception: There's no column 'r.a' in table 'r': While processing r.a. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&) @ 0x00000000139f8d4c in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:128: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00f10c in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:106: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00ee41 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cf9e000 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cf9de45 in /usr/bin/clickhouse 18. /build/src/Interpreters/TreeRewriter.cpp:310: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cf8eb8c in /usr/bin/clickhouse 19. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d086 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:30:35.201200 [ 5964 ] {78d92114-daa6-42e2-965d-066a3a4757c1} executeQuery: Code: 10. DB::Exception: Column `v2` not found in table test_6vv807c4.mv_extra_columns_dst (b75c2f35-4c1d-41aa-97f5-88474ebc3b41). (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43802) (comment: 01019_materialized_view_select_extra_columns.sql) (in query: SELECT * FROM mv_extra_columns_view;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Storages/StorageSnapshot.cpp:142: DB::StorageSnapshot::getSampleBlockForColumns(std::vector> const&) const @ 0x000000001d996196 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:255: DB::ReadFromMergeTree::ReadFromMergeTree(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector>, std::vector>, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr, std::shared_ptr, unsigned long, unsigned long, bool, std::shared_ptr, std::equal_to, std::allocator>>>, Poco::Logger*, std::shared_ptr, bool) @ 0x000000001ee2c7d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000], std::allocator>>, std::vector, std::allocator>>, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&>(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&) @ 0x000000001df58338 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1304: DB::MergeTreeDataSelectExecutor::readFromParts(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, std::shared_ptr, bool) const @ 0x000000001df4590b in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:168: DB::MergeTreeDataSelectExecutor::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, DB::QueryProcessingStage::Enum, std::shared_ptr, std::equal_to, std::allocator>>>, bool) const @ 0x000000001df4216c in /usr/bin/clickhouse 11. /build/src/Storages/StorageMergeTree.cpp:252: DB::StorageMergeTree::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001e2fa2bf in /usr/bin/clickhouse 12. /build/src/Storages/StorageMaterializedView.cpp:163: DB::StorageMaterializedView::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d71a10c in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:35.202282 [ 5964 ] {78d92114-daa6-42e2-965d-066a3a4757c1} TCPHandler: Code: 10. DB::Exception: Column `v2` not found in table test_6vv807c4.mv_extra_columns_dst (b75c2f35-4c1d-41aa-97f5-88474ebc3b41). (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Storages/StorageSnapshot.cpp:142: DB::StorageSnapshot::getSampleBlockForColumns(std::vector> const&) const @ 0x000000001d996196 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:255: DB::ReadFromMergeTree::ReadFromMergeTree(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector>, std::vector>, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr, std::shared_ptr, unsigned long, unsigned long, bool, std::shared_ptr, std::equal_to, std::allocator>>>, Poco::Logger*, std::shared_ptr, bool) @ 0x000000001ee2c7d3 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000], std::allocator>>, std::vector, std::allocator>>, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&>(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&) @ 0x000000001df58338 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1304: DB::MergeTreeDataSelectExecutor::readFromParts(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, std::shared_ptr, bool) const @ 0x000000001df4590b in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:168: DB::MergeTreeDataSelectExecutor::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, DB::QueryProcessingStage::Enum, std::shared_ptr, std::equal_to, std::allocator>>>, bool) const @ 0x000000001df4216c in /usr/bin/clickhouse 11. /build/src/Storages/StorageMergeTree.cpp:252: DB::StorageMergeTree::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001e2fa2bf in /usr/bin/clickhouse 12. /build/src/Storages/StorageMaterializedView.cpp:163: DB::StorageMaterializedView::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d71a10c in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:36.424541 [ 60037 ] {1c512928-90a8-4aae-ae08-6238ec7202ce} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 4.01 MiB (attempt to allocate chunk of 1050624 bytes), maximum: 3.81 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43852) (comment: 01017_uniqCombined_memory_usage.sql) (in query: SELECT sum(u) FROM (SELECT intDiv(number, 8192) AS k, uniqCombined(number % 8192) u FROM numbers(8192 * 100) GROUP BY k);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x00000000170502ce in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIj12HashSetTableIj13HashTableCellIj11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu13ELDu17ES3_j24HyperLogLogBiasEstimatorINS_20UniqCombinedBiasDataEEL15HyperLogLogMode3EdE6insertEj @ 0x0000000017259740 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedItLDu17EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x000000001725cf3c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedItLDu17EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x000000001725d30b in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c222f56 in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cbda7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010985 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:30:36.431643 [ 60037 ] {1c512928-90a8-4aae-ae08-6238ec7202ce} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 4.01 MiB (attempt to allocate chunk of 1050624 bytes), maximum: 3.81 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x00000000170502ce in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIj12HashSetTableIj13HashTableCellIj11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu13ELDu17ES3_j24HyperLogLogBiasEstimatorINS_20UniqCombinedBiasDataEEL15HyperLogLogMode3EdE6insertEj @ 0x0000000017259740 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedItLDu17EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x000000001725cf3c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedItLDu17EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x000000001725d30b in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c222f56 in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cbda7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010985 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:30:37.083238 [ 60037 ] {a693a146-095a-4db4-8564-0c96c2cd2e7f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 4.02 MiB (attempt to allocate chunk of 1050624 bytes), maximum: 3.81 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43852) (comment: 01017_uniqCombined_memory_usage.sql) (in query: SELECT sum(u) FROM (SELECT intDiv(number, 4096) AS k, uniqCombined(reinterpretAsString(number % 4096)) u FROM numbers(4096 * 100) GROUP BY k);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x0000000017018a4e in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIm12HashSetTableIm13HashTableCellIm11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu12ELDu17ES3_m24HyperLogLogBiasEstimatorINS_20UniqCombinedBiasDataEEL15HyperLogLogMode3EdE6insertEm @ 0x0000000017224c80 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEELDu17EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x000000001727705b in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELDu17EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x000000001727742b in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c222f56 in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cbda7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010985 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:30:37.090534 [ 60037 ] {a693a146-095a-4db4-8564-0c96c2cd2e7f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 4.02 MiB (attempt to allocate chunk of 1050624 bytes), maximum: 3.81 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x0000000017018a4e in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIm12HashSetTableIm13HashTableCellIm11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu12ELDu17ES3_m24HyperLogLogBiasEstimatorINS_20UniqCombinedBiasDataEEL15HyperLogLogMode3EdE6insertEm @ 0x0000000017224c80 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEELDu17EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x000000001727705b in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELDu17EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x000000001727742b in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c222f56 in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cbda7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010985 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:30:37.625531 [ 60037 ] {7bb8f510-374d-4a6a-9061-a9ab345ad7ad} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 2.00 MiB (attempt to allocate chunk of 1049376 bytes), maximum: 1.91 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43852) (comment: 01017_uniqCombined_memory_usage.sql) (in query: SELECT sum(u) FROM (SELECT intDiv(number, 4096) AS k, uniqCombined(16)(number % 4096) u FROM numbers(4096 * 100) GROUP BY k);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x00000000138747ce in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:191: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013875e6b in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x00000000170502ce in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIj12HashSetTableIj13HashTableCellIj11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu12ELDu16ES3_j20TrivialBiasEstimatorL15HyperLogLogMode3EdE6insertEj @ 0x00000000171f0c20 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedItLDu16EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x00000000171f437c in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedItLDu16EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x00000000171f474b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c222f56 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cbda7 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010985 in /usr/bin/clickhouse 19. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 21. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 2024.05.01 13:30:37.632853 [ 60037 ] {7bb8f510-374d-4a6a-9061-a9ab345ad7ad} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 2.00 MiB (attempt to allocate chunk of 1049376 bytes), maximum: 1.91 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x00000000138747ce in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:191: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013875e6b in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x00000000170502ce in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIj12HashSetTableIj13HashTableCellIj11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu12ELDu16ES3_j20TrivialBiasEstimatorL15HyperLogLogMode3EdE6insertEj @ 0x00000000171f0c20 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedItLDu16EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x00000000171f437c in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedItLDu16EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x00000000171f474b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c222f56 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cbda7 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010985 in /usr/bin/clickhouse 19. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 21. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 2024.05.01 13:30:38.048243 [ 60037 ] {a55d0dbd-9490-48a4-9c2a-77cbbaf74cf7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 2.01 MiB (attempt to allocate chunk of 1054768 bytes), maximum: 1.91 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43852) (comment: 01017_uniqCombined_memory_usage.sql) (in query: SELECT sum(u) FROM (SELECT intDiv(number, 2048) AS k, uniqCombined(16)(reinterpretAsString(number % 2048)) u FROM numbers(2048 * 100) GROUP BY k);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x00000000138747ce in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:191: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013875e6b in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x0000000017018a4e in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIm12HashSetTableIm13HashTableCellIm11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu11ELDu16ES3_m20TrivialBiasEstimatorL15HyperLogLogMode3EdE6insertEm @ 0x00000000171bc8e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEELDu16EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x000000001720e49b in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELDu16EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x000000001720e86b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c222f56 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cbda7 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010985 in /usr/bin/clickhouse 19. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 21. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 2024.05.01 13:30:38.054023 [ 60037 ] {a55d0dbd-9490-48a4-9c2a-77cbbaf74cf7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 2.01 MiB (attempt to allocate chunk of 1054768 bytes), maximum: 1.91 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:102: Allocator::alloc(unsigned long, unsigned long) @ 0x00000000138747ce in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:191: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013875e6b in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x0000000017018a4e in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIm12HashSetTableIm13HashTableCellIm11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu11ELDu16ES3_m20TrivialBiasEstimatorL15HyperLogLogMode3EdE6insertEm @ 0x00000000171bc8e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEELDu16EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x000000001720e49b in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELDu16EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x000000001720e86b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c222f56 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cbda7 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010985 in /usr/bin/clickhouse 19. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 21. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 2024.05.01 13:30:38.761739 [ 60037 ] {ea09cae3-bc24-4f0d-b8cc-de5ab6a2caf3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.15 MiB (attempt to allocate chunk of 1058176 bytes), maximum: 7.63 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43852) (comment: 01017_uniqCombined_memory_usage.sql) (in query: SELECT sum(u) FROM (SELECT intDiv(number, 16384) AS k, uniqCombined(18)(number % 16384) u FROM numbers(16384 * 100) GROUP BY k);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x00000000170502ce in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIj12HashSetTableIj13HashTableCellIj11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu14ELDu18ES3_j20TrivialBiasEstimatorL15HyperLogLogMode3EdE6insertEj @ 0x00000000172c1b80 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedItLDu18EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x00000000172c52dc in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedItLDu18EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x00000000172c56ab in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c222f56 in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cbda7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010985 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:30:38.772339 [ 60037 ] {ea09cae3-bc24-4f0d-b8cc-de5ab6a2caf3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.15 MiB (attempt to allocate chunk of 1058176 bytes), maximum: 7.63 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x00000000170502ce in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIj12HashSetTableIj13HashTableCellIj11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu14ELDu18ES3_j20TrivialBiasEstimatorL15HyperLogLogMode3EdE6insertEj @ 0x00000000172c1b80 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedItLDu18EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x00000000172c52dc in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedItLDu18EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x00000000172c56ab in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c222f56 in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cbda7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010985 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:30:39.152641 [ 5964 ] {5c896661-3ae6-46c4-bb47-5f0d0caaf68c} executeQuery: Code: 403. DB::Exception: Cannot get JOIN keys from JOIN ON section: '(shardNum() AS _shard_num) = shard_num', found keys: [Left keys: [] Right keys [] Condition columns: '', 'equals(shardNum(), shard_num)']. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43872) (comment: 01018_Distributed__shard_num.sql) (in query: SELECT _shard_num, key, b.host_name, b.host_address IN ('::1', '127.0.0.1'), b.port FROM dist_1 a JOIN system.clusters b ON _shard_num = b.shard_num WHERE b.cluster = 'test_cluster_two_shards_localhost';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:658: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf914dd in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:356: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9a689 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:198: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a4e6 in /usr/bin/clickhouse 12. /build/src/Storages/StorageDistributed.cpp:748: DB::StorageDistributed::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d648534 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:39.153834 [ 5964 ] {5c896661-3ae6-46c4-bb47-5f0d0caaf68c} TCPHandler: Code: 403. DB::Exception: Cannot get JOIN keys from JOIN ON section: '(shardNum() AS _shard_num) = shard_num', found keys: [Left keys: [] Right keys [] Condition columns: '', 'equals(shardNum(), shard_num)']. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:658: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf914dd in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:356: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9a689 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:198: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a4e6 in /usr/bin/clickhouse 12. /build/src/Storages/StorageDistributed.cpp:748: DB::StorageDistributed::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d648534 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:39.380108 [ 5964 ] {e46fa282-14a2-4432-bdc5-c3b25be2d6cb} executeQuery: Code: 47. DB::Exception: There's no column 'a._shard_num' in table 'a': While processing a._shard_num: While processing ALL INNER JOIN ... ON a._shard_num = b.shard_num. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43872) (comment: 01018_Distributed__shard_num.sql) (in query: -- the same with JOIN, just in case SELECT a._shard_num, a.key, b.host_name, b.host_address IN ('::1', '127.0.0.1'), b.port FROM dist_1 a JOIN system.clusters b ON a._shard_num = b.shard_num WHERE b.cluster = 'test_cluster_two_shards_localhost';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&) @ 0x00000000139f8d4c in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:128: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00f10c in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:106: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00ee41 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cf9e000 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cf9de45 in /usr/bin/clickhouse 18. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:178: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTTableJoin&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00f33d in /usr/bin/clickhouse 19. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:108: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00ee77 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cf9e000 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 2024.05.01 13:30:39.381154 [ 5964 ] {e46fa282-14a2-4432-bdc5-c3b25be2d6cb} TCPHandler: Code: 47. DB::Exception: There's no column 'a._shard_num' in table 'a': While processing a._shard_num: While processing ALL INNER JOIN ... ON a._shard_num = b.shard_num. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&) @ 0x00000000139f8d4c in /usr/bin/clickhouse 6. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:128: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTIdentifier&, std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00f10c in /usr/bin/clickhouse 7. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:106: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00ee41 in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cf9e000 in /usr/bin/clickhouse 9. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1e1 in /usr/bin/clickhouse 10. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 11. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 12. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cf9de45 in /usr/bin/clickhouse 18. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:178: DB::TranslateQualifiedNamesMatcher::visit(DB::ASTTableJoin&, std::shared_ptr const&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00f33d in /usr/bin/clickhouse 19. /build/src/Interpreters/TranslateQualifiedNamesVisitor.cpp:108: DB::TranslateQualifiedNamesMatcher::visit(std::shared_ptr&, DB::TranslateQualifiedNamesMatcher::Data&) @ 0x000000001d00ee77 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cf9e000 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cf9e286 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cf9e1ee in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cf9df8a in /usr/bin/clickhouse 2024.05.01 13:30:39.777797 [ 60037 ] {b055be07-0891-4d84-8e67-cf331ac9ddcf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.02 MiB (attempt to allocate chunk of 1049600 bytes), maximum: 7.63 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43852) (comment: 01017_uniqCombined_memory_usage.sql) (in query: SELECT sum(u) FROM (SELECT intDiv(number, 8192) AS k, uniqCombined(18)(reinterpretAsString(number % 8192)) u FROM numbers(8192 * 100) GROUP BY k);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x0000000017018a4e in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIm12HashSetTableIm13HashTableCellIm11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu13ELDu18ES3_m20TrivialBiasEstimatorL15HyperLogLogMode3EdE6insertEm @ 0x000000001728d840 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEELDu18EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x00000000172df3fb in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELDu18EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x00000000172df7cb in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c222f56 in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cbda7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010985 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:30:39.784848 [ 60037 ] {b055be07-0891-4d84-8e67-cf331ac9ddcf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 8.02 MiB (attempt to allocate chunk of 1049600 bytes), maximum: 7.63 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/HashTable/HashTable.h:582: HashTable, TrivialHash, DB::UniqCombinedHashTableGrower, Allocator>::resize(unsigned long, unsigned long) @ 0x0000000017018a4e in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:989: _ZN2DB28CombinedCardinalityEstimatorIm12HashSetTableIm13HashTableCellIm11TrivialHash16HashTableNoStateES3_NS_27UniqCombinedHashTableGrowerE9AllocatorILb1ELb1EEELDu16ELDu13ELDu18ES3_m20TrivialBiasEstimatorL15HyperLogLogMode3EdE6insertEm @ 0x000000001728d840 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionUniqCombined.h:158: _ZNK2DB29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEELDu18EjE3addEPcPPKNS_7IColumnEmPNS_5ArenaE @ 0x00000000172df3fb in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:478: _ZNK2DB24IAggregateFunctionHelperINS_29AggregateFunctionUniqCombinedINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELDu18EjEEE8addBatchEmmPPcmPPKNS_7IColumnEPNS_5ArenaEl @ 0x00000000172df7cb in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1303: void DB::Aggregator::executeImplBatch, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c222f56 in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>>(DB::AggregationMethodOneNumber, HashTableNoState, PairNoInit>, HashCRC32, HashTableGrowerWithPrecalculation<8ul>, Allocator>, true, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cbda7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010985 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 13:30:42.110121 [ 1276 ] {21033d1c-4b17-4966-bf4f-1c421d6928d4} executeQuery: Code: 36. DB::Exception: Engine Distributed doesn't support skipping indices. Currently only the following engines have support for the feature: [ReplicatedVersionedCollapsingMergeTree, ReplicatedSummingMergeTree, MergeTree, ReplicatedReplacingMergeTree, VersionedCollapsingMergeTree, ReplacingMergeTree, ReplicatedAggregatingMergeTree, ReplicatedMergeTree, ReplicatedCollapsingMergeTree, ReplicatedGraphiteMergeTree, SummingMergeTree, GraphiteMergeTree, CollapsingMergeTree, AggregatingMergeTree]. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60278) (comment: 01011_test_create_as_skip_indices.sql) (in query: CREATE TABLE dist (key int, INDEX i1 key TYPE minmax GRANULARITY 1) Engine=Distributed(test_shard_localhost, currentDatabase(), 'foo');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&) @ 0x00000000139f6e08 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFactory.cpp:171: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const::$_0::operator()(String, std::function) const @ 0x000000001d688c19 in /usr/bin/clickhouse 7. /build/src/Storages/StorageFactory.cpp:193: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d687ef0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:42.232165 [ 60037 ] {5d7785e5-6297-49e5-b398-5d347dd8d3ac} executeQuery: Code: 48. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60262) (comment: 01013_totals_without_aggregation.sql) (in query: SELECT 1 AS n WITH TOTALS;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [81]) @ 0x000000001279445e in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:276: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001c98e6a6 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7114: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91067c in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 10. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:42.232201 [ 1276 ] {21033d1c-4b17-4966-bf4f-1c421d6928d4} TCPHandler: Code: 36. DB::Exception: Engine Distributed doesn't support skipping indices. Currently only the following engines have support for the feature: [ReplicatedVersionedCollapsingMergeTree, ReplicatedSummingMergeTree, MergeTree, ReplicatedReplacingMergeTree, VersionedCollapsingMergeTree, ReplacingMergeTree, ReplicatedAggregatingMergeTree, ReplicatedMergeTree, ReplicatedCollapsingMergeTree, ReplicatedGraphiteMergeTree, SummingMergeTree, GraphiteMergeTree, CollapsingMergeTree, AggregatingMergeTree]. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&) @ 0x00000000139f6e08 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFactory.cpp:171: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const::$_0::operator()(String, std::function) const @ 0x000000001d688c19 in /usr/bin/clickhouse 7. /build/src/Storages/StorageFactory.cpp:193: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d687ef0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:42.233063 [ 60037 ] {5d7785e5-6297-49e5-b398-5d347dd8d3ac} TCPHandler: Code: 48. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [81]) @ 0x000000001279445e in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:276: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001c98e6a6 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7114: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91067c in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 10. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:42.239393 [ 60037 ] {857a02a9-ecc6-4212-a214-189f8a82f208} executeQuery: Code: 48. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60262) (comment: 01013_totals_without_aggregation.sql) (in query: SELECT 1 AS n WITH ROLLUP;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [81]) @ 0x000000001279445e in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:276: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001c98e6a6 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7114: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91067c in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 10. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:42.240904 [ 60037 ] {857a02a9-ecc6-4212-a214-189f8a82f208} TCPHandler: Code: 48. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [81]) @ 0x000000001279445e in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:276: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001c98e6a6 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7114: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91067c in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 10. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:42.245948 [ 60037 ] {3ce8c67d-4559-4c7f-9f99-d3c5d4954ef3} executeQuery: Code: 48. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60262) (comment: 01013_totals_without_aggregation.sql) (in query: SELECT 1 AS n WITH CUBE;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [81]) @ 0x000000001279445e in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:276: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001c98e6a6 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7114: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91067c in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 10. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:42.246610 [ 60037 ] {3ce8c67d-4559-4c7f-9f99-d3c5d4954ef3} TCPHandler: Code: 48. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [81]) @ 0x000000001279445e in /usr/bin/clickhouse 6. /build/src/Analyzer/ValidationUtils.cpp:276: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001c98e6a6 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7114: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91067c in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 10. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 24. ? @ 0x00007fcde32fbac3 in ? 25. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:44.552201 [ 60040 ] {2353b6e8-b328-4baf-ad99-02a12e60f433} executeQuery: Code: 10. DB::Exception: Not found column s in block. There are only columns: count(). (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60340) (comment: 01010_pm_join_all_join_bug.sql) (in query: SELECT count() FROM ( SELECT [1], count(1) ) AS t1 ALL RIGHT JOIN ( SELECT number AS s FROM numbers(2) ) AS t2 USING (s);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Core/Block.cpp:315: DB::Block::getByName(String const&, bool) const @ 0x000000001b3d9fce in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:437: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, DB::Block const&, std::vector> const&) @ 0x000000001cc081c7 in /usr/bin/clickhouse 8. /build/src/Interpreters/MergeJoin.cpp:686: DB::MergeJoin::checkTypesOfKeys(DB::Block const&) const @ 0x000000001cc249b0 in /usr/bin/clickhouse 9. /build/src/Processors/Transforms/JoiningTransform.cpp:19: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f3c in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:44.553153 [ 60040 ] {2353b6e8-b328-4baf-ad99-02a12e60f433} TCPHandler: Code: 10. DB::Exception: Not found column s in block. There are only columns: count(). (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Core/Block.cpp:315: DB::Block::getByName(String const&, bool) const @ 0x000000001b3d9fce in /usr/bin/clickhouse 7. /build/src/Interpreters/JoinUtils.cpp:437: DB::JoinCommon::checkTypesOfKeys(DB::Block const&, std::vector> const&, DB::Block const&, std::vector> const&) @ 0x000000001cc081c7 in /usr/bin/clickhouse 8. /build/src/Interpreters/MergeJoin.cpp:686: DB::MergeJoin::checkTypesOfKeys(DB::Block const&) const @ 0x000000001cc249b0 in /usr/bin/clickhouse 9. /build/src/Processors/Transforms/JoiningTransform.cpp:19: DB::JoiningTransform::transformHeader(DB::Block, std::shared_ptr const&) @ 0x000000001eb65f3c in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/JoinStep.cpp:30: DB::JoinStep::JoinStep(DB::DataStream const&, DB::DataStream const&, std::shared_ptr, unsigned long, unsigned long, bool) @ 0x000000001edfb11d in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, DB::SettingFieldNumber const&, unsigned long&, bool&>(DB::DataStream const&, DB::DataStream const&, std::shared_ptr&, DB::SettingFieldNumber const&, unsigned long&, bool&) @ 0x000000001cabcbb4 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:1664: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa8f86 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:49.626202 [ 12026 ] {4c913eff-610f-464e-af48-a97c14b6abd3} executeQuery: Code: 306. DB::Exception: Stack size too large. Stack address: 0x7fcb21048000, frame address: 0x7fcb21447f20, stack size: 4194528, maximum stack size: 8388608. (TOO_DEEP_RECURSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47184) (comment: 00986_materialized_view_stack_overflow.sql) (in query: insert into test1 values ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, void*&, void const*&, unsigned long&, unsigned long&) @ 0x000000001395db64 in /usr/bin/clickhouse 6. /build/src/Common/checkStackSize.cpp:121: checkStackSize() @ 0x000000001395d6dc in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:43: void DB::InDepthNodeVisitor>, &DB::NeedChild::all(std::shared_ptr const&, std::shared_ptr const&), std::shared_ptr>, true, false, std::shared_ptr>::visitImpl(std::shared_ptr&) @ 0x000000001cf9797d in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>, &DB::NeedChild::all(std::shared_ptr const&, std::shared_ptr const&), std::shared_ptr>, true, false, std::shared_ptr>::visit(std::shared_ptr&) @ 0x000000001cf92785 in /usr/bin/clickhouse 9. /build/src/Interpreters/TreeRewriter.cpp:1366: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8ee32 in /usr/bin/clickhouse 10. /build/src/Interpreters/TreeRewriter.cpp:1212: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d347 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:331: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec76280 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca73a12 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec76534 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca73a12 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec76534 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca73a12 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec76534 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca73a12 in /usr/bin/clickhouse 26. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec76534 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca73a12 in /usr/bin/clickhouse 29. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec76534 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca73a12 in /usr/bin/clickhouse 2024.05.01 13:30:49.627182 [ 12026 ] {4c913eff-610f-464e-af48-a97c14b6abd3} TCPHandler: Code: 306. DB::Exception: Stack size too large. Stack address: 0x7fcb21048000, frame address: 0x7fcb21447f20, stack size: 4194528, maximum stack size: 8388608. (TOO_DEEP_RECURSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, void*&, void const*&, unsigned long&, unsigned long&) @ 0x000000001395db64 in /usr/bin/clickhouse 6. /build/src/Common/checkStackSize.cpp:121: checkStackSize() @ 0x000000001395d6dc in /usr/bin/clickhouse 7. /build/src/Interpreters/InDepthNodeVisitor.h:43: void DB::InDepthNodeVisitor>, &DB::NeedChild::all(std::shared_ptr const&, std::shared_ptr const&), std::shared_ptr>, true, false, std::shared_ptr>::visitImpl(std::shared_ptr&) @ 0x000000001cf9797d in /usr/bin/clickhouse 8. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>, &DB::NeedChild::all(std::shared_ptr const&, std::shared_ptr const&), std::shared_ptr>, true, false, std::shared_ptr>::visit(std::shared_ptr&) @ 0x000000001cf92785 in /usr/bin/clickhouse 9. /build/src/Interpreters/TreeRewriter.cpp:1366: DB::TreeRewriter::normalize(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, std::unordered_set, std::equal_to, std::allocator> const&, bool, DB::Settings const&, bool, std::shared_ptr, bool) @ 0x000000001cf8ee32 in /usr/bin/clickhouse 10. /build/src/Interpreters/TreeRewriter.cpp:1212: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d347 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:331: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec76280 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca73a12 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec76534 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca73a12 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec76534 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca73a12 in /usr/bin/clickhouse 23. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec76534 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca73a12 in /usr/bin/clickhouse 26. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec76534 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca73a12 in /usr/bin/clickhouse 29. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:344: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec76534 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterInsertQuery.cpp:255: DB::InterpreterInsertQuery::buildChain(std::shared_ptr const&, std::shared_ptr const&, std::vector> const&, std::shared_ptr, std::atomic*) @ 0x000000001ca73a12 in /usr/bin/clickhouse 2024.05.01 13:30:49.726409 [ 5967 ] {52296458-5f7e-4053-a779-60b8a9189122} executeQuery: Code: 472. DB::Exception: Setting 'index_granularity' is readonly for storage 'ReplicatedMergeTree'. (READONLY_SETTING) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47208) (comment: 00980_zookeeper_merge_tree_alter_settings.sql) (in query: ALTER TABLE replicated_table_for_alter1 MODIFY SETTING index_granularity = 4096;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3433: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2d17d in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:49.727176 [ 5967 ] {52296458-5f7e-4053-a779-60b8a9189122} TCPHandler: Code: 472. DB::Exception: Setting 'index_granularity' is readonly for storage 'ReplicatedMergeTree'. (READONLY_SETTING), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3433: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2d17d in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:50.308733 [ 5967 ] {d0696cfa-25a4-4c04-9308-d534fb287165} executeQuery: Code: 252. DB::Exception: Too many parts (2 with average size of 327.00 B) in table 'test_09pbrl7n.replicated_table_for_alter2 (660a1a37-60ab-4cff-980b-98cdd6fef478)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47208) (comment: 00980_zookeeper_merge_tree_alter_settings.sql) (in query: INSERT INTO replicated_table_for_alter2 VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001de8eae8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001de40fa4 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1081: DB::ReplicatedMergeTreeSinkImpl::onStart() @ 0x000000001e2b7216 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001eb5fc99 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fc35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fbfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f015 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:93: DB::PushingPipelineExecutor::start() @ 0x000000001e6920b6 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:841: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3c2a in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:30:50.309935 [ 5967 ] {d0696cfa-25a4-4c04-9308-d534fb287165} TCPHandler: Code: 252. DB::Exception: Too many parts (2 with average size of 327.00 B) in table 'test_09pbrl7n.replicated_table_for_alter2 (660a1a37-60ab-4cff-980b-98cdd6fef478)'. Merges are processing significantly slower than inserts. (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, ReadableSize&&, String&&) @ 0x000000001de8eae8 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4511: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001de40fa4 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1081: DB::ReplicatedMergeTreeSinkImpl::onStart() @ 0x000000001e2b7216 in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001eb5fc99 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fc35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fbfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f015 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:93: DB::PushingPipelineExecutor::start() @ 0x000000001e6920b6 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:841: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3c2a in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 31. ? @ 0x00007fcde32fbac3 in ? 2024.05.01 13:30:51.083869 [ 5967 ] {a35d8174-7c6f-4c9f-8481-a933f5ee212d} executeQuery: Code: 472. DB::Exception: Setting 'index_granularity' is readonly for storage 'ReplicatedMergeTree'. (READONLY_SETTING) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47208) (comment: 00980_zookeeper_merge_tree_alter_settings.sql) (in query: ALTER TABLE replicated_table_for_reset_setting1 MODIFY SETTING index_granularity = 4096;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3433: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2d17d in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:51.084431 [ 5967 ] {a35d8174-7c6f-4c9f-8481-a933f5ee212d} TCPHandler: Code: 472. DB::Exception: Setting 'index_granularity' is readonly for storage 'ReplicatedMergeTree'. (READONLY_SETTING), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3433: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2d17d in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:51.403757 [ 5967 ] {e072c678-7a4b-415f-9bdc-79a652842e82} executeQuery: Code: 36. DB::Exception: Cannot reset setting 'unknown_setting' because it doesn't exist for MergeTree engines family. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47208) (comment: 00980_zookeeper_merge_tree_alter_settings.sql) (in query: -- don't execute alter with incorrect setting ALTER TABLE replicated_table_for_reset_setting1 RESET SETTING check_delay_period, unknown_setting;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3347: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2c0e7 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:51.404618 [ 5967 ] {e072c678-7a4b-415f-9bdc-79a652842e82} TCPHandler: Code: 36. DB::Exception: Cannot reset setting 'unknown_setting' because it doesn't exist for MergeTree engines family. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3347: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2c0e7 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:30:56.417215 [ 62681 ] {7422cfb4-dd80-4b12-a663-8f8d41fa1a57} executeQuery: Code: 349. DB::Exception: Cannot convert NULL value to non-Nullable type: While processing CAST(CAST(NULL, 'LowCardinality(Nullable(String))'), 'String'). (CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47454) (comment: 00974_low_cardinality_cast.sql) (in query: SELECT CAST(CAST(Null AS LowCardinality(Nullable(String))) AS String);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5ae41e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:3875: DB::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b8e43ab in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8e40a6 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8e4040 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8e3fe0 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b8e3f8b in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:30:56.418440 [ 62681 ] {7422cfb4-dd80-4b12-a663-8f8d41fa1a57} TCPHandler: Code: 349. DB::Exception: Cannot convert NULL value to non-Nullable type: While processing CAST(CAST(NULL, 'LowCardinality(Nullable(String))'), 'String'). (CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5ae41e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:3875: DB::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b8e43ab in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8e40a6 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8e4040 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8e3fe0 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b8e3f8b in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:30:56.944502 [ 62681 ] {fc244b19-5ebb-4b81-b78e-47b562c80309} executeQuery: Code: 349. DB::Exception: Cannot convert NULL value to non-Nullable type: While processing CAST(CAST(NULL, 'Nullable(String)'), 'String'). (CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47454) (comment: 00974_low_cardinality_cast.sql) (in query: SELECT CAST(CAST(Null AS Nullable(String)) AS String);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5ae41e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:3980: DB::FunctionCast::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b8e3a04 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8e3886 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8e3820 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8e37c0 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b8e376b in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:30:56.966652 [ 62681 ] {fc244b19-5ebb-4b81-b78e-47b562c80309} TCPHandler: Code: 349. DB::Exception: Cannot convert NULL value to non-Nullable type: While processing CAST(CAST(NULL, 'Nullable(String)'), 'String'). (CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5ae41e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:3980: DB::FunctionCast::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b8e3a04 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8e3886 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8e3820 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8e37c0 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::prepareRemoveNullable(std::shared_ptr const&, std::shared_ptr const&, bool) const::'lambda0'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b8e376b in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:31:02.278464 [ 62780 ] {266b9d8e-fac6-419b-b23e-bd2c866e3528} executeQuery: Code: 51. DB::Exception: Empty list of columns in SELECT query. (EMPTY_LIST_OF_COLUMNS_QUERIED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46784) (comment: 00969_columns_clause.sql) (in query: SELECT COLUMNS('x') FROM numbers(10) WHERE number > 5;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f81ac7e in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:314: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cf8ec39 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d086 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:02.306951 [ 62780 ] {266b9d8e-fac6-419b-b23e-bd2c866e3528} TCPHandler: Code: 51. DB::Exception: Empty list of columns in SELECT query. (EMPTY_LIST_OF_COLUMNS_QUERIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f81ac7e in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:314: DB::(anonymous namespace)::translateQualifiedNames(std::shared_ptr&, DB::ASTSelectQuery const&, std::unordered_set, std::equal_to, std::allocator> const&, std::vector> const&) @ 0x000000001cf8ec39 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1200: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d086 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:02.697683 [ 62780 ] {bdc86788-fbee-4345-b9ff-485778ab837d} executeQuery: Code: 42. DB::Exception: Number of arguments for function plus doesn't match: passed 0, should be 2: While processing plus(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46784) (comment: 00969_columns_clause.sql) (in query: SELECT COLUMNS('n') + COLUMNS('u') FROM (SELECT 1 AS a, 2 AS b);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:31:02.698702 [ 62780 ] {bdc86788-fbee-4345-b9ff-485778ab837d} TCPHandler: Code: 42. DB::Exception: Number of arguments for function plus doesn't match: passed 0, should be 2: While processing plus(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:31:02.988193 [ 62780 ] {10e1c2b4-9e34-47f5-95b5-f7fadfe1357a} executeQuery: Code: 42. DB::Exception: Number of arguments for function plus doesn't match: passed 3, should be 2: While processing plus(a, b, b). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46784) (comment: 00969_columns_clause.sql) (in query: SELECT COLUMNS('a|b') + COLUMNS('b') FROM (SELECT 1 AS a, 2 AS b);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:31:02.989377 [ 62780 ] {10e1c2b4-9e34-47f5-95b5-f7fadfe1357a} TCPHandler: Code: 42. DB::Exception: Number of arguments for function plus doesn't match: passed 3, should be 2: While processing plus(a, b, b). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:31:07.913283 [ 3932 ] {2a644bfc-3078-432e-a195-f6d55f43ebe5} DistributedSink: Structure does not match (remote: key Nullable(UInt64) Nullable(size = 0, UInt64(size = 0), UInt8(size = 0)), local: key UInt64 UInt64(size = 1)), implicit conversion will be done. 2024.05.01 13:31:20.230936 [ 62678 ] {958c3109-1943-4661-a3b0-b82182253a95} executeQuery: Code: 36. DB::Exception: Wrong index name. Cannot find index `test_index` to drop. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37822) (comment: 00953_indices_alter_exceptions.sh) (in query: ALTER TABLE test_drop_indices DROP INDEX test_index;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000d9e3f0c in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:555: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d578dd3 in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d57bba5 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de29e2c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:20.232409 [ 62678 ] {958c3109-1943-4661-a3b0-b82182253a95} TCPHandler: Code: 36. DB::Exception: Wrong index name. Cannot find index `test_index` to drop. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x000000000d9e3f0c in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:555: DB::AlterCommand::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d578dd3 in /usr/bin/clickhouse 7. /build/src/Storages/AlterCommands.cpp:929: DB::AlterCommands::apply(DB::StorageInMemoryMetadata&, std::shared_ptr) const @ 0x000000001d57bba5 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3145: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de29e2c in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:20.590034 [ 62672 ] {79d528e7-3ab2-4b13-84ee-1314c723fefe} executeQuery: Code: 42. DB::Exception: Number of arguments for function geohashesInBox doesn't match: passed 0, should be 5: While processing geohashesInBox(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47514) (comment: 00972_geohashesInBox.sql) (in query: SELECT geohashesInBox();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:31:20.591103 [ 62672 ] {79d528e7-3ab2-4b13-84ee-1314c723fefe} TCPHandler: Code: 42. DB::Exception: Number of arguments for function geohashesInBox doesn't match: passed 0, should be 5: While processing geohashesInBox(). (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x00000000188330e8 in /usr/bin/clickhouse 6. /build/src/Functions/IFunction.cpp:398: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x000000001abe658f in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.cpp:464: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6a56 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:31:20.956365 [ 62672 ] {a78d1051-4348-4e7b-8e39-524e3d5fa3e7} executeQuery: Code: 43. DB::Exception: Illegal type UInt8 of 0 argument of function geohashesInBox expected float: While processing geohashesInBox(1, 2, 3, 4, 5). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47514) (comment: 00972_geohashesInBox.sql) (in query: SELECT geohashesInBox(1, 2, 3, 4, 5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&, char const*&) @ 0x000000001abf46c4 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:108: DB::validateArgumentType(DB::IFunction const&, std::vector, std::allocator>> const&, unsigned long, bool (*)(DB::IDataType const&), char const*) @ 0x000000001abf23bb in /usr/bin/clickhouse 7. /build/src/Functions/geohashesInBox.cpp:40: DB::(anonymous namespace)::FunctionGeohashesInBox::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000e478999 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:31:20.990588 [ 62672 ] {a78d1051-4348-4e7b-8e39-524e3d5fa3e7} TCPHandler: Code: 43. DB::Exception: Illegal type UInt8 of 0 argument of function geohashesInBox expected float: While processing geohashesInBox(1, 2, 3, 4, 5). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&, char const*&) @ 0x000000001abf46c4 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionHelpers.cpp:108: DB::validateArgumentType(DB::IFunction const&, std::vector, std::allocator>> const&, unsigned long, bool (*)(DB::IDataType const&), char const*) @ 0x000000001abf23bb in /usr/bin/clickhouse 7. /build/src/Functions/geohashesInBox.cpp:40: DB::(anonymous namespace)::FunctionGeohashesInBox::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000e478999 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:31:21.300914 [ 62672 ] {cb5aca2d-ad9a-4edc-925d-6c51af02ce81} executeQuery: Code: 43. DB::Exception: Illegal type of argument of geohashesInBox all coordinate arguments must have the same type, instead they are:Float32, Float64, Float64, Float64.: While processing geohashesInBox(toFloat32(1.), 2., 3., 4., 5). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47514) (comment: 00972_geohashesInBox.sql) (in query: SELECT geohashesInBox(toFloat32(1.0), 2.0, 3.0, 4.0, 5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&, String&&, String&&) @ 0x000000000e47af1a in /usr/bin/clickhouse 6. /build/src/Functions/geohashesInBox.cpp:50: DB::(anonymous namespace)::FunctionGeohashesInBox::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000e478c62 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:31:21.337182 [ 62672 ] {cb5aca2d-ad9a-4edc-925d-6c51af02ce81} TCPHandler: Code: 43. DB::Exception: Illegal type of argument of geohashesInBox all coordinate arguments must have the same type, instead they are:Float32, Float64, Float64, Float64.: While processing geohashesInBox(toFloat32(1.), 2., 3., 4., 5). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&, String&&, String&&) @ 0x000000000e47af1a in /usr/bin/clickhouse 6. /build/src/Functions/geohashesInBox.cpp:50: DB::(anonymous namespace)::FunctionGeohashesInBox::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000e478c62 in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:31:21.684018 [ 62672 ] {6f1b5951-4106-4a4e-8b00-13dc32c54308} executeQuery: Code: 128. DB::Exception: geohashesInBox would produce 1356640814682 array elements, which is bigger than the allowed maximum of 10000000: While processing geohashesInBox(24.48, 40.56, 24.785, 40.81, 12). (TOO_LARGE_ARRAY_SIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47514) (comment: 00972_geohashesInBox.sql) (in query: SELECT geohashesInBox(24.48, 40.56, 24.785, 40.81, 12);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long const&, unsigned long const&) @ 0x000000000e47b148 in /usr/bin/clickhouse 6. /build/src/Functions/geohashesInBox.cpp:125: void DB::(anonymous namespace)::FunctionGeohashesInBox::execute(DB::IColumn const*, DB::IColumn const*, DB::IColumn const*, DB::IColumn const*, DB::IColumn const*, COW::immutable_ptr&, unsigned long) const @ 0x000000000e47a4ca in /usr/bin/clickhouse 7. /build/src/Functions/geohashesInBox.cpp:169: DB::(anonymous namespace)::FunctionGeohashesInBox::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e4788c7 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:31:21.685045 [ 62672 ] {6f1b5951-4106-4a4e-8b00-13dc32c54308} TCPHandler: Code: 128. DB::Exception: geohashesInBox would produce 1356640814682 array elements, which is bigger than the allowed maximum of 10000000: While processing geohashesInBox(24.48, 40.56, 24.785, 40.81, 12). (TOO_LARGE_ARRAY_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long const&, unsigned long const&) @ 0x000000000e47b148 in /usr/bin/clickhouse 6. /build/src/Functions/geohashesInBox.cpp:125: void DB::(anonymous namespace)::FunctionGeohashesInBox::execute(DB::IColumn const*, DB::IColumn const*, DB::IColumn const*, DB::IColumn const*, DB::IColumn const*, COW::immutable_ptr&, unsigned long) const @ 0x000000000e47a4ca in /usr/bin/clickhouse 7. /build/src/Functions/geohashesInBox.cpp:169: DB::(anonymous namespace)::FunctionGeohashesInBox::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e4788c7 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:31:22.687115 [ 62772 ] {49a4d09e-8c86-40b7-a211-6206dd66af1c} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:51604). (NETWORK_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51604) (comment: 00991_system_parts_race_condition_long.sh) (in query: INSERT INTO alter_table SELECT rand(1), rand(2), 1 / rand(3), toString(rand(4)), [rand(5), rand(6)], rand(7) % 2 ? NULL : generateUUIDv4(), (rand(8), rand(9)) FROM numbers(100000)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6ba4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1136: DB::TCPHandler::sendProfileEvents() @ 0x000000001e5e65f9 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:1146: DB::TCPHandler::sendSelectProfileEvents() @ 0x000000001e5e24f4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:558: DB::TCPHandler::runImpl() @ 0x000000001e5da4e2 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:22.769494 [ 62772 ] {49a4d09e-8c86-40b7-a211-6206dd66af1c} TCPHandler: Can't send logs to client: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:51604). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6ba4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2073: DB::TCPHandler::sendLogData(DB::Block const&) @ 0x000000001e5ec635 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2150: DB::TCPHandler::sendLogs() @ 0x000000001e5e2cdf in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:672: DB::TCPHandler::runImpl() @ 0x000000001e5db2d7 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:31:22.769525 [ 62773 ] {4d811cc2-dce4-4138-872f-7f9045b947a3} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:51686). (NETWORK_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51686) (comment: 00991_system_parts_race_condition_long.sh) (in query: INSERT INTO alter_table SELECT rand(1), rand(2), 1 / rand(3), toString(rand(4)), [rand(5), rand(6)], rand(7) % 2 ? NULL : generateUUIDv4(), (rand(8), rand(9)) FROM numbers(100000)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6ba4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1136: DB::TCPHandler::sendProfileEvents() @ 0x000000001e5e65f9 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:1146: DB::TCPHandler::sendSelectProfileEvents() @ 0x000000001e5e24f4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:558: DB::TCPHandler::runImpl() @ 0x000000001e5da4e2 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:22.769884 [ 62772 ] {49a4d09e-8c86-40b7-a211-6206dd66af1c} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:51604). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6ba4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1136: DB::TCPHandler::sendProfileEvents() @ 0x000000001e5e65f9 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:1146: DB::TCPHandler::sendSelectProfileEvents() @ 0x000000001e5e24f4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:558: DB::TCPHandler::runImpl() @ 0x000000001e5da4e2 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:22.770514 [ 62772 ] {49a4d09e-8c86-40b7-a211-6206dd66af1c} TCPHandler: Client has gone away. 2024.05.01 13:31:22.771712 [ 62773 ] {4d811cc2-dce4-4138-872f-7f9045b947a3} TCPHandler: Can't send logs to client: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:51686). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6ba4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2073: DB::TCPHandler::sendLogData(DB::Block const&) @ 0x000000001e5ec635 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2150: DB::TCPHandler::sendLogs() @ 0x000000001e5e2cdf in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:672: DB::TCPHandler::runImpl() @ 0x000000001e5db2d7 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:31:22.772202 [ 62773 ] {4d811cc2-dce4-4138-872f-7f9045b947a3} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:51686). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6ba4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1136: DB::TCPHandler::sendProfileEvents() @ 0x000000001e5e65f9 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:1146: DB::TCPHandler::sendSelectProfileEvents() @ 0x000000001e5e24f4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:558: DB::TCPHandler::runImpl() @ 0x000000001e5da4e2 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:22.773018 [ 62773 ] {4d811cc2-dce4-4138-872f-7f9045b947a3} TCPHandler: Client has gone away. 2024.05.01 13:31:23.158471 [ 62680 ] {967b93b4-a19b-470d-8cf0-1c21c9b456d5} executeQuery: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:37826). (NETWORK_ERROR) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37826) (comment: 00991_system_parts_race_condition_long.sh) (in query: INSERT INTO alter_table SELECT rand(1), rand(2), 1 / rand(3), toString(rand(4)), [rand(5), rand(6)], rand(7) % 2 ? NULL : generateUUIDv4(), (rand(8), rand(9)) FROM numbers(100000)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6ba4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1136: DB::TCPHandler::sendProfileEvents() @ 0x000000001e5e65f9 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:1146: DB::TCPHandler::sendSelectProfileEvents() @ 0x000000001e5e24f4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:558: DB::TCPHandler::runImpl() @ 0x000000001e5da4e2 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:23.160236 [ 62680 ] {967b93b4-a19b-470d-8cf0-1c21c9b456d5} TCPHandler: Can't send logs to client: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:37826). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6ba4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:2073: DB::TCPHandler::sendLogData(DB::Block const&) @ 0x000000001e5ec635 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2150: DB::TCPHandler::sendLogs() @ 0x000000001e5e2cdf in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:672: DB::TCPHandler::runImpl() @ 0x000000001e5db2d7 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:31:23.160658 [ 62680 ] {967b93b4-a19b-470d-8cf0-1c21c9b456d5} TCPHandler: Code: 210. DB::NetException: I/O error: Broken pipe, while writing to socket ([::1]:9000 -> [::1]:37826). (NETWORK_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:26: DB::NetException::NetException(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x0000000013ce7588 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromPocoSocket.cpp:107: DB::WriteBufferFromPocoSocket::nextImpl() @ 0x0000000013ce6ba4 in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:1136: DB::TCPHandler::sendProfileEvents() @ 0x000000001e5e65f9 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:1146: DB::TCPHandler::sendSelectProfileEvents() @ 0x000000001e5e24f4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:558: DB::TCPHandler::runImpl() @ 0x000000001e5da4e2 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:23.161308 [ 62680 ] {967b93b4-a19b-470d-8cf0-1c21c9b456d5} TCPHandler: Client has gone away. 2024.05.01 13:31:25.837281 [ 62780 ] {5af5c53c-a719-4355-b9bd-2e0941997f9e} executeQuery: Code: 469. DB::Exception: Constraint `b_constraint` for table test_uc6ahq3n.test_constraints (7c1cf841-ac79-46fa-98f1-a41a481c644d) is violated at row 1. Expression: (b > 0). Column values: b = 0. (VIOLATED_CONSTRAINT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38054) (comment: 00953_constraints_operations.sh) (in query: INSERT INTO test_constraints VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eb33aba in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eb33700 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:25.839174 [ 62780 ] {5af5c53c-a719-4355-b9bd-2e0941997f9e} TCPHandler: Code: 469. DB::Exception: Constraint `b_constraint` for table test_uc6ahq3n.test_constraints (7c1cf841-ac79-46fa-98f1-a41a481c644d) is violated at row 1. Expression: (b > 0). Column values: b = 0. (VIOLATED_CONSTRAINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eb33aba in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eb33700 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:28.400382 [ 5964 ] {9b06e7e7-d775-4722-938c-ee805636cd29} executeQuery: Code: 469. DB::Exception: Constraint `b_constraint` for table test_2ita6oia.test_constraints (af48dcb3-5e7b-4c50-8608-273bb4097ccf) is violated at row 2. Expression: (b > 0). Column values: b = 0. (VIOLATED_CONSTRAINT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36642) (comment: 00952_basic_constraints.sh) (in query: INSERT INTO test_constraints VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eb33aba in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eb33700 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:28.402122 [ 5964 ] {9b06e7e7-d775-4722-938c-ee805636cd29} TCPHandler: Code: 469. DB::Exception: Constraint `b_constraint` for table test_2ita6oia.test_constraints (af48dcb3-5e7b-4c50-8608-273bb4097ccf) is violated at row 2. Expression: (b > 0). Column values: b = 0. (VIOLATED_CONSTRAINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eb33aba in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eb33700 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:28.767565 [ 62772 ] {89deac89-f779-439f-a150-2b29436bcead} executeQuery: Code: 252. DB::Exception: Too many parts (10) in all partitions in total in table 'test_g1sbpbq3.max_parts_in_total (ea6def71-d692-47ce-895a-dde3194efd34)'. This indicates wrong choice of partition key. The threshold can be modified with 'max_parts_in_total' setting in element in config.xml or with per-table setting. (TOO_MANY_PARTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38110) (comment: 00940_max_parts_in_total.sql) (in query: INSERT INTO max_parts_in_total SELECT 123;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long const&, String&&) @ 0x000000000e1b490c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4471: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001de407d2 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e34042c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001eb5fc99 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fc35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fbfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f015 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 24. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e665267 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6651d5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&) @ 0x000000001e6651b5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e665195 in /usr/bin/clickhouse 2024.05.01 13:31:28.768855 [ 62772 ] {89deac89-f779-439f-a150-2b29436bcead} TCPHandler: Code: 252. DB::Exception: Too many parts (10) in all partitions in total in table 'test_g1sbpbq3.max_parts_in_total (ea6def71-d692-47ce-895a-dde3194efd34)'. This indicates wrong choice of partition key. The threshold can be modified with 'max_parts_in_total' setting in element in config.xml or with per-table setting. (TOO_MANY_PARTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long const&, String&&) @ 0x000000000e1b490c in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4471: DB::MergeTreeData::delayInsertOrThrowIfNeeded(Poco::Event*, std::shared_ptr const&, bool) const @ 0x000000001de407d2 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeSink.cpp:51: DB::MergeTreeSink::onStart() @ 0x000000001e34042c in /usr/bin/clickhouse 8. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work()::$_0::operator()() const @ 0x000000001eb5fc99 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_0&) @ 0x000000001eb5fc55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fc35 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fbfd in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:136: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f015 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 24. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e665267 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6651d5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&) @ 0x000000001e6651b5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e665195 in /usr/bin/clickhouse 2024.05.01 13:31:31.427194 [ 675 ] {939c0b52-9b90-4d46-b6c0-854330d84517} executeQuery: Code: 47. DB::Exception: Missing columns: 'value' while processing query: 'range(value)', required columns: 'value' 'value': While processing SELECT count() FROM samples WHERE 1 IN range(value). (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36696) (comment: 00936_function_result_with_operator_in.sql) (in query: -- non-constant expressions in the right side of IN SELECT count() FROM samples WHERE 1 IN range(samples.value);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf92678 in /usr/bin/clickhouse 8. /build/src/Interpreters/evaluateConstantExpression.cpp:70: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001d07b3ae in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:299: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfd9185 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfd895d in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bfe2a2e in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdccc1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:705: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb226 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:1735: DB::ExpressionAnalyzer::getConstActionsDAG(std::vector> const&) @ 0x000000001bfadf0d in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/KeyCondition.cpp:724: DB::KeyCondition::getBlockWithConstants(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001dd659b8 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeWhereOptimizer.cpp:83: DB::MergeTreeWhereOptimizer::optimize(DB::SelectQueryInfo&, std::shared_ptr const&) const @ 0x000000001e1723ad in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:663: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa242f in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 2024.05.01 13:31:31.428273 [ 675 ] {939c0b52-9b90-4d46-b6c0-854330d84517} TCPHandler: Code: 47. DB::Exception: Missing columns: 'value' while processing query: 'range(value)', required columns: 'value' 'value': While processing SELECT count() FROM samples WHERE 1 IN range(value). (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1355: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x000000001cf92678 in /usr/bin/clickhouse 8. /build/src/Interpreters/evaluateConstantExpression.cpp:70: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001d07b3ae in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:299: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfd9185 in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfd895d in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bfe2a2e in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdccc1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:705: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb226 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 20. /build/src/Interpreters/ExpressionAnalyzer.cpp:1735: DB::ExpressionAnalyzer::getConstActionsDAG(std::vector> const&) @ 0x000000001bfadf0d in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/KeyCondition.cpp:724: DB::KeyCondition::getBlockWithConstants(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001dd659b8 in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeWhereOptimizer.cpp:83: DB::MergeTreeWhereOptimizer::optimize(DB::SelectQueryInfo&, std::shared_ptr const&) const @ 0x000000001e1723ad in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:663: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa242f in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 2024.05.01 13:31:31.574837 [ 675 ] {aea11095-582f-498f-8291-74e234659310} executeQuery: Code: 36. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): range(modulo(rand(), 1000)): While processing SELECT count() FROM samples WHERE 1 IN range(rand() % 1000). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36696) (comment: 00936_function_result_with_operator_in.sql) (in query: SELECT count() FROM samples WHERE 1 IN range(rand() % 1000);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Interpreters/evaluateConstantExpression.cpp:93: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001d07b794 in /usr/bin/clickhouse 7. /build/src/Interpreters/ActionsVisitor.cpp:299: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfd9185 in /usr/bin/clickhouse 8. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfd895d in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bfe2a2e in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdccc1 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:705: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb226 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:1735: DB::ExpressionAnalyzer::getConstActionsDAG(std::vector> const&) @ 0x000000001bfadf0d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/KeyCondition.cpp:724: DB::KeyCondition::getBlockWithConstants(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001dd659b8 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeWhereOptimizer.cpp:83: DB::MergeTreeWhereOptimizer::optimize(DB::SelectQueryInfo&, std::shared_ptr const&) const @ 0x000000001e1723ad in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:663: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa242f in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:31:31.575927 [ 675 ] {aea11095-582f-498f-8291-74e234659310} TCPHandler: Code: 36. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): range(modulo(rand(), 1000)): While processing SELECT count() FROM samples WHERE 1 IN range(rand() % 1000). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Interpreters/evaluateConstantExpression.cpp:93: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001d07b794 in /usr/bin/clickhouse 7. /build/src/Interpreters/ActionsVisitor.cpp:299: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfd9185 in /usr/bin/clickhouse 8. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfd895d in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bfe2a2e in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdccc1 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:705: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb226 in /usr/bin/clickhouse 13. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 14. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 15. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 16. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:1735: DB::ExpressionAnalyzer::getConstActionsDAG(std::vector> const&) @ 0x000000001bfadf0d in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/KeyCondition.cpp:724: DB::KeyCondition::getBlockWithConstants(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001dd659b8 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeWhereOptimizer.cpp:83: DB::MergeTreeWhereOptimizer::optimize(DB::SelectQueryInfo&, std::shared_ptr const&) const @ 0x000000001e1723ad in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:663: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa242f in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:31:31.715647 [ 675 ] {21514f22-65ad-4783-9cb1-c248e19368e8} executeQuery: Code: 277. DB::Exception: Primary key (key) is not used and setting 'force_primary_key' is set. (INDEX_NOT_USED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36696) (comment: 00936_function_result_with_operator_in.sql) (in query: -- index is not used SELECT count() FROM samples WHERE value IN range(3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1451: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee36dc0 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1375: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee34f81 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001ee34c98 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1682: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001ee39f6c in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1790: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3afdb in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:31.716778 [ 675 ] {21514f22-65ad-4783-9cb1-c248e19368e8} TCPHandler: Code: 277. DB::Exception: Primary key (key) is not used and setting 'force_primary_key' is set. (INDEX_NOT_USED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1451: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee36dc0 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1375: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee34f81 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001ee34c98 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1682: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001ee39f6c in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1790: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3afdb in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:31.857476 [ 675 ] {618c2bb0-1bc0-46fa-9fec-72bcca817b04} executeQuery: Code: 53. DB::Exception: Cannot convert string ab to type UInt8: While processing 123 IN splitByChar('c', 'abcdef'). (TYPE_MISMATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36696) (comment: 00936_function_result_with_operator_in.sql) (in query: -- wrong type SELECT 123 IN splitByChar('c', 'abcdef');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/convertFieldToType.cpp:508: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05dec2 in /usr/bin/clickhouse 7. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05a5fd in /usr/bin/clickhouse 8. /build/src/Interpreters/convertFieldToType.cpp:582: DB::convertFieldToTypeStrict(DB::Field const&, DB::IDataType const&) @ 0x000000001d05e7bd in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:117: DB::Block DB::createBlockFromCollection(DB::Array const&, std::vector, std::allocator>> const&, bool) @ 0x000000001bfe43af in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:326: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfd95b5 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfd895d in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bfe2a2e in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdccc1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:31:31.858724 [ 675 ] {618c2bb0-1bc0-46fa-9fec-72bcca817b04} TCPHandler: Code: 53. DB::Exception: Cannot convert string ab to type UInt8: While processing 123 IN splitByChar('c', 'abcdef'). (TYPE_MISMATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Interpreters/convertFieldToType.cpp:508: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05dec2 in /usr/bin/clickhouse 7. /build/src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x000000001d05a5fd in /usr/bin/clickhouse 8. /build/src/Interpreters/convertFieldToType.cpp:582: DB::convertFieldToTypeStrict(DB::Field const&, DB::IDataType const&) @ 0x000000001d05e7bd in /usr/bin/clickhouse 9. /build/src/Interpreters/ActionsVisitor.cpp:117: DB::Block DB::createBlockFromCollection(DB::Array const&, std::vector, std::allocator>> const&, bool) @ 0x000000001bfe43af in /usr/bin/clickhouse 10. /build/src/Interpreters/ActionsVisitor.cpp:326: DB::(anonymous namespace)::createBlockForSet(std::shared_ptr const&, std::shared_ptr const&, std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000001bfd95b5 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsVisitor.cpp:427: DB::makeExplicitSet(DB::ASTFunction const*, DB::ActionsDAG const&, std::shared_ptr, DB::PreparedSets&) @ 0x000000001bfd895d in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:1443: DB::ActionsMatcher::makeSet(DB::ASTFunction const&, DB::ActionsMatcher::Data&, bool) @ 0x000000001bfe2a2e in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:921: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdccc1 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 17. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 21. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 2024.05.01 13:31:35.007208 [ 5964 ] {23422b44-ff9b-4ce4-a3d5-4d48b04841b2} executeQuery: Code: 469. DB::Exception: Constraint `b_constraint` for table test_uc6ahq3n.test_constraints (7c1cf841-ac79-46fa-98f1-a41a481c644d) is violated at row 1. Expression: (b > 10). Column values: b = 10. (VIOLATED_CONSTRAINT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36848) (comment: 00953_constraints_operations.sh) (in query: INSERT INTO test_constraints VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eb33aba in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eb33700 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:35.008956 [ 5964 ] {23422b44-ff9b-4ce4-a3d5-4d48b04841b2} TCPHandler: Code: 469. DB::Exception: Constraint `b_constraint` for table test_uc6ahq3n.test_constraints (7c1cf841-ac79-46fa-98f1-a41a481c644d) is violated at row 1. Expression: (b > 10). Column values: b = 10. (VIOLATED_CONSTRAINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eb33aba in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eb33700 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:35.616260 [ 5964 ] {895255c5-68be-4f32-ae1d-170fd6010409} executeQuery: Code: 469. DB::Exception: Constraint `b_constraint` for table test_2ita6oia.test_constraints (06724d51-afe9-4fde-abfb-0f3ac21dc597) is violated at row 1. Expression: (b > 10). Column values: b = 2. (VIOLATED_CONSTRAINT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36864) (comment: 00952_basic_constraints.sh) (in query: INSERT INTO test_constraints VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eb33aba in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eb33700 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:35.618834 [ 5964 ] {895255c5-68be-4f32-ae1d-170fd6010409} TCPHandler: Code: 469. DB::Exception: Constraint `b_constraint` for table test_2ita6oia.test_constraints (06724d51-afe9-4fde-abfb-0f3ac21dc597) is violated at row 1. Expression: (b > 10). Column values: b = 2. (VIOLATED_CONSTRAINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eb33aba in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eb33700 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:39.468338 [ 62773 ] {3aed307f-6899-45fa-9cdf-84d504c1ffec} executeQuery: Code: 469. DB::Exception: Constraint `a_constraint` for table test_2ita6oia.test_constraints (06724d51-afe9-4fde-abfb-0f3ac21dc597) is violated at row 2. Expression: (a < 10). Column values: a = 10. (VIOLATED_CONSTRAINT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46226) (comment: 00952_basic_constraints.sh) (in query: INSERT INTO test_constraints VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eb33aba in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eb33700 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:31:39.470111 [ 62773 ] {3aed307f-6899-45fa-9cdf-84d504c1ffec} TCPHandler: Code: 469. DB::Exception: Constraint `a_constraint` for table test_2ita6oia.test_constraints (06724d51-afe9-4fde-abfb-0f3ac21dc597) is violated at row 2. Expression: (a < 10). Column values: a = 10. (VIOLATED_CONSTRAINT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, unsigned long&&, String&&, String&) @ 0x000000001eb33aba in /usr/bin/clickhouse 6. /build/src/Processors/Transforms/CheckConstraintsTransform.cpp:113: DB::CheckConstraintsTransform::onConsume(DB::Chunk) @ 0x000000001eb33700 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 24. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 26. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 30. ? @ 0x00007fcde32fbac3 in ? 31. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:03.515917 [ 62769 ] {45c2b6bb-05c2-4c65-a847-f1def8839520} executeQuery: Code: 128. DB::Exception: Array size cannot be negative: while executing function arrayWithConstant: While processing arrayWithConstant(-231.37104, -138). (TOO_LARGE_ARRAY_SIZE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51292) (comment: 00842_array_with_constant_overflow.sql) (in query: SELECT arrayWithConstant(-231.37104, -138);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayWithConstant.cpp:66: DB::FunctionArrayWithConstant::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000132ff98d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:32:03.516916 [ 62769 ] {45c2b6bb-05c2-4c65-a847-f1def8839520} TCPHandler: Code: 128. DB::Exception: Array size cannot be negative: while executing function arrayWithConstant: While processing arrayWithConstant(-231.37104, -138). (TOO_LARGE_ARRAY_SIZE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/array/arrayWithConstant.cpp:66: DB::FunctionArrayWithConstant::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000132ff98d in /usr/bin/clickhouse 7. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 2024.05.01 13:32:04.336724 [ 62769 ] {b9b1e104-9eb4-49fb-9499-e9e531e94b6e} executeQuery: Code: 442. DB::Exception: Temporary tables cannot be inside a database. You should not specify a database for a temporary table. (BAD_DATABASE_FOR_TEMPORARY_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51318) (comment: 00841_temporary_table_database.sql) (in query: CREATE TEMPORARY TABLE test.t2_00841 (x UInt8);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [103]) @ 0x000000001c7ef2fe in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1052: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e281f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:04.337377 [ 62769 ] {b9b1e104-9eb4-49fb-9499-e9e531e94b6e} TCPHandler: Code: 442. DB::Exception: Temporary tables cannot be inside a database. You should not specify a database for a temporary table. (BAD_DATABASE_FOR_TEMPORARY_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [103]) @ 0x000000001c7ef2fe in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1052: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e281f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:07.034742 [ 62678 ] {51acaa40-807c-4b9f-b9e8-91d2fd84cf3b} executeQuery: Code: 386. DB::Exception: There is no supertype for types UInt64, String because some of them are String/FixedString and some of them are not: In scope SELECT if((rand() % 2) = 0, number, toString(number)) FROM numbers(5). (NO_COMMON_TYPE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51382) (comment: 00835_if_generic_case.sql) (in query: SELECT rand() % 2 = 0 ? number : toString(number) FROM numbers(5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>&>(int, FormatStringHelperImpl::type, std::type_identity>&>::type>, String&&, std::basic_string_view>&) @ 0x000000001194f78c in /usr/bin/clickhouse 6. /build/src/DataTypes/getLeastSupertype.cpp:67: std::shared_ptr DB::(anonymous namespace)::throwOrReturn<(DB::LeastSupertypeOnError)0, std::vector, std::allocator>>>(std::vector, std::allocator>> const&, std::basic_string_view>, int) @ 0x000000001b9fc406 in /usr/bin/clickhouse 7. /build/src/DataTypes/getLeastSupertype.cpp:454: std::shared_ptr DB::getLeastSupertype<(DB::LeastSupertypeOnError)0>(std::vector, std::allocator>> const&) @ 0x000000001ba0068f in /usr/bin/clickhouse 8. /build/src/Functions/if.cpp:1042: DB::(anonymous namespace)::FunctionIf::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000efcc985 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5247: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b390 in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5547: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9142b6 in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 17. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 18. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 19. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 20. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 21. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:32:07.035911 [ 62678 ] {51acaa40-807c-4b9f-b9e8-91d2fd84cf3b} TCPHandler: Code: 386. DB::Exception: There is no supertype for types UInt64, String because some of them are String/FixedString and some of them are not: In scope SELECT if((rand() % 2) = 0, number, toString(number)) FROM numbers(5). (NO_COMMON_TYPE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>&>(int, FormatStringHelperImpl::type, std::type_identity>&>::type>, String&&, std::basic_string_view>&) @ 0x000000001194f78c in /usr/bin/clickhouse 6. /build/src/DataTypes/getLeastSupertype.cpp:67: std::shared_ptr DB::(anonymous namespace)::throwOrReturn<(DB::LeastSupertypeOnError)0, std::vector, std::allocator>>>(std::vector, std::allocator>> const&, std::basic_string_view>, int) @ 0x000000001b9fc406 in /usr/bin/clickhouse 7. /build/src/DataTypes/getLeastSupertype.cpp:454: std::shared_ptr DB::getLeastSupertype<(DB::LeastSupertypeOnError)0>(std::vector, std::allocator>> const&) @ 0x000000001ba0068f in /usr/bin/clickhouse 8. /build/src/Functions/if.cpp:1042: DB::(anonymous namespace)::FunctionIf::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000efcc985 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 10. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5247: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c92b390 in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5547: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9142b6 in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 17. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 18. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 19. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 20. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 21. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 26. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 2024.05.01 13:32:07.652243 [ 60040 ] {9c56c57f-c8eb-410b-a182-9bb412d1d13e} executeQuery: Code: 440. DB::Exception: The value -1 of LIMIT expression is not representable as UInt64. (INVALID_LIMIT_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51416) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT number FROM numbers(10) LIMIT 0 - 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1235: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab707a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:07.653318 [ 60040 ] {9c56c57f-c8eb-410b-a182-9bb412d1d13e} TCPHandler: Code: 440. DB::Exception: The value -1 of LIMIT expression is not representable as UInt64. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1235: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab707a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:07.678339 [ 60040 ] {6688c98c-d9fa-4897-a222-de37cf61a91a} executeQuery: Code: 440. DB::Exception: The value 1.5 of LIMIT expression is not representable as UInt64. (INVALID_LIMIT_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51416) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT number FROM numbers(10) LIMIT 1.5;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1235: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab707a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:07.679195 [ 60040 ] {6688c98c-d9fa-4897-a222-de37cf61a91a} TCPHandler: Code: 440. DB::Exception: The value 1.5 of LIMIT expression is not representable as UInt64. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1235: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab707a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:07.781212 [ 60040 ] {52d68ca2-9523-4b0b-926d-ad708091b8c2} executeQuery: Code: 440. DB::Exception: Illegal type String of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51416) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT number FROM numbers(10) LIMIT '1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab6ebf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:07.782010 [ 60040 ] {52d68ca2-9523-4b0b-926d-ad708091b8c2} TCPHandler: Code: 440. DB::Exception: Illegal type String of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab6ebf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:07.792043 [ 60040 ] {d7f8c727-0d3e-40eb-91d7-00200c5a1c34} executeQuery: Code: 440. DB::Exception: Illegal type DateTime of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51416) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT number FROM numbers(10) LIMIT now();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab6ebf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:07.792667 [ 60040 ] {d7f8c727-0d3e-40eb-91d7-00200c5a1c34} TCPHandler: Code: 440. DB::Exception: Illegal type DateTime of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab6ebf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:07.800890 [ 60040 ] {50e617d7-f122-45ce-8a60-ea3eef21bd67} executeQuery: Code: 440. DB::Exception: Illegal type Date of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51416) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT number FROM numbers(10) LIMIT today();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab6ebf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:07.801549 [ 60040 ] {50e617d7-f122-45ce-8a60-ea3eef21bd67} TCPHandler: Code: 440. DB::Exception: Illegal type Date of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab6ebf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:07.938925 [ 60040 ] {2470bc6b-78ef-4b52-9d98-576b1d1a3e95} executeQuery: Code: 36. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): rand(). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51416) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT number FROM numbers(10) LIMIT rand();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Interpreters/evaluateConstantExpression.cpp:93: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001d07b794 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1227: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab6dcf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:07.939784 [ 60040 ] {2470bc6b-78ef-4b52-9d98-576b1d1a3e95} TCPHandler: Code: 36. DB::Exception: Element of set in IN, VALUES, or LIMIT, or aggregate function parameter, or a table function argument is not a constant expression (result column not found): rand(). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Interpreters/evaluateConstantExpression.cpp:93: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001d07b794 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1227: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab6dcf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:08.029222 [ 60040 ] {18402c79-556a-4abf-b2ff-fe949f8f2551} executeQuery: Code: 440. DB::Exception: The value 2.34 of LIMIT expression is not representable as UInt64. (INVALID_LIMIT_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51416) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT * FROM numbers(10) LIMIT 0.33 / 0.165 - 0.33 + 0.67;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1235: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab707a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:08.030274 [ 60040 ] {18402c79-556a-4abf-b2ff-fe949f8f2551} TCPHandler: Code: 440. DB::Exception: The value 2.34 of LIMIT expression is not representable as UInt64. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1235: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab707a in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:08.040506 [ 60040 ] {55beb12e-b0bf-42fd-b738-18b7c6412eb4} executeQuery: Code: 440. DB::Exception: Illegal type Date of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51416) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT * FROM numbers(10) LIMIT LENGTH('NNN') + COS(0), toDate('0000-00-02');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab6ebf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:08.041179 [ 60040 ] {55beb12e-b0bf-42fd-b738-18b7c6412eb4} TCPHandler: Code: 440. DB::Exception: Illegal type Date of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab6ebf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:08.050874 [ 60040 ] {410dc695-17e2-4d91-a74d-0e82c388bff2} executeQuery: Code: 440. DB::Exception: Illegal type Date of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51416) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT * FROM numbers(10) LIMIT LENGTH('NNN') + COS(0), toDate('0000-00-02');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab6ebf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:08.051603 [ 60040 ] {410dc695-17e2-4d91-a74d-0e82c388bff2} TCPHandler: Code: 440. DB::Exception: Illegal type Date of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab6ebf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:08.060119 [ 60040 ] {a73689fa-abcf-4f64-a325-622abf130992} executeQuery: Code: 47. DB::Exception: Missing columns: 'a' while processing query: 'SELECT number FROM numbers(10) LIMIT (a + 5) - a', required columns: 'number' 'a', maybe you meant: 'number'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51416) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT * FROM numbers(10) LIMIT a + 5 - a;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:08.061050 [ 60040 ] {a73689fa-abcf-4f64-a325-622abf130992} TCPHandler: Code: 47. DB::Exception: Missing columns: 'a' while processing query: 'SELECT number FROM numbers(10) LIMIT (a + 5) - a', required columns: 'number' 'a', maybe you meant: 'number'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:08.069522 [ 60040 ] {1e36bf67-2b00-4743-88ca-61ba0ad88e62} executeQuery: Code: 47. DB::Exception: Missing columns: 'a' 'b' while processing query: 'SELECT number FROM numbers(10) LIMIT a + b', required columns: 'number' 'b' 'a', maybe you meant: 'number'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51416) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT * FROM numbers(10) LIMIT a + b;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:08.070249 [ 60040 ] {1e36bf67-2b00-4743-88ca-61ba0ad88e62} TCPHandler: Code: 47. DB::Exception: Missing columns: 'a' 'b' while processing query: 'SELECT number FROM numbers(10) LIMIT a + b', required columns: 'number' 'b' 'a', maybe you meant: 'number'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:08.078237 [ 60040 ] {045ba760-34f6-4b04-95e6-8c01cffcf191} executeQuery: Code: 440. DB::Exception: Illegal type String of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51416) (comment: 00834_limit_with_constant_expressions.sql) (in query: SELECT * FROM numbers(10) LIMIT 'Hello';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab6ebf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:08.078921 [ 60040 ] {045ba760-34f6-4b04-95e6-8c01cffcf191} TCPHandler: Code: 440. DB::Exception: Illegal type String of LIMIT expression, must be numeric type. (INVALID_LIMIT_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:1230: DB::getLimitUIntValue(std::shared_ptr const&, std::shared_ptr const&, String const&) @ 0x000000001cab6ebf in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:1249: DB::getLimitLengthAndOffset(DB::ASTSelectQuery const&, std::shared_ptr const&) @ 0x000000001caacce4 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2347: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caadad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:09.214408 [ 50481 ] {eda9bbf4-6de3-4373-95e5-b7a7d2d7ce69} executeQuery: Code: 43. DB::Exception: Second argument (weight) for function quantileExactWeighted must be unsigned integer, but it has type Float64. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48918) (comment: 00831_quantile_weighted_parameter_check.sql) (in query: SELECT quantileExactWeighted(0.5)(number, 0.1) FROM numbers(10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, char const* const&, String&&) @ 0x000000000c575a8c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:242: DB::AggregateFunctionQuantile, DB::NameQuantileExactWeighted, true, void, false>::assertSecondArg(std::vector, std::allocator>> const&) @ 0x00000000148783b1 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionQuantileExactWeighted.cpp:32: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionQuantile(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000148773e4 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:32:09.215428 [ 50481 ] {eda9bbf4-6de3-4373-95e5-b7a7d2d7ce69} TCPHandler: Code: 43. DB::Exception: Second argument (weight) for function quantileExactWeighted must be unsigned integer, but it has type Float64. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, char const* const&, String&&) @ 0x000000000c575a8c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:242: DB::AggregateFunctionQuantile, DB::NameQuantileExactWeighted, true, void, false>::assertSecondArg(std::vector, std::allocator>> const&) @ 0x00000000148783b1 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionQuantileExactWeighted.cpp:32: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionQuantile(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000148773e4 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:32:17.557531 [ 62672 ] {46a83163-faa2-478b-b336-0c57b421bc0c} executeQuery: Code: 174. DB::Exception: Cyclic aliases for identifier 'b'. In scope SELECT a + 1 AS b, b + 1 AS a FROM (SELECT 10 AS a). (CYCLIC_ALIASES) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49178) (comment: 00818_alias_bug_4110.sql) (in query: select a + 1 as b, b + 1 as a from (select 10 as a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2588: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c920154 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3536: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91ef7f in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c926498 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5547: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9142b6 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2639: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c9207df in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3536: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91ef7f in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c926498 in /usr/bin/clickhouse 17. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5547: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9142b6 in /usr/bin/clickhouse 18. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 19. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 20. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 21. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 22. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 23. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:32:17.558531 [ 62672 ] {46a83163-faa2-478b-b336-0c57b421bc0c} TCPHandler: Code: 174. DB::Exception: Cyclic aliases for identifier 'b'. In scope SELECT a + 1 AS b, b + 1 AS a FROM (SELECT 10 AS a). (CYCLIC_ALIASES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&&) @ 0x000000000c1526cc in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2588: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c920154 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3536: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91ef7f in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c926498 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5547: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9142b6 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:2639: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c9207df in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:3536: DB::(anonymous namespace)::QueryAnalyzer::tryResolveIdentifier(DB::(anonymous namespace)::IdentifierLookup const&, DB::(anonymous namespace)::IdentifierResolveScope&, DB::(anonymous namespace)::IdentifierResolveSettings) @ 0x000000001c91ef7f in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5406: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9132bb in /usr/bin/clickhouse 15. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 16. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c926498 in /usr/bin/clickhouse 17. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5547: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9142b6 in /usr/bin/clickhouse 18. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 19. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 20. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 21. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 22. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 23. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:32:17.707213 [ 62672 ] {b6b9ef85-74db-40d2-a48f-6ad9a1a44a60} executeQuery: Code: 47. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 10 AS a, a + 1 AS a. Maybe you meant: ['a']. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49178) (comment: 00818_alias_bug_4110.sql) (in query: select 10 as a, a + 1 as a;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001c97a19a in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5480: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c913ce5 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c926498 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5547: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9142b6 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 15. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 29. ? @ 0x00007fcde32fbac3 in ? 30. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:17.708175 [ 62672 ] {b6b9ef85-74db-40d2-a48f-6ad9a1a44a60} TCPHandler: Code: 47. DB::Exception: Unknown expression or function identifier 'a' in scope SELECT 10 AS a, a + 1 AS a. Maybe you meant: ['a']. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001c97a19a in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5480: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c913ce5 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c926498 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5547: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9142b6 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 15. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 29. ? @ 0x00007fcde32fbac3 in ? 30. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:17.837304 [ 62672 ] {b37e79ab-3daa-4056-8da3-a74649623be5} executeQuery: Code: 47. DB::Exception: Unknown expression identifier 'a' in scope WITH 10 AS a SELECT a AS a. Maybe you meant: ['a']. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49178) (comment: 00818_alias_bug_4110.sql) (in query: with 10 as a select a as a;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001c97a19a in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5480: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c913ce5 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 12. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:17.838117 [ 62672 ] {b37e79ab-3daa-4056-8da3-a74649623be5} TCPHandler: Code: 47. DB::Exception: Unknown expression identifier 'a' in scope WITH 10 AS a SELECT a AS a. Maybe you meant: ['a']. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001c97a19a in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5480: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c913ce5 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 12. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:17.845350 [ 62672 ] {defb448b-2da8-43db-ad16-db56fb33c459} executeQuery: Code: 47. DB::Exception: Unknown expression or function identifier 'a' in scope WITH 10 AS a SELECT a + 1 AS a. Maybe you meant: ['a']. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49178) (comment: 00818_alias_bug_4110.sql) (in query: with 10 as a select a + 1 as a;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001c97a19a in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5480: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c913ce5 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c926498 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5547: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9142b6 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 15. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 29. ? @ 0x00007fcde32fbac3 in ? 30. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:17.846213 [ 62672 ] {defb448b-2da8-43db-ad16-db56fb33c459} TCPHandler: Code: 47. DB::Exception: Unknown expression or function identifier 'a' in scope WITH 10 AS a SELECT a + 1 AS a. Maybe you meant: ['a']. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001c97a19a in /usr/bin/clickhouse 6. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5480: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c913ce5 in /usr/bin/clickhouse 7. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 8. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:4734: DB::(anonymous namespace)::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c926498 in /usr/bin/clickhouse 9. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5547: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9142b6 in /usr/bin/clickhouse 10. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5682: DB::(anonymous namespace)::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&, bool, bool) @ 0x000000001c9128c1 in /usr/bin/clickhouse 11. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:5873: DB::(anonymous namespace)::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c91b307 in /usr/bin/clickhouse 12. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:6950: DB::(anonymous namespace)::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::(anonymous namespace)::IdentifierResolveScope&) @ 0x000000001c90ebee in /usr/bin/clickhouse 13. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:1076: DB::(anonymous namespace)::QueryAnalyzer::resolve(std::shared_ptr, std::shared_ptr const&, std::shared_ptr) @ 0x000000001c90d35f in /usr/bin/clickhouse 14. /build/src/Analyzer/Passes/QueryAnalysisPass.cpp:7179: DB::QueryAnalysisPass::run(std::shared_ptr, std::shared_ptr) @ 0x000000001c90d09e in /usr/bin/clickhouse 15. /build/src/Analyzer/QueryTreePassManager.cpp:185: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x000000001c8ff957 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:144: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb59f2c in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:161: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001cb59298 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4ddd8 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterFactory.cpp:160: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be3e in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 21. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 23. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 25. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 28. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 29. ? @ 0x00007fcde32fbac3 in ? 30. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:18.969061 [ 62780 ] {957cdfcb-b022-4ef5-b11b-a1d75f4a254d} executeQuery: Code: 43. DB::Exception: Second argument (weight) for function quantileDeterministic must be unsigned integer, but it has type DateTime. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49624) (comment: 00809_add_days_segfault.sql) (in query: SELECT quantileDeterministic([], identity(( SELECT subtractDays((CAST((566450.398706) AS DateTime)), 54) ) )), '\0', [];), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, char const* const&, String&&) @ 0x000000000c575a8c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:242: DB::AggregateFunctionQuantile, DB::NameQuantileDeterministic, true, double, false>::assertSecondArg(std::vector, std::allocator>> const&) @ 0x000000001475bf31 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionQuantileDeterministic.cpp:32: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionQuantile(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001475b224 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:101: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf8eca in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:32:18.970106 [ 62780 ] {957cdfcb-b022-4ef5-b11b-a1d75f4a254d} TCPHandler: Code: 43. DB::Exception: Second argument (weight) for function quantileDeterministic must be unsigned integer, but it has type DateTime. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, char const* const&, String&&) @ 0x000000000c575a8c in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionQuantile.h:242: DB::AggregateFunctionQuantile, DB::NameQuantileDeterministic, true, double, false>::assertSecondArg(std::vector, std::allocator>> const&) @ 0x000000001475bf31 in /usr/bin/clickhouse 7. /build/src/AggregateFunctions/AggregateFunctionQuantileDeterministic.cpp:32: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionQuantile(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001475b224 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 15. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:101: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf8eca in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 2024.05.01 13:32:19.176057 [ 62780 ] {bbc7db33-4509-4040-8786-3499a08d06a5} executeQuery: Code: 43. DB::Exception: Illegal type Array(Nothing) of argument of function toDateTime: While processing addWeeks(CAST(-7644612.39732, 'DateTime'), -23578040.02833), CAST([], 'DateTime'), CAST([10977.08], 'String'): While processing (SELECT [], '(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b57dc06 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b57ccfe in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7ab6f0 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ab686 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ab620 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ab5c0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7ab56b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 2024.05.01 13:32:19.177225 [ 62780 ] {bbc7db33-4509-4040-8786-3499a08d06a5} TCPHandler: Code: 43. DB::Exception: Illegal type Array(Nothing) of argument of function toDateTime: While processing addWeeks(CAST(-7644612.39732, 'DateTime'), -23578040.02833), CAST([], 'DateTime'), CAST([10977.08], 'String'): While processing (SELECT [], '(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2103: DB::FunctionConvert::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b57dc06 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b57ccfe in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b7ab6f0 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ab686 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ab620 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b7ab5c0 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b7ab56b in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 20. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 2024.05.01 13:32:19.344010 [ 1276 ] {85490e63-ed43-4ffb-9bf8-7ed962bef874} executeQuery: Code: 277. DB::Exception: Primary key (id, date) is not used and setting 'force_primary_key' is set. (INDEX_NOT_USED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49650) (comment: 00808_not_optimize_predicate.sql) (in query: SELECT * FROM (SELECT * FROM test_00808 LIMIT 1) WHERE id = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1451: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee36dc0 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1375: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee34f81 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001ee34c98 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1682: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001ee39f6c in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1790: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3afdb in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:19.344745 [ 1276 ] {85490e63-ed43-4ffb-9bf8-7ed962bef874} TCPHandler: Code: 277. DB::Exception: Primary key (id, date) is not used and setting 'force_primary_key' is set. (INDEX_NOT_USED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1451: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee36dc0 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1375: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee34f81 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001ee34c98 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1682: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001ee39f6c in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1790: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3afdb in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:19.374590 [ 1276 ] {a4961da6-975f-428d-bd0e-12461c45f2b5} executeQuery: Code: 277. DB::Exception: Primary key (id, date) is not used and setting 'force_primary_key' is set. (INDEX_NOT_USED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49650) (comment: 00808_not_optimize_predicate.sql) (in query: SELECT * FROM (SELECT id FROM test_00808 GROUP BY id LIMIT 1 BY id) WHERE id = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1451: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee36dc0 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1375: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee34f81 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001ee34c98 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1682: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001ee39f6c in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1790: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3afdb in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:19.375460 [ 1276 ] {a4961da6-975f-428d-bd0e-12461c45f2b5} TCPHandler: Code: 277. DB::Exception: Primary key (id, date) is not used and setting 'force_primary_key' is set. (INDEX_NOT_USED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception, std::__wrap_iter, char>>(int, FormatStringHelperImpl, std::__wrap_iter, char>>::type>, fmt::v8::join_view, std::__wrap_iter, char>&&) @ 0x000000001d6c6e73 in /usr/bin/clickhouse 6. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1451: DB::ReadFromMergeTree::selectRangesToReadImpl(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee36dc0 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1375: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>, std::shared_ptr const&, DB::ActionDAGNodes const&, std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, DB::MergeTreeData const&, std::vector> const&, bool, Poco::Logger*, std::optional&) @ 0x000000001ee34f81 in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1166: DB::ReadFromMergeTree::selectRangesToRead(std::vector, std::allocator>>, std::vector, std::allocator>>) const @ 0x000000001ee34c98 in /usr/bin/clickhouse 9. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1682: DB::ReadFromMergeTree::getAnalysisResult() const @ 0x000000001ee39f6c in /usr/bin/clickhouse 10. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1790: DB::ReadFromMergeTree::initializePipeline(DB::QueryPipelineBuilder&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee3afdb in /usr/bin/clickhouse 11. /build/src/Processors/QueryPlan/ISourceStep.cpp:20: DB::ISourceStep::updatePipeline(std::vector>, std::allocator>>>, DB::BuildQueryPipelineSettings const&) @ 0x000000001ede828c in /usr/bin/clickhouse 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:188: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001ee0e81f in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:379: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd74b in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:22.507422 [ 62769 ] {21c9b8bc-6035-4a18-8c91-b506bcab2774} executeQuery: Code: 403. DB::Exception: JOIN (SELECT system.one.dummy AS val FROM system.one) AS s1 ANY LEFT JOIN (SELECT system.one.dummy AS val FROM system.one) AS s2 ON (s1.val + 0) = (s1.val * 1) cannot get JOIN keys. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49756) (comment: 00800_low_cardinality_merge_join.gen.sql) (in query: SELECT * FROM (SELECT dummy AS val FROM system.one) s1 ANY LEFT JOIN (SELECT dummy AS val FROM system.one) s2 ON val + 0 = val * 1 ORDER BY val;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:443: DB::(anonymous namespace)::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::vector> const&, DB::JoinNode const&, std::shared_ptr const&) @ 0x000000001cb99f1e in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:511: DB::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb98c64 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:936: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb817ed in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:22.508647 [ 62769 ] {21c9b8bc-6035-4a18-8c91-b506bcab2774} TCPHandler: Code: 403. DB::Exception: JOIN (SELECT system.one.dummy AS val FROM system.one) AS s1 ANY LEFT JOIN (SELECT system.one.dummy AS val FROM system.one) AS s2 ON (s1.val + 0) = (s1.val * 1) cannot get JOIN keys. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:443: DB::(anonymous namespace)::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::vector> const&, DB::JoinNode const&, std::shared_ptr const&) @ 0x000000001cb99f1e in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:511: DB::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb98c64 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:936: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb817ed in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:22.977151 [ 50481 ] {7a23900f-870d-44bf-9917-f6943e408ce4} executeQuery: Code: 42. DB::Exception: The signature of table function file shall be the following: - filename - filename, format - filename, format, structure - filename, format, structure, compression_method : While processing (SELECT * FROM file()) AS wqgdswyc. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49766) (comment: 00758_array_reverse.sql) (in query: SELECT '[RE7', ( SELECT '\0' ) AS riwwq, ( SELECT reverse([( SELECT bitTestAll(NULL) ) , ( SELECT '\0' ) AS ddfweeuy]) ) AS xuvv, '', ( SELECT * FROM file() ) AS wqgdswyc, ( SELECT * FROM file() );), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/TableFunctions/ITableFunctionFileLike.cpp:55: DB::ITableFunctionFileLike::parseArgumentsImpl(absl::lts_20211102::InlinedVector, 7ul, std::allocator>>&, std::shared_ptr const&) @ 0x000000001a97366a in /usr/bin/clickhouse 7. /build/src/TableFunctions/ITableFunctionFileLike.cpp:49: DB::ITableFunctionFileLike::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a973541 in /usr/bin/clickhouse 8. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 9. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 10. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions&) @ 0x000000001cc829f4 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:102: DB::getQueryInterpreter(DB::ASTSubquery const&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x000000001cc81adc in /usr/bin/clickhouse 18. /build/src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:163: DB::ExecuteScalarSubqueriesMatcher::visit(DB::ASTSubquery const&, std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x000000001cc7f7c4 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:69: DB::ExecuteScalarSubqueriesMatcher::visit(std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x000000001cc7ef61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cc7e0c0 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cc7e2a1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cc7e04a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cc7e346 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cc7e2ae in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cc7e04a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cc7e346 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cc7e2ae in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cc7e04a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cc7dda5 in /usr/bin/clickhouse 30. /build/src/Interpreters/TreeRewriter.cpp:465: DB::(anonymous namespace)::executeScalarSubqueries(std::shared_ptr&, std::shared_ptr, unsigned long, std::map, std::allocator>>&, std::map, std::allocator>>&, bool, bool) @ 0x000000001cf904c8 in /usr/bin/clickhouse 31. /build/src/Interpreters/TreeRewriter.cpp:1225: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d422 in /usr/bin/clickhouse 2024.05.01 13:32:22.978420 [ 50481 ] {7a23900f-870d-44bf-9917-f6943e408ce4} TCPHandler: Code: 42. DB::Exception: The signature of table function file shall be the following: - filename - filename, format - filename, format, structure - filename, format, structure, compression_method : While processing (SELECT * FROM file()) AS wqgdswyc. (NUMBER_OF_ARGUMENTS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/TableFunctions/ITableFunctionFileLike.cpp:55: DB::ITableFunctionFileLike::parseArgumentsImpl(absl::lts_20211102::InlinedVector, 7ul, std::allocator>>&, std::shared_ptr const&) @ 0x000000001a97366a in /usr/bin/clickhouse 7. /build/src/TableFunctions/ITableFunctionFileLike.cpp:49: DB::ITableFunctionFileLike::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a973541 in /usr/bin/clickhouse 8. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 9. /build/src/Interpreters/Context.cpp:1595: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x000000001bdbe304 in /usr/bin/clickhouse 10. /build/src/Interpreters/JoinedTables.cpp:211: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc10156 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions&) @ 0x000000001cc829f4 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:102: DB::getQueryInterpreter(DB::ASTSubquery const&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x000000001cc81adc in /usr/bin/clickhouse 18. /build/src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:163: DB::ExecuteScalarSubqueriesMatcher::visit(DB::ASTSubquery const&, std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x000000001cc7f7c4 in /usr/bin/clickhouse 19. /build/src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:69: DB::ExecuteScalarSubqueriesMatcher::visit(std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x000000001cc7ef61 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x000000001cc7e0c0 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cc7e2a1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cc7e04a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cc7e346 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cc7e2ae in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cc7e04a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:83: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x000000001cc7e346 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:65: void DB::InDepthNodeVisitor>::visitImplMain(std::shared_ptr&) @ 0x000000001cc7e2ae in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor>::visitImpl(std::shared_ptr&) @ 0x000000001cc7e04a in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor>::visit(std::shared_ptr&) @ 0x000000001cc7dda5 in /usr/bin/clickhouse 30. /build/src/Interpreters/TreeRewriter.cpp:465: DB::(anonymous namespace)::executeScalarSubqueries(std::shared_ptr&, std::shared_ptr, unsigned long, std::map, std::allocator>>&, std::map, std::allocator>>&, bool, bool) @ 0x000000001cf904c8 in /usr/bin/clickhouse 31. /build/src/Interpreters/TreeRewriter.cpp:1225: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d422 in /usr/bin/clickhouse 2024.05.01 13:32:23.644944 [ 62677 ] {25c98d82-9bac-478d-ba3e-c3f59df5e98d} StorageBuffer (test_dhx9mit2.buffer_00753): Destination table test_dhx9mit2.dst_00753 have different type of column y (String != UInt64). Block of data is converted. 2024.05.01 13:32:23.645352 [ 62677 ] {25c98d82-9bac-478d-ba3e-c3f59df5e98d} StorageBuffer (test_dhx9mit2.buffer_00753): Not all columns from block in buffer exist in destination table test_dhx9mit2.dst_00753. Some columns are discarded. 2024.05.01 13:32:23.722162 [ 62677 ] {af1324cf-1c31-493a-bfe9-21ffd17108be} StorageBuffer (test_dhx9mit2.buffer_00753): Destination table test_dhx9mit2.dst_00753 doesn't have column x. The default values are used. 2024.05.01 13:32:23.722328 [ 62677 ] {af1324cf-1c31-493a-bfe9-21ffd17108be} StorageBuffer (test_dhx9mit2.buffer_00753): Destination table test_dhx9mit2.dst_00753 has different type of column y (String != UInt64). Data from destination table are converted. 2024.05.01 13:32:23.749905 [ 62677 ] {89fce516-251d-41f6-a057-d60d477c948f} StorageBuffer (test_dhx9mit2.buffer_00753): Destination table test_dhx9mit2.dst_00753 have different type of column y (String != UInt64). Block of data is converted. 2024.05.01 13:32:23.750333 [ 62677 ] {89fce516-251d-41f6-a057-d60d477c948f} StorageBuffer (test_dhx9mit2.buffer_00753): Not all columns from block in buffer exist in destination table test_dhx9mit2.dst_00753. Some columns are discarded. 2024.05.01 13:32:23.825823 [ 62677 ] {a8758e12-a5f6-4bee-aea7-f83f9fccea63} StorageBuffer (test_dhx9mit2.buffer_00753): Destination table test_dhx9mit2.dst_00753 doesn't have column x. The default values are used. 2024.05.01 13:32:23.826046 [ 62677 ] {a8758e12-a5f6-4bee-aea7-f83f9fccea63} StorageBuffer (test_dhx9mit2.buffer_00753): Destination table test_dhx9mit2.dst_00753 has different type of column y (String != UInt64). Data from destination table are converted. 2024.05.01 13:32:24.369278 [ 62769 ] {355c07ad-2e39-438b-b750-03aa98ffc969} executeQuery: Code: 403. DB::Exception: JOIN (SELECT system.one.dummy AS val FROM system.one) AS s1 ANY LEFT JOIN (SELECT system.one.dummy AS val FROM system.one) AS s2 ON (s1.val + 0) = (s1.val * 1) cannot get JOIN keys. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49756) (comment: 00800_low_cardinality_merge_join.gen.sql) (in query: SELECT * FROM (SELECT dummy AS val FROM system.one) s1 ANY LEFT JOIN (SELECT dummy AS val FROM system.one) s2 ON val + 0 = val * 1 ORDER BY val;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:443: DB::(anonymous namespace)::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::vector> const&, DB::JoinNode const&, std::shared_ptr const&) @ 0x000000001cb99f1e in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:511: DB::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb98c64 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:936: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb817ed in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:24.370296 [ 62769 ] {355c07ad-2e39-438b-b750-03aa98ffc969} TCPHandler: Code: 403. DB::Exception: JOIN (SELECT system.one.dummy AS val FROM system.one) AS s1 ANY LEFT JOIN (SELECT system.one.dummy AS val FROM system.one) AS s2 ON (s1.val + 0) = (s1.val * 1) cannot get JOIN keys. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:443: DB::(anonymous namespace)::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::vector> const&, DB::JoinNode const&, std::shared_ptr const&) @ 0x000000001cb99f1e in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:511: DB::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb98c64 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:936: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb817ed in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.070423 [ 942 ] {} test_a76xttkw.replicated_table_detach_all2 (359b262d-4387-440d-9466-40c83bfc4782): Part 1_2_2_0 doesn't have metadata version on disk, setting it to 0. It's okay if the part was created by an old version of ClickHouse 2024.05.01 13:32:25.199386 [ 62780 ] {f69baaae-5ed4-4b09-ac0d-cd91f98e4c01} executeQuery: Code: 344. DB::Exception: Only support DROP/DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49812) (comment: 00753_alter_attach.sql) (in query: ALTER TABLE replicated_table_detach_all1 FETCH PARTITION ALL FROM '/clickhouse/tables/test_00753_{database}/replicated_table_detach_all1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4bb9be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4945: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001de45e93 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cac33 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.200032 [ 62780 ] {f69baaae-5ed4-4b09-ac0d-cd91f98e4c01} TCPHandler: Code: 344. DB::Exception: Only support DROP/DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4bb9be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4945: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001de45e93 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cac33 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.397623 [ 62780 ] {b58de2d7-0dee-4dbf-8e07-52779bfed131} executeQuery: Code: 344. DB::Exception: Only support DROP/DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49812) (comment: 00753_alter_attach.sql) (in query: -- test PARTITION ALL ALTER TABLE partition_all2 REPLACE PARTITION ALL FROM partition_all;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4bb9be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4945: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001de45e93 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cac33 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.398211 [ 62780 ] {b58de2d7-0dee-4dbf-8e07-52779bfed131} TCPHandler: Code: 344. DB::Exception: Only support DROP/DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4bb9be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4945: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001de45e93 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cac33 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.402801 [ 62780 ] {50a0aa84-36be-4758-9d6e-b72e11f3a5a8} executeQuery: Code: 344. DB::Exception: Only support DROP/DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49812) (comment: 00753_alter_attach.sql) (in query: ALTER TABLE partition_all MOVE PARTITION ALL TO TABLE partition_all2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4bb9be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4945: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001de45e93 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cac33 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.403358 [ 62780 ] {50a0aa84-36be-4758-9d6e-b72e11f3a5a8} TCPHandler: Code: 344. DB::Exception: Only support DROP/DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4bb9be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4945: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001de45e93 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cac33 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.500864 [ 62780 ] {b0428957-b32c-4f0a-9e28-bf89c6a5fe68} executeQuery: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49812) (comment: 00753_alter_attach.sql) (in query: ALTER TABLE partition_all2 CLEAR INDEX p IN PARTITION ALL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25047e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de2e064 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3223: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ace2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.501491 [ 62780 ] {b0428957-b32c-4f0a-9e28-bf89c6a5fe68} TCPHandler: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25047e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de2e064 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3223: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ace2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.511906 [ 62780 ] {7e3fa599-cef6-45d8-8179-07f925b4ac7c} executeQuery: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49812) (comment: 00753_alter_attach.sql) (in query: ALTER TABLE partition_all2 CLEAR COLUMN q IN PARTITION ALL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25047e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de2e064 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3223: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ace2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.512459 [ 62780 ] {7e3fa599-cef6-45d8-8179-07f925b4ac7c} TCPHandler: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25047e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de2e064 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3223: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x000000001de2ace2 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:196: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cafdf in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.638839 [ 62780 ] {804aa689-990e-46cb-8c25-51fac718e7a9} executeQuery: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49812) (comment: 00753_alter_attach.sql) (in query: ALTER TABLE partition_all2 UPDATE q = q + 1 IN PARTITION ALL where p = 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25047e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de2e064 in /usr/bin/clickhouse 7. /build/src/Interpreters/MutationsInterpreter.cpp:226: DB::getPartitionAndPredicateExpressionForMutationCommand(DB::MutationCommand const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cc55e89 in /usr/bin/clickhouse 8. /build/src/Interpreters/MutationsInterpreter.cpp:1362: DB::MutationsInterpreter::getPartitionAndPredicateExpressionForMutationCommand(DB::MutationCommand const&) const @ 0x000000001cc5d053 in /usr/bin/clickhouse 9. /build/src/Interpreters/MutationsInterpreter.cpp:623: DB::MutationsInterpreter::prepare(bool) @ 0x000000001cc589e2 in /usr/bin/clickhouse 10. /build/src/Interpreters/MutationsInterpreter.cpp:365: DB::MutationsInterpreter::MutationsInterpreter(DB::MutationsInterpreter::Source, std::shared_ptr, DB::MutationCommands, std::vector>, std::shared_ptr, DB::MutationsInterpreter::Settings) @ 0x000000001cc572c1 in /usr/bin/clickhouse 11. /build/src/Interpreters/MutationsInterpreter.cpp:320: DB::MutationsInterpreter::MutationsInterpreter(std::shared_ptr, std::shared_ptr, DB::MutationCommands, std::shared_ptr, DB::MutationsInterpreter::Settings) @ 0x000000001cc56ac0 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterAlterQuery.cpp:178: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caa12 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.646257 [ 62780 ] {804aa689-990e-46cb-8c25-51fac718e7a9} TCPHandler: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25047e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de2e064 in /usr/bin/clickhouse 7. /build/src/Interpreters/MutationsInterpreter.cpp:226: DB::getPartitionAndPredicateExpressionForMutationCommand(DB::MutationCommand const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001cc55e89 in /usr/bin/clickhouse 8. /build/src/Interpreters/MutationsInterpreter.cpp:1362: DB::MutationsInterpreter::getPartitionAndPredicateExpressionForMutationCommand(DB::MutationCommand const&) const @ 0x000000001cc5d053 in /usr/bin/clickhouse 9. /build/src/Interpreters/MutationsInterpreter.cpp:623: DB::MutationsInterpreter::prepare(bool) @ 0x000000001cc589e2 in /usr/bin/clickhouse 10. /build/src/Interpreters/MutationsInterpreter.cpp:365: DB::MutationsInterpreter::MutationsInterpreter(DB::MutationsInterpreter::Source, std::shared_ptr, DB::MutationCommands, std::vector>, std::shared_ptr, DB::MutationsInterpreter::Settings) @ 0x000000001cc572c1 in /usr/bin/clickhouse 11. /build/src/Interpreters/MutationsInterpreter.cpp:320: DB::MutationsInterpreter::MutationsInterpreter(std::shared_ptr, std::shared_ptr, DB::MutationCommands, std::shared_ptr, DB::MutationsInterpreter::Settings) @ 0x000000001cc56ac0 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterAlterQuery.cpp:178: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caa12 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.651604 [ 62780 ] {3672c54d-d328-4031-b4d9-f6a604b53d2c} executeQuery: Code: 344. DB::Exception: Only support DROP/DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49812) (comment: 00753_alter_attach.sql) (in query: ALTER TABLE partition_all2 FREEZE PARTITION ALL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4bb9be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4945: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001de45e93 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cac33 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.652189 [ 62780 ] {3672c54d-d328-4031-b4d9-f6a604b53d2c} TCPHandler: Code: 344. DB::Exception: Only support DROP/DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [49]) @ 0x000000000c4bb9be in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:4945: DB::MergeTreeData::checkAlterPartitionIsPossible(std::vector> const&, std::shared_ptr const&, DB::Settings const&) const @ 0x000000001de45e93 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:184: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cac33 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.758727 [ 62780 ] {5a79c46d-8146-4d2b-870d-566a29ae5771} executeQuery: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49812) (comment: 00753_alter_attach.sql) (in query: CHECK TABLE partition_all2 PARTITION ALL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25047e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de2e064 in /usr/bin/clickhouse 7. /build/src/Storages/StorageMergeTree.cpp:2204: DB::StorageMergeTree::checkData(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e3190ba in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCheckQuery.cpp:44: DB::InterpreterCheckQuery::execute() @ 0x000000001ca5ee20 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.759584 [ 62780 ] {5a79c46d-8146-4d2b-870d-566a29ae5771} TCPHandler: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25047e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de2e064 in /usr/bin/clickhouse 7. /build/src/Storages/StorageMergeTree.cpp:2204: DB::StorageMergeTree::checkData(std::shared_ptr const&, std::shared_ptr) @ 0x000000001e3190ba in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCheckQuery.cpp:44: DB::InterpreterCheckQuery::execute() @ 0x000000001ca5ee20 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.850632 [ 62780 ] {efe696ea-173c-4397-bb9b-73dfd9f65c17} executeQuery: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49812) (comment: 00753_alter_attach.sql) (in query: OPTIMIZE TABLE partition_all2 PARTITION ALL;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25047e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de2e064 in /usr/bin/clickhouse 7. /build/src/Storages/StorageMergeTree.cpp:1546: DB::StorageMergeTree::optimize(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&, bool, bool, std::vector> const&, bool, std::shared_ptr) @ 0x000000001e30a953 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:82: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca87a05 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:25.851236 [ 62780 ] {efe696ea-173c-4397-bb9b-73dfd9f65c17} TCPHandler: Code: 344. DB::Exception: Only Support DETACH PARTITION ALL currently. (SUPPORT_IS_DISABLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [44]) @ 0x000000000b25047e in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:5520: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x000000001de2e064 in /usr/bin/clickhouse 7. /build/src/Storages/StorageMergeTree.cpp:1546: DB::StorageMergeTree::optimize(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr const&, bool, bool, std::vector> const&, bool, std::shared_ptr) @ 0x000000001e30a953 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterOptimizeQuery.cpp:82: DB::InterpreterOptimizeQuery::execute() @ 0x000000001ca87a05 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:26.426517 [ 62769 ] {d6d187f1-cf99-4412-a6f5-15f85fafc946} executeQuery: Code: 403. DB::Exception: JOIN (SELECT system.one.dummy AS val FROM system.one) AS s1 ANY LEFT JOIN (SELECT system.one.dummy AS val FROM system.one) AS s2 ON (s1.val + 0) = (s1.val * 1) cannot get JOIN keys. (INVALID_JOIN_ON_EXPRESSION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49756) (comment: 00800_low_cardinality_merge_join.gen.sql) (in query: SELECT * FROM (SELECT dummy AS val FROM system.one) s1 ANY LEFT JOIN (SELECT dummy AS val FROM system.one) s2 ON val + 0 = val * 1 ORDER BY val;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:443: DB::(anonymous namespace)::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::vector> const&, DB::JoinNode const&, std::shared_ptr const&) @ 0x000000001cb99f1e in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:511: DB::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb98c64 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:936: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb817ed in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:26.427493 [ 62769 ] {d6d187f1-cf99-4412-a6f5-15f85fafc946} TCPHandler: Code: 403. DB::Exception: JOIN (SELECT system.one.dummy AS val FROM system.one) AS s1 ANY LEFT JOIN (SELECT system.one.dummy AS val FROM system.one) AS s2 ON (s1.val + 0) = (s1.val * 1) cannot get JOIN keys. (INVALID_JOIN_ON_EXPRESSION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Planner/PlannerJoins.cpp:443: DB::(anonymous namespace)::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::vector> const&, DB::JoinNode const&, std::shared_ptr const&) @ 0x000000001cb99f1e in /usr/bin/clickhouse 7. /build/src/Planner/PlannerJoins.cpp:511: DB::buildJoinClausesAndActions(std::vector> const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001cb98c64 in /usr/bin/clickhouse 8. /build/src/Planner/PlannerJoinTree.cpp:936: DB::(anonymous namespace)::buildQueryPlanForJoinNode(std::shared_ptr const&, DB::JoinTreeQueryPlan, DB::JoinTreeQueryPlan, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb817ed in /usr/bin/clickhouse 9. /build/src/Planner/PlannerJoinTree.cpp:1504: DB::buildJoinTreeQueryPlan(std::shared_ptr const&, DB::SelectQueryInfo const&, DB::SelectQueryOptions&, std::unordered_set, std::equal_to, std::allocator> const&, std::shared_ptr&) @ 0x000000001cb7c785 in /usr/bin/clickhouse 10. /build/src/Planner/Planner.cpp:1253: DB::Planner::buildPlanForQueryNode() @ 0x000000001cb5e2c3 in /usr/bin/clickhouse 11. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001cb5c519 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:234: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001cb5a93d in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1039: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0792 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:27.415823 [ 62771 ] {0fdf726c-2e21-4b90-a8be-07b2657bbb44} executeQuery: Code: 417. DB::Exception: Expected ANY or ALL in JOIN section, because setting (join_default_strictness) is empty. (EXPECTED_ALL_OR_ANY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49884) (comment: 00742_require_join_strictness.sql) (in query: SELECT * FROM system.one INNER JOIN (SELECT number AS k FROM system.numbers) js2 ON dummy = k;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [88]) @ 0x000000000b64d07e in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:529: DB::(anonymous namespace)::setJoinStrictness(DB::ASTSelectQuery&, DB::JoinStrictness, bool, std::shared_ptr&) @ 0x000000001cf90d42 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1247: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d7d0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:27.416988 [ 62771 ] {0fdf726c-2e21-4b90-a8be-07b2657bbb44} TCPHandler: Code: 417. DB::Exception: Expected ANY or ALL in JOIN section, because setting (join_default_strictness) is empty. (EXPECTED_ALL_OR_ANY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [88]) @ 0x000000000b64d07e in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:529: DB::(anonymous namespace)::setJoinStrictness(DB::ASTSelectQuery&, DB::JoinStrictness, bool, std::shared_ptr&) @ 0x000000001cf90d42 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1247: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d7d0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:29.830972 [ 62771 ] {f2630eae-82d5-4159-bda6-fd3780f6f2b6} executeQuery: Code: 319. DB::Exception: Unknown status, client must retry. Reason: Code: 159. DB::Exception: Timeout while waiting for quorum. (TIMEOUT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)). (UNKNOWN_STATUS_OF_INSERT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52666) (comment: 00732_quorum_insert_lost_part_zookeeper_long.sql) (in query: INSERT INTO quorum2 VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1148: DB::ReplicatedMergeTreeSinkImpl::waitForQuorum(std::shared_ptr const&, String const&, String const&, int, unsigned long) const @ 0x000000001e2bb8f6 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1069: DB::ReplicatedMergeTreeSinkImpl::commitPart(std::shared_ptr const&, std::shared_ptr&, String const&, unsigned long, bool) @ 0x000000001e2b9e78 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:423: DB::ReplicatedMergeTreeSinkImpl::finishDelayedChunk(std::shared_ptr const&) @ 0x000000001e2aeb31 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:400: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b8db8 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:32:29.832244 [ 62771 ] {f2630eae-82d5-4159-bda6-fd3780f6f2b6} TCPHandler: Code: 319. DB::Exception: Unknown status, client must retry. Reason: Code: 159. DB::Exception: Timeout while waiting for quorum. (TIMEOUT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)). (UNKNOWN_STATUS_OF_INSERT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1148: DB::ReplicatedMergeTreeSinkImpl::waitForQuorum(std::shared_ptr const&, String const&, String const&, int, unsigned long) const @ 0x000000001e2bb8f6 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1069: DB::ReplicatedMergeTreeSinkImpl::commitPart(std::shared_ptr const&, std::shared_ptr&, String const&, unsigned long, bool) @ 0x000000001e2b9e78 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:423: DB::ReplicatedMergeTreeSinkImpl::finishDelayedChunk(std::shared_ptr const&) @ 0x000000001e2aeb31 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:400: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b8db8 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:32:32.887485 [ 62771 ] {4bde7515-92f7-4046-9aca-195c6cc3842a} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52736) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_local_1') PREWHERE _table = 'test_local_1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:32.888796 [ 62771 ] {4bde7515-92f7-4046-9aca-195c6cc3842a} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:32.940258 [ 62771 ] {6304bc22-f09e-41b2-b5a7-cc485bd0c5a2} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52736) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_local_1') PREWHERE _table in ('test_local_1', 'test_local_2');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:32.941128 [ 62771 ] {6304bc22-f09e-41b2-b5a7-cc485bd0c5a2} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:33.152378 [ 62771 ] {9bdde529-24d0-4945-9574-28abaa1e55fa} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52736) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_distributed_1') PREWHERE _table = 'test_distributed_1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:33.153148 [ 62771 ] {9bdde529-24d0-4945-9574-28abaa1e55fa} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:33.217246 [ 62771 ] {a23b8734-908e-424d-ac0c-d8efbfb7f786} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52736) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_distributed_1') PREWHERE _table in ('test_distributed_1', 'test_distributed_2');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:33.218077 [ 62771 ] {a23b8734-908e-424d-ac0c-d8efbfb7f786} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:33.416152 [ 62771 ] {59f6d6bd-bed1-4efc-b19c-31762b6ad44e} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52736) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_local_1|test_local_2') PREWHERE _table = 'test_local_1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:33.416931 [ 62771 ] {59f6d6bd-bed1-4efc-b19c-31762b6ad44e} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:33.494051 [ 62771 ] {edfa0b07-d3fb-418c-850b-2f1736102546} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52736) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_local_1|test_local_2') PREWHERE _table in ('test_local_1', 'test_local_2') ORDER BY value;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:33.495140 [ 62771 ] {edfa0b07-d3fb-418c-850b-2f1736102546} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:33.798884 [ 62771 ] {f77e4543-27ee-45b7-9f6d-6adcc07483fd} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52736) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_local_1|test_distributed_2') PREWHERE _table = 'test_local_1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:33.799902 [ 62771 ] {f77e4543-27ee-45b7-9f6d-6adcc07483fd} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:33.904150 [ 62771 ] {bc0e5657-9a2a-4e02-8c54-c6e2c1f8dd5e} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52736) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_local_1|test_distributed_2') PREWHERE _table in ('test_local_1', 'test_distributed_2') ORDER BY value;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:33.904874 [ 62771 ] {bc0e5657-9a2a-4e02-8c54-c6e2c1f8dd5e} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:34.204173 [ 62771 ] {af040faf-6f25-4b1c-ba0f-14ccd6cf7101} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52736) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_distributed_1|test_distributed_2') PREWHERE _table = 'test_distributed_1';), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:34.204883 [ 62771 ] {af040faf-6f25-4b1c-ba0f-14ccd6cf7101} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:34.305790 [ 62771 ] {2d0f24bf-df65-4993-83d6-e4bb5ccf461b} executeQuery: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52736) (comment: 00717_merge_and_distributed.sql) (in query: SELECT * FROM merge(currentDatabase(), 'test_distributed_1|test_distributed_2') PREWHERE _table in ('test_distributed_1', 'test_distributed_2') ORDER BY value;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:34.306653 [ 62771 ] {2d0f24bf-df65-4993-83d6-e4bb5ccf461b} TCPHandler: Code: 182. DB::Exception: Storage Merge doesn't support PREWHERE for _table. (ILLEGAL_PREWHERE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2231: DB::InterpreterSelectQuery::addPrewhereAliasActions() @ 0x000000001caa6451 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:853: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001caa0139 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:35.792524 [ 62772 ] {e99a1712-ffe5-4981-8b27-c17065d1f49c} executeQuery: Code: 6. DB::Exception: Cannot parse string 'x123' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('x123', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal32 ('x123', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b2d0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:35.793433 [ 62772 ] {e99a1712-ffe5-4981-8b27-c17065d1f49c} TCPHandler: Code: 6. DB::Exception: Cannot parse string 'x123' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('x123', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b2d0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:35.924351 [ 62772 ] {faaaa5be-3fc6-45ce-918e-a45a6f8e27a0} executeQuery: Code: 32. DB::Exception: Attempt to read after eof: Cannot parse Decimal(9, 4) from String, because value is too short: While processing toDecimal32('', 4). (ATTEMPT_TO_READ_AFTER_EOF) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal32 ('', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5d97de in /usr/bin/clickhouse 6. /build/src/IO/VarInt.cpp:13: DB::throwReadAfterEOF() @ 0x0000000013992c91 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:41: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b3f97b8 in /usr/bin/clickhouse 8. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a14e6 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 2024.05.01 13:32:36.046724 [ 62772 ] {faaaa5be-3fc6-45ce-918e-a45a6f8e27a0} TCPHandler: Code: 32. DB::Exception: Attempt to read after eof: Cannot parse Decimal(9, 4) from String, because value is too short: While processing toDecimal32('', 4). (ATTEMPT_TO_READ_AFTER_EOF), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5d97de in /usr/bin/clickhouse 6. /build/src/IO/VarInt.cpp:13: DB::throwReadAfterEOF() @ 0x0000000013992c91 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:41: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b3f97b8 in /usr/bin/clickhouse 8. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a14e6 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 2024.05.01 13:32:36.046765 [ 62773 ] {4187c91b-9969-45d2-b169-8ca31f29eeec} executeQuery: Code: 43. DB::Exception: Illegal type Decimal(9, 1) of argument of function pow: While processing toDecimal32('4.2', 1) AS x, pow(x, 2), pow(x, 0.5). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52844) (comment: 00700_decimal_math.sql) (in query: SELECT toDecimal32('4.2', 1) AS x, pow(x, 2), pow(x, 0.5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionMathBinaryFloat64.h:45: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x00000000123e4647 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionMathBinaryFloat64.h:50: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001233c5b9 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:32:36.048064 [ 62773 ] {4187c91b-9969-45d2-b169-8ca31f29eeec} TCPHandler: Code: 43. DB::Exception: Illegal type Decimal(9, 1) of argument of function pow: While processing toDecimal32('4.2', 1) AS x, pow(x, 2), pow(x, 0.5). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionMathBinaryFloat64.h:45: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x00000000123e4647 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionMathBinaryFloat64.h:50: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001233c5b9 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:32:36.055692 [ 62772 ] {b13d318f-a58e-46cf-b929-2fad07bfb013} executeQuery: Code: 6. DB::Exception: Cannot parse string '\0' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('\0', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal32 ('\0', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b2d0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.056515 [ 62772 ] {b13d318f-a58e-46cf-b929-2fad07bfb013} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\0' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('\0', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b2d0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.059231 [ 62773 ] {6ae7c097-aa22-4e20-9605-0f1c8ba0f6d1} executeQuery: Code: 43. DB::Exception: Illegal type Decimal(18, 1) of argument of function pow: While processing toDecimal64('4.2', 1) AS x, pow(x, 2), pow(x, 0.5). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52844) (comment: 00700_decimal_math.sql) (in query: SELECT toDecimal64('4.2', 1) AS x, pow(x, 2), pow(x, 0.5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionMathBinaryFloat64.h:45: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x00000000123e4647 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionMathBinaryFloat64.h:50: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001233c5b9 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:32:36.060079 [ 62773 ] {6ae7c097-aa22-4e20-9605-0f1c8ba0f6d1} TCPHandler: Code: 43. DB::Exception: Illegal type Decimal(18, 1) of argument of function pow: While processing toDecimal64('4.2', 1) AS x, pow(x, 2), pow(x, 0.5). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionMathBinaryFloat64.h:45: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x00000000123e4647 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionMathBinaryFloat64.h:50: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001233c5b9 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:32:36.064355 [ 62772 ] {bb776bb1-1b96-4ba9-9759-de6504c57300} executeQuery: Code: 6. DB::Exception: Cannot parse string '\0\0\0\0\0' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('\0\0\0\0\0', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal32 ('\0\0\0\0\0', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b2d0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.065182 [ 62772 ] {bb776bb1-1b96-4ba9-9759-de6504c57300} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\0\0\0\0\0' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('\0\0\0\0\0', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b2d0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.069903 [ 62773 ] {03f8d71e-7cc4-4998-b2e2-baecd02b2129} executeQuery: Code: 43. DB::Exception: Illegal type Decimal(38, 1) of argument of function pow: While processing toDecimal128('4.2', 1) AS x, pow(x, 2), pow(x, 0.5). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52844) (comment: 00700_decimal_math.sql) (in query: SELECT toDecimal128('4.2', 1) AS x, pow(x, 2), pow(x, 0.5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionMathBinaryFloat64.h:45: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x00000000123e4647 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionMathBinaryFloat64.h:50: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001233c5b9 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:32:36.070846 [ 62773 ] {03f8d71e-7cc4-4998-b2e2-baecd02b2129} TCPHandler: Code: 43. DB::Exception: Illegal type Decimal(38, 1) of argument of function pow: While processing toDecimal128('4.2', 1) AS x, pow(x, 2), pow(x, 0.5). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionMathBinaryFloat64.h:45: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x00000000123e4647 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionMathBinaryFloat64.h:50: DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000001233c5b9 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:521: DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b1911ac in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:32:36.072739 [ 62772 ] {cc4813c8-2df1-41ea-926a-53bd13116ad0} executeQuery: Code: 6. DB::Exception: Cannot parse string '\n\t\r' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('\n\t\r', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal32 ('\n\t\r', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b2d0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.073987 [ 62772 ] {cc4813c8-2df1-41ea-926a-53bd13116ad0} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\n\t\r' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('\n\t\r', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b2d0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.083845 [ 62772 ] {278d6a44-fd58-49e7-8c4b-a348747adbb2} executeQuery: Code: 6. DB::Exception: Cannot parse string '\'' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('\'', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal32 ('\'', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b2d0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.085168 [ 62772 ] {278d6a44-fd58-49e7-8c4b-a348747adbb2} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\'' as Decimal(9, 4): syntax error at begin of string: While processing toDecimal32('\'', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b2d0 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.252602 [ 62772 ] {fd5cf7cc-83fa-43ce-a05b-74671866f4d8} executeQuery: Code: 6. DB::Exception: Cannot parse string 'x123' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('x123', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal64 ('x123', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.253714 [ 62772 ] {fd5cf7cc-83fa-43ce-a05b-74671866f4d8} TCPHandler: Code: 6. DB::Exception: Cannot parse string 'x123' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('x123', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.421297 [ 62772 ] {3b2c7677-77b8-4347-9311-acdf711820e8} executeQuery: Code: 32. DB::Exception: Attempt to read after eof: Cannot parse Decimal(18, 4) from String, because value is too short: While processing toDecimal64('', 4). (ATTEMPT_TO_READ_AFTER_EOF) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal64 ('', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5d97de in /usr/bin/clickhouse 6. /build/src/IO/VarInt.cpp:13: DB::throwReadAfterEOF() @ 0x0000000013992c91 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:41: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b3f9f7c in /usr/bin/clickhouse 8. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1c86 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 2024.05.01 13:32:36.422374 [ 62772 ] {3b2c7677-77b8-4347-9311-acdf711820e8} TCPHandler: Code: 32. DB::Exception: Attempt to read after eof: Cannot parse Decimal(18, 4) from String, because value is too short: While processing toDecimal64('', 4). (ATTEMPT_TO_READ_AFTER_EOF), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5d97de in /usr/bin/clickhouse 6. /build/src/IO/VarInt.cpp:13: DB::throwReadAfterEOF() @ 0x0000000013992c91 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:41: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b3f9f7c in /usr/bin/clickhouse 8. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1c86 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 2024.05.01 13:32:36.431245 [ 62772 ] {b831319e-87e4-4439-b0ec-20e4c9b501e9} executeQuery: Code: 6. DB::Exception: Cannot parse string '\0' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('\0', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal64 ('\0', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.432190 [ 62772 ] {b831319e-87e4-4439-b0ec-20e4c9b501e9} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\0' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('\0', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.440239 [ 62772 ] {17bb3f27-4a32-4d90-b9bc-9d73a0640e04} executeQuery: Code: 6. DB::Exception: Cannot parse string '\0\0\0\0\0' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('\0\0\0\0\0', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal64 ('\0\0\0\0\0', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.441079 [ 62772 ] {17bb3f27-4a32-4d90-b9bc-9d73a0640e04} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\0\0\0\0\0' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('\0\0\0\0\0', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.449323 [ 62772 ] {2324b1eb-d881-4dde-965c-842590ddc10a} executeQuery: Code: 6. DB::Exception: Cannot parse string '\n\t\r' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('\n\t\r', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal64 ('\n\t\r', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.450161 [ 62772 ] {2324b1eb-d881-4dde-965c-842590ddc10a} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\n\t\r' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('\n\t\r', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.458868 [ 62772 ] {f90a9f9d-f70b-4628-90e1-b2cca2edb6cf} executeQuery: Code: 6. DB::Exception: Cannot parse string '\'' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('\'', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal64 ('\'', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.459914 [ 62772 ] {f90a9f9d-f70b-4628-90e1-b2cca2edb6cf} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\'' as Decimal(18, 4): syntax error at begin of string: While processing toDecimal64('\'', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.634141 [ 62772 ] {84303a8e-087f-485f-81a1-feb48b594584} executeQuery: Code: 6. DB::Exception: Cannot parse string 'x123' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('x123', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal128 ('x123', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.635131 [ 62772 ] {84303a8e-087f-485f-81a1-feb48b594584} TCPHandler: Code: 6. DB::Exception: Cannot parse string 'x123' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('x123', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.781408 [ 62772 ] {a62d1a0f-50e8-4706-9c0d-57d96c993b32} executeQuery: Code: 32. DB::Exception: Attempt to read after eof: Cannot parse Decimal(38, 4) from String, because value is too short: While processing toDecimal128('', 4). (ATTEMPT_TO_READ_AFTER_EOF) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal128 ('', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5d97de in /usr/bin/clickhouse 6. /build/src/IO/VarInt.cpp:13: DB::throwReadAfterEOF() @ 0x0000000013992c91 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:41: bool DB::readDigits>>(DB::ReadBuffer&, DB::Decimal>&, unsigned int&, int&, bool) @ 0x000000001b3fa79b in /usr/bin/clickhouse 8. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a2466 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 2024.05.01 13:32:36.782721 [ 62772 ] {a62d1a0f-50e8-4706-9c0d-57d96c993b32} TCPHandler: Code: 32. DB::Exception: Attempt to read after eof: Cannot parse Decimal(38, 4) from String, because value is too short: While processing toDecimal128('', 4). (ATTEMPT_TO_READ_AFTER_EOF), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5d97de in /usr/bin/clickhouse 6. /build/src/IO/VarInt.cpp:13: DB::throwReadAfterEOF() @ 0x0000000013992c91 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:41: bool DB::readDigits>>(DB::ReadBuffer&, DB::Decimal>&, unsigned int&, int&, bool) @ 0x000000001b3fa79b in /usr/bin/clickhouse 8. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a2466 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 2024.05.01 13:32:36.792456 [ 62772 ] {dab7d044-965a-42f8-8d83-a3c7e39f7c5f} executeQuery: Code: 6. DB::Exception: Cannot parse string '\0' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('\0', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal128 ('\0', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.793303 [ 62772 ] {dab7d044-965a-42f8-8d83-a3c7e39f7c5f} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\0' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('\0', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.801474 [ 62772 ] {885af139-b46f-4823-8adf-dda8fd424588} executeQuery: Code: 6. DB::Exception: Cannot parse string '\0\0\0\0\0' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('\0\0\0\0\0', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal128 ('\0\0\0\0\0', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.802353 [ 62772 ] {885af139-b46f-4823-8adf-dda8fd424588} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\0\0\0\0\0' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('\0\0\0\0\0', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.810441 [ 62772 ] {ed61c885-3c04-49b4-997d-3f0a541dd78b} executeQuery: Code: 6. DB::Exception: Cannot parse string '\n\t\r' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('\n\t\r', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal128 ('\n\t\r', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.811245 [ 62772 ] {ed61c885-3c04-49b4-997d-3f0a541dd78b} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\n\t\r' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('\n\t\r', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.819645 [ 62772 ] {13567393-5d50-45ea-86b1-d203bd2d2fa0} executeQuery: Code: 6. DB::Exception: Cannot parse string '\'' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('\'', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal128 ('\'', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:36.820510 [ 62772 ] {13567393-5d50-45ea-86b1-d203bd2d2fa0} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\'' as Decimal(38, 4): syntax error at begin of string: While processing toDecimal128('\'', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e50 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:37.000508 [ 62772 ] {429c7fc6-27ec-4ba6-9ac2-d09e7cde8409} executeQuery: Code: 6. DB::Exception: Cannot parse string 'x123' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('x123', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal256 ('x123', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000baa7e70 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baa2076 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba8d8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8cc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8be1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:37.001668 [ 62772 ] {429c7fc6-27ec-4ba6-9ac2-d09e7cde8409} TCPHandler: Code: 6. DB::Exception: Cannot parse string 'x123' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('x123', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000baa7e70 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baa2076 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba8d8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8cc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8be1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:37.147706 [ 62772 ] {99478eb4-6070-4e0b-99f1-fbec32da0c2c} executeQuery: Code: 32. DB::Exception: Attempt to read after eof: Cannot parse Decimal(76, 4) from String, because value is too short: While processing toDecimal256('', 4). (ATTEMPT_TO_READ_AFTER_EOF) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal256 ('', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5d97de in /usr/bin/clickhouse 6. /build/src/IO/VarInt.cpp:13: DB::throwReadAfterEOF() @ 0x0000000013992c91 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:41: bool DB::readDigits>>(DB::ReadBuffer&, DB::Decimal>&, unsigned int&, int&, bool) @ 0x000000001b3fb0b9 in /usr/bin/clickhouse 8. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a2d26 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba32081 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000baa7e27 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baa2076 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba8d8d9 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8cc08 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8be1e in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 2024.05.01 13:32:37.148707 [ 62772 ] {99478eb4-6070-4e0b-99f1-fbec32da0c2c} TCPHandler: Code: 32. DB::Exception: Attempt to read after eof: Cannot parse Decimal(76, 4) from String, because value is too short: While processing toDecimal256('', 4). (ATTEMPT_TO_READ_AFTER_EOF), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [26]) @ 0x000000000b5d97de in /usr/bin/clickhouse 6. /build/src/IO/VarInt.cpp:13: DB::throwReadAfterEOF() @ 0x0000000013992c91 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:41: bool DB::readDigits>>(DB::ReadBuffer&, DB::Decimal>&, unsigned int&, int&, bool) @ 0x000000001b3fb0b9 in /usr/bin/clickhouse 8. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a2d26 in /usr/bin/clickhouse 9. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba32081 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000baa7e27 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baa2076 in /usr/bin/clickhouse 12. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba8d8d9 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8cc08 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8be1e in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 16. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 2024.05.01 13:32:37.157622 [ 62772 ] {bc65e81d-71e8-4c4d-ac7d-9e7cd8a05856} executeQuery: Code: 6. DB::Exception: Cannot parse string '\0' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('\0', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal256 ('\0', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000baa7e70 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baa2076 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba8d8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8cc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8be1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:37.158671 [ 62772 ] {bc65e81d-71e8-4c4d-ac7d-9e7cd8a05856} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\0' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('\0', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000baa7e70 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baa2076 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba8d8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8cc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8be1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:37.166902 [ 62772 ] {9a81144b-908a-4282-9ddb-7e674fd0aa20} executeQuery: Code: 6. DB::Exception: Cannot parse string '\0\0\0\0\0' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('\0\0\0\0\0', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal256 ('\0\0\0\0\0', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000baa7e70 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baa2076 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba8d8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8cc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8be1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:37.167697 [ 62772 ] {9a81144b-908a-4282-9ddb-7e674fd0aa20} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\0\0\0\0\0' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('\0\0\0\0\0', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000baa7e70 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baa2076 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba8d8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8cc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8be1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:37.176025 [ 62772 ] {8c3d0fa4-5202-493c-bd1d-a170a653a5e4} executeQuery: Code: 6. DB::Exception: Cannot parse string '\n\t\r' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('\n\t\r', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal256 ('\n\t\r', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000baa7e70 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baa2076 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba8d8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8cc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8be1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:37.176885 [ 62772 ] {8c3d0fa4-5202-493c-bd1d-a170a653a5e4} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\n\t\r' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('\n\t\r', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000baa7e70 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baa2076 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba8d8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8cc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8be1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:37.185462 [ 62772 ] {9b2d10d4-e95d-43c9-84f6-f4918c06f886} executeQuery: Code: 6. DB::Exception: Cannot parse string '\'' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('\'', 4). (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52848) (comment: 00700_to_decimal_or_something_1.gen.sql) (in query: SELECT toDecimal256 ('\'', 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000baa7e70 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baa2076 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba8d8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8cc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8be1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:37.186431 [ 62772 ] {9b2d10d4-e95d-43c9-84f6-f4918c06f886} TCPHandler: Code: 6. DB::Exception: Cannot parse string '\'' as Decimal(76, 4): syntax error at begin of string: While processing toDecimal256('\'', 4). (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal256, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000baa7e70 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000baa2076 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba8d8d9 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8cc08 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal256, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba8be1e in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 13. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:37.460053 [ 62675 ] {a973def1-ec83-4ae4-bfc4-5bdba0b75882} executeQuery: Code: 69. DB::Exception: Too many digits (10 > 9) in decimal value: While processing '1000000000' AS x, toDecimal32(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '1000000000' AS x, toDecimal32(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b3f9a26 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a14e6 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 2024.05.01 13:32:37.461053 [ 62675 ] {a973def1-ec83-4ae4-bfc4-5bdba0b75882} TCPHandler: Code: 69. DB::Exception: Too many digits (10 > 9) in decimal value: While processing '1000000000' AS x, toDecimal32(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b3f9a26 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a14e6 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 2024.05.01 13:32:37.473453 [ 62675 ] {9e399f8f-3e04-4059-905c-ade2fe930337} executeQuery: Code: 69. DB::Exception: Too many digits (10 > 9) in decimal value: While processing '-1000000000' AS x, toDecimal32(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1000000000' AS x, toDecimal32(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b3f9a26 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a14e6 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 2024.05.01 13:32:37.474814 [ 62675 ] {9e399f8f-3e04-4059-905c-ade2fe930337} TCPHandler: Code: 69. DB::Exception: Too many digits (10 > 9) in decimal value: While processing '-1000000000' AS x, toDecimal32(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b3f9a26 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a14e6 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 2024.05.01 13:32:37.622239 [ 62675 ] {ae6152f2-774e-4cac-a623-e860cbde1553} executeQuery: Code: 69. DB::Exception: Too many digits (19 > 18) in decimal value: While processing '1000000000000000000' AS x, toDecimal64(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '1000000000000000000' AS x, toDecimal64(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b3fa1fd in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1c86 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 2024.05.01 13:32:37.623173 [ 62675 ] {ae6152f2-774e-4cac-a623-e860cbde1553} TCPHandler: Code: 69. DB::Exception: Too many digits (19 > 18) in decimal value: While processing '1000000000000000000' AS x, toDecimal64(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b3fa1fd in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1c86 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 2024.05.01 13:32:37.634710 [ 62675 ] {b6611f09-87a3-4501-bf72-88528c1ec9cc} executeQuery: Code: 69. DB::Exception: Too many digits (19 > 18) in decimal value: While processing '-1000000000000000000' AS x, toDecimal64(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1000000000000000000' AS x, toDecimal64(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b3fa1fd in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1c86 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 2024.05.01 13:32:37.635701 [ 62675 ] {b6611f09-87a3-4501-bf72-88528c1ec9cc} TCPHandler: Code: 69. DB::Exception: Too many digits (19 > 18) in decimal value: While processing '-1000000000000000000' AS x, toDecimal64(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>(DB::ReadBuffer&, DB::Decimal&, unsigned int&, int&, bool) @ 0x000000001b3fa1fd in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1c86 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 2024.05.01 13:32:37.784603 [ 62675 ] {5b322ee9-66fc-4072-9280-3a46901afcb7} executeQuery: Code: 69. DB::Exception: Too many digits (39 > 38) in decimal value: While processing '100000000000000000000000000000000000000' AS x, toDecimal128(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '100000000000000000000000000000000000000' AS x, toDecimal128(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>>(DB::ReadBuffer&, DB::Decimal>&, unsigned int&, int&, bool) @ 0x000000001b3faa45 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a2466 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 2024.05.01 13:32:37.785643 [ 62675 ] {5b322ee9-66fc-4072-9280-3a46901afcb7} TCPHandler: Code: 69. DB::Exception: Too many digits (39 > 38) in decimal value: While processing '100000000000000000000000000000000000000' AS x, toDecimal128(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>>(DB::ReadBuffer&, DB::Decimal>&, unsigned int&, int&, bool) @ 0x000000001b3faa45 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a2466 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 2024.05.01 13:32:37.795740 [ 62675 ] {9b3f87aa-342f-493d-ac0c-840263103eed} executeQuery: Code: 69. DB::Exception: Too many digits (39 > 38) in decimal value: While processing '-100000000000000000000000000000000000000' AS x, toDecimal128(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '-100000000000000000000000000000000000000' AS x, toDecimal128(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>>(DB::ReadBuffer&, DB::Decimal>&, unsigned int&, int&, bool) @ 0x000000001b3faa45 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a2466 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 2024.05.01 13:32:37.796615 [ 62675 ] {9b3f87aa-342f-493d-ac0c-840263103eed} TCPHandler: Code: 69. DB::Exception: Too many digits (39 > 38) in decimal value: While processing '-100000000000000000000000000000000000000' AS x, toDecimal128(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:96: bool DB::readDigits>>(DB::ReadBuffer&, DB::Decimal>&, unsigned int&, int&, bool) @ 0x000000001b3faa45 in /usr/bin/clickhouse 7. /build/src/IO/readDecimalText.h:157: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a2466 in /usr/bin/clickhouse 8. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 11. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 2024.05.01 13:32:37.931260 [ 62675 ] {dd2066f3-a6cf-48f8-9b61-5aa51ffa5318} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 9 and precision 9: While processing '1' AS x, toDecimal32(x, 9). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '1' AS x, toDecimal32(x, 9);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a4b7a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1573 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:37.932412 [ 62675 ] {dd2066f3-a6cf-48f8-9b61-5aa51ffa5318} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 9 and precision 9: While processing '1' AS x, toDecimal32(x, 9). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a4b7a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1573 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:37.944338 [ 62675 ] {141d730a-6eb2-49f1-8466-7579e18b1a66} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 9 and precision 9: While processing '-1' AS x, toDecimal32(x, 9). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1' AS x, toDecimal32(x, 9);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a4b7a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1573 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:37.945392 [ 62675 ] {141d730a-6eb2-49f1-8466-7579e18b1a66} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 9 and precision 9: While processing '-1' AS x, toDecimal32(x, 9). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a4b7a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1573 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:38.087214 [ 62675 ] {33743907-7170-4c37-a9bb-eb65e0f1c88c} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 18 and precision 18: While processing '1' AS x, toDecimal64(x, 18). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '1' AS x, toDecimal64(x, 18);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a5e1a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1d13 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:38.088219 [ 62675 ] {33743907-7170-4c37-a9bb-eb65e0f1c88c} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 18 and precision 18: While processing '1' AS x, toDecimal64(x, 18). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a5e1a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1d13 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:38.098925 [ 62675 ] {ddef267c-043d-49af-af64-0542c4bbdfb5} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 18 and precision 18: While processing '-1' AS x, toDecimal64(x, 18). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1' AS x, toDecimal64(x, 18);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a5e1a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1d13 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:38.099808 [ 62675 ] {ddef267c-043d-49af-af64-0542c4bbdfb5} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 18 and precision 18: While processing '-1' AS x, toDecimal64(x, 18). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a5e1a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1d13 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:38.237275 [ 62675 ] {f573cd8a-2e08-49b9-b8bb-5bf2f9fbcfe8} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 38 and precision 38: While processing '1' AS x, toDecimal128(x, 38). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '1' AS x, toDecimal128(x, 38);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a70ba in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a24f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:38.238298 [ 62675 ] {f573cd8a-2e08-49b9-b8bb-5bf2f9fbcfe8} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 38 and precision 38: While processing '1' AS x, toDecimal128(x, 38). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a70ba in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a24f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:38.248247 [ 62675 ] {20f1775f-66bf-41c7-a4ab-36ab61f0a29f} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 38 and precision 38: While processing '-1' AS x, toDecimal128(x, 38). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1' AS x, toDecimal128(x, 38);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a70ba in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a24f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:38.249221 [ 62675 ] {20f1775f-66bf-41c7-a4ab-36ab61f0a29f} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 38 and precision 38: While processing '-1' AS x, toDecimal128(x, 38). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a70ba in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a24f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:38.583630 [ 62675 ] {b00e2266-7475-418f-b4a4-0decfd899cb1} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e9. Expected to read decimal with scale 0 and precision 9: While processing '1e9' AS x, toDecimal32(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '1e9' AS x, toDecimal32(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a4b7a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1573 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:38.583743 [ 675 ] {288e9098-0fba-4af5-b6ff-da148962e27a} executeQuery: Code: 69. DB::Exception: Scale 36 is out of bounds (max scale: 18): While processing e + e, e - e, e * e, e / e, intDiv(e, e), intDivOrZero(e, e). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT e + e, e - e, e * e, e / e, intDiv(e, e), intDivOrZero(e, e) FROM decimal WHERE e > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x000000000b22a7ac in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeDecimalBase.h:78: DB::DataTypeDecimalBase>::DataTypeDecimalBase(unsigned int, unsigned int) @ 0x000000000b4f2dfb in /usr/bin/clickhouse 7. /build/src/DataTypes/DataTypesDecimal.h:37: DB::DataTypeDecimal>::DataTypeDecimal(unsigned int, unsigned int) @ 0x000000000b4f2a25 in /usr/bin/clickhouse 8. /build/src/DataTypes/DataTypeDecimalBase.h:174: auto DB::decimalResultType, DB::Decimal, DB::DataTypeDecimal>(DB::DataTypeDecimal> const&, DB::Decimal> const&) @ 0x00000000112beebf in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:1584: auto DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x0000000011495e1a in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x00000000114954a4 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x0000000011494d4d in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000001149493d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x0000000011482b13 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x00000000114823ad in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011481f9d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x0000000011481f71 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:1506: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011481cbe in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000111944cf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 2024.05.01 13:32:38.584748 [ 62675 ] {b00e2266-7475-418f-b4a4-0decfd899cb1} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e9. Expected to read decimal with scale 0 and precision 9: While processing '1e9' AS x, toDecimal32(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a4b7a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1573 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:38.585342 [ 675 ] {288e9098-0fba-4af5-b6ff-da148962e27a} TCPHandler: Code: 69. DB::Exception: Scale 36 is out of bounds (max scale: 18): While processing e + e, e - e, e * e, e / e, intDiv(e, e), intDivOrZero(e, e). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x000000000b22a7ac in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeDecimalBase.h:78: DB::DataTypeDecimalBase>::DataTypeDecimalBase(unsigned int, unsigned int) @ 0x000000000b4f2dfb in /usr/bin/clickhouse 7. /build/src/DataTypes/DataTypesDecimal.h:37: DB::DataTypeDecimal>::DataTypeDecimal(unsigned int, unsigned int) @ 0x000000000b4f2a25 in /usr/bin/clickhouse 8. /build/src/DataTypes/DataTypeDecimalBase.h:174: auto DB::decimalResultType, DB::Decimal, DB::DataTypeDecimal>(DB::DataTypeDecimal> const&, DB::Decimal> const&) @ 0x00000000112beebf in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:1584: auto DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x0000000011495e1a in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x00000000114954a4 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x0000000011494d4d in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000001149493d in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x0000000011482b13 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x00000000114823ad in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011481f9d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x0000000011481f71 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:1506: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011481cbe in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000111944cf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 2024.05.01 13:32:38.595283 [ 62675 ] {42f9ca6e-06a9-4b57-ac1e-2fc764363b0c} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e9. Expected to read decimal with scale 0 and precision 9: While processing '-1E9' AS x, toDecimal32(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1E9' AS x, toDecimal32(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a4b7a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1573 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:38.596162 [ 62675 ] {42f9ca6e-06a9-4b57-ac1e-2fc764363b0c} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e9. Expected to read decimal with scale 0 and precision 9: While processing '-1E9' AS x, toDecimal32(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a4b7a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1573 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:38.857975 [ 62675 ] {84b0f651-faab-4b83-963f-d70613309365} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e18. Expected to read decimal with scale 0 and precision 18: While processing '1E18' AS x, toDecimal64(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '1E18' AS x, toDecimal64(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a5e1a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1d13 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:38.858013 [ 675 ] {c175648f-cdd8-4981-8725-2182a19dd590} executeQuery: Code: 69. DB::Exception: Scale 76 is out of bounds (max scale: 38): While processing f + f, f - f, f * f, f / f, intDiv(f, f), intDivOrZero(f, f). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT f + f, f - f, f * f, f / f, intDiv(f, f), intDivOrZero(f, f) FROM decimal WHERE f > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x000000000b22a7ac in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeDecimalBase.h:78: DB::DataTypeDecimalBase>>::DataTypeDecimalBase(unsigned int, unsigned int) @ 0x000000000b50b83b in /usr/bin/clickhouse 7. /build/src/DataTypes/DataTypesDecimal.h:37: DB::DataTypeDecimal>>::DataTypeDecimal(unsigned int, unsigned int) @ 0x000000000b50b465 in /usr/bin/clickhouse 8. /build/src/DataTypes/DataTypeDecimalBase.h:174: auto DB::decimalResultType>, DB::Decimal>, DB::DataTypeDecimal>(DB::DataTypeDecimal>> const&, DB::Decimal>>> const&) @ 0x00000000112e6abf in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:1584: auto DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)::operator()>>, DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x00000000114977ba in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x0000000011496da4 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000001149665c in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x00000000114961fd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x0000000011482b53 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x00000000114823fc in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011481f9d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x0000000011481f71 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:1506: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011481cbe in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000111944cf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 2024.05.01 13:32:38.997073 [ 62773 ] {52970314-9339-4a23-b6e0-f40d0c03a832} executeQuery: Code: 43. DB::Exception: Illegal type Float64 of first argument of function toDecimal32OrZero. Conversion functions with postfix 'OrZero' or 'OrNull' should take String argument: While processing toDecimal32OrZero(1.1, 0). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52926) (comment: 00700_to_decimal_or_something.sql) (in query: SELECT toDecimal32OrZero(1.1, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2183: DB::FunctionConvertFromString>, DB::NameToDecimal32OrZero, (DB::ConvertFromStringExceptionMode)1, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bb4e32c in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:32:38.997154 [ 62675 ] {84b0f651-faab-4b83-963f-d70613309365} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e18. Expected to read decimal with scale 0 and precision 18: While processing '1E18' AS x, toDecimal64(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a5e1a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1d13 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:38.997342 [ 675 ] {c175648f-cdd8-4981-8725-2182a19dd590} TCPHandler: Code: 69. DB::Exception: Scale 76 is out of bounds (max scale: 38): While processing f + f, f - f, f * f, f / f, intDiv(f, f), intDivOrZero(f, f). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long&&) @ 0x000000000b22a7ac in /usr/bin/clickhouse 6. /build/src/DataTypes/DataTypeDecimalBase.h:78: DB::DataTypeDecimalBase>>::DataTypeDecimalBase(unsigned int, unsigned int) @ 0x000000000b50b83b in /usr/bin/clickhouse 7. /build/src/DataTypes/DataTypesDecimal.h:37: DB::DataTypeDecimal>>::DataTypeDecimal(unsigned int, unsigned int) @ 0x000000000b50b465 in /usr/bin/clickhouse 8. /build/src/DataTypes/DataTypeDecimalBase.h:174: auto DB::decimalResultType>, DB::Decimal>, DB::DataTypeDecimal>(DB::DataTypeDecimal>> const&, DB::Decimal>>> const&) @ 0x00000000112e6abf in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:1584: auto DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)::operator()>>, DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x00000000114977ba in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x0000000011496da4 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000001149665c in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x00000000114961fd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x0000000011482b53 in /usr/bin/clickhouse 14. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x00000000114823fc in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011481f9d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x0000000011481f71 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:1506: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011481cbe in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000111944cf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 2024.05.01 13:32:38.998210 [ 62773 ] {52970314-9339-4a23-b6e0-f40d0c03a832} TCPHandler: Code: 43. DB::Exception: Illegal type Float64 of first argument of function toDecimal32OrZero. Conversion functions with postfix 'OrZero' or 'OrNull' should take String argument: While processing toDecimal32OrZero(1.1, 0). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2183: DB::FunctionConvertFromString>, DB::NameToDecimal32OrZero, (DB::ConvertFromStringExceptionMode)1, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bb4e32c in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:32:39.009270 [ 62675 ] {1084aebd-7931-4ef0-b2eb-cc61e3946730} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e18. Expected to read decimal with scale 0 and precision 18: While processing '-1e18' AS x, toDecimal64(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1e18' AS x, toDecimal64(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a5e1a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1d13 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.010208 [ 62675 ] {1084aebd-7931-4ef0-b2eb-cc61e3946730} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e18. Expected to read decimal with scale 0 and precision 18: While processing '-1e18' AS x, toDecimal64(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a5e1a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1d13 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.020694 [ 62675 ] {442d4b18-455e-4f2b-ad9e-5b880510efea} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e38. Expected to read decimal with scale 0 and precision 38: While processing '1e38' AS x, toDecimal128(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '1e38' AS x, toDecimal128(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a70ba in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a24f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.021556 [ 62675 ] {442d4b18-455e-4f2b-ad9e-5b880510efea} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e38. Expected to read decimal with scale 0 and precision 38: While processing '1e38' AS x, toDecimal128(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a70ba in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a24f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.032052 [ 62675 ] {3275491f-4e86-4b91-b77a-6e126a306c48} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e38. Expected to read decimal with scale 0 and precision 38: While processing '-1E38' AS x, toDecimal128(x, 0). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1E38' AS x, toDecimal128(x, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a70ba in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a24f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.032955 [ 62675 ] {3275491f-4e86-4b91-b77a-6e126a306c48} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e38. Expected to read decimal with scale 0 and precision 38: While processing '-1E38' AS x, toDecimal128(x, 0). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a70ba in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a24f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.043393 [ 62675 ] {088787e6-484e-4f48-ab4e-c9210884986f} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 9 and precision 9: While processing '1e0' AS x, toDecimal32(x, 9). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '1e0' AS x, toDecimal32(x, 9);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a4b7a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1573 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.044550 [ 62675 ] {088787e6-484e-4f48-ab4e-c9210884986f} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 9 and precision 9: While processing '1e0' AS x, toDecimal32(x, 9). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a4b7a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1573 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.057029 [ 62675 ] {150be646-527d-4a40-a512-4b26baf89e45} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 9 and precision 9: While processing '-1e-0' AS x, toDecimal32(x, 9). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1e-0' AS x, toDecimal32(x, 9);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a4b7a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1573 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.058221 [ 62675 ] {150be646-527d-4a40-a512-4b26baf89e45} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 9 and precision 9: While processing '-1e-0' AS x, toDecimal32(x, 9). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a4b7a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1573 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal32, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba4b287 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba45736 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba31239 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba30568 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal32, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba2f77e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.246909 [ 62675 ] {54e80731-cb66-402f-acdc-e03072e21e52} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 18 and precision 18: While processing '1e0' AS x, toDecimal64(x, 18). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '1e0' AS x, toDecimal64(x, 18);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a5e1a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1d13 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.246957 [ 675 ] {4d0badcd-63ec-47ce-8741-d78d54313407} executeQuery: Code: 407. DB::Exception: Decimal math overflow: while executing 'FUNCTION multiply(h : 0, h : 0) -> multiply(h, h) Decimal(18, 18) : 3'. (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT h + h, h - h, h * h, h / h, intDiv(h, h), intDivOrZero(h, h) FROM decimal WHERE h > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b23911e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:678: DB::impl_::DecimalBinaryOperation, true>::apply(long, long) @ 0x00000000111a7517 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:593: auto void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)0, true, true, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*)::'lambda'(auto const&, auto const&)::operator()(auto const&, auto const&) const @ 0x00000000112bf507 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:643: void DB::impl_::DecimalBinaryOperation, true>::processWithRightNullmapImpl<(DB::impl_::OpCase)0, void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)0, true, true, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*)::'lambda'(auto const&, auto const&), DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, unsigned long, DB::PODArray, 63ul, 64ul> const*, auto) @ 0x00000000112bf47d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:597: void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)0, true, true, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*) @ 0x00000000112bf188 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1246: void DB::FunctionBinaryArithmetic::helperInvokeEither<(DB::impl_::OpCase)0, true, true, DB::impl_::DecimalBinaryOperation, false>, DB::impl_::DecimalBinaryOperation, true>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::Decimal, DB::Decimal>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, DB::Decimal, DB::Decimal, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000001143f6fc in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1325: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::ColumnDecimal>, DB::ColumnDecimal>>(DB::DataTypeDecimal> const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal> const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000001143f465 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeDecimal> const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000001143ef44 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000001143ed5b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x00000000114357e4 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000001143508d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011434c7d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x00000000113a93f3 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x00000000113a8c8d in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x00000000113a887d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x00000000113a7cb1 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x00000000113a797f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000113a53d6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 29. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 30. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 31. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 2024.05.01 13:32:39.386887 [ 62773 ] {621a3815-841f-48b8-9027-012026e5759c} executeQuery: Code: 44. DB::Exception: Second argument for function toDecimal32OrZero must be constant: While processing toDecimal32OrZero('1', rowNumberInBlock()). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52926) (comment: 00700_to_decimal_or_something.sql) (in query: SELECT toDecimal32OrZero('1', rowNumberInBlock());), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>, DB::NameToDecimal32OrZero, (DB::ConvertFromStringExceptionMode)1, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bb4e7c4 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:32:39.386926 [ 62675 ] {54e80731-cb66-402f-acdc-e03072e21e52} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 18 and precision 18: While processing '1e0' AS x, toDecimal64(x, 18). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a5e1a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1d13 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.387311 [ 675 ] {4d0badcd-63ec-47ce-8741-d78d54313407} TCPHandler: Code: 407. DB::Exception: Decimal math overflow: while executing 'FUNCTION multiply(h : 0, h : 0) -> multiply(h, h) Decimal(18, 18) : 3'. (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b23911e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:678: DB::impl_::DecimalBinaryOperation, true>::apply(long, long) @ 0x00000000111a7517 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:593: auto void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)0, true, true, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*)::'lambda'(auto const&, auto const&)::operator()(auto const&, auto const&) const @ 0x00000000112bf507 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:643: void DB::impl_::DecimalBinaryOperation, true>::processWithRightNullmapImpl<(DB::impl_::OpCase)0, void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)0, true, true, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*)::'lambda'(auto const&, auto const&), DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, unsigned long, DB::PODArray, 63ul, 64ul> const*, auto) @ 0x00000000112bf47d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:597: void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)0, true, true, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*) @ 0x00000000112bf188 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1246: void DB::FunctionBinaryArithmetic::helperInvokeEither<(DB::impl_::OpCase)0, true, true, DB::impl_::DecimalBinaryOperation, false>, DB::impl_::DecimalBinaryOperation, true>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::Decimal, DB::Decimal>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, DB::Decimal, DB::Decimal, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000001143f6fc in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1325: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::ColumnDecimal>, DB::ColumnDecimal>>(DB::DataTypeDecimal> const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal> const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000001143f465 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeDecimal> const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000001143ef44 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000001143ed5b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x00000000114357e4 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000001143508d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011434c7d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x00000000113a93f3 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x00000000113a8c8d in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x00000000113a887d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x00000000113a7cb1 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x00000000113a797f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000113a53d6 in /usr/bin/clickhouse 23. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 29. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 30. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 31. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 2024.05.01 13:32:39.388124 [ 62773 ] {621a3815-841f-48b8-9027-012026e5759c} TCPHandler: Code: 44. DB::Exception: Second argument for function toDecimal32OrZero must be constant: While processing toDecimal32OrZero('1', rowNumberInBlock()). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>, DB::NameToDecimal32OrZero, (DB::ConvertFromStringExceptionMode)1, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bb4e7c4 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:32:39.537228 [ 62773 ] {6ba0ee8a-2cf0-4601-a15c-8ccc319c2f34} executeQuery: Code: 44. DB::Exception: Second argument for function toDecimal64OrZero must be constant: While processing toDecimal64OrZero('1', rowNumberInBlock()). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52926) (comment: 00700_to_decimal_or_something.sql) (in query: SELECT toDecimal64OrZero('1', rowNumberInBlock());), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>, DB::NameToDecimal64OrZero, (DB::ConvertFromStringExceptionMode)1, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bb51b24 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:32:39.537399 [ 62675 ] {ff46e06e-3122-4864-8219-f639b7dd3795} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 18 and precision 18: While processing '-1e-0' AS x, toDecimal64(x, 18). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1e-0' AS x, toDecimal64(x, 18);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a5e1a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1d13 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.538764 [ 62773 ] {6ba0ee8a-2cf0-4601-a15c-8ccc319c2f34} TCPHandler: Code: 44. DB::Exception: Second argument for function toDecimal64OrZero must be constant: While processing toDecimal64OrZero('1', rowNumberInBlock()). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>, DB::NameToDecimal64OrZero, (DB::ConvertFromStringExceptionMode)1, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bb51b24 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:32:39.538880 [ 62675 ] {ff46e06e-3122-4864-8219-f639b7dd3795} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 18 and precision 18: While processing '-1e-0' AS x, toDecimal64(x, 18). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a5e1a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1d13 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::NameToDecimal64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba69e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba642b6 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba4fdb9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4f0e8 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>, DB::NameToDecimal64, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba4e2fe in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.692168 [ 62773 ] {4d096902-d17d-46cc-9f07-8e982e2524ec} executeQuery: Code: 44. DB::Exception: Second argument for function toDecimal128OrZero must be constant: While processing toDecimal128OrZero('1', rowNumberInBlock()). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52926) (comment: 00700_to_decimal_or_something.sql) (in query: SELECT toDecimal128OrZero('1', rowNumberInBlock());), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>>, DB::NameToDecimal128OrZero, (DB::ConvertFromStringExceptionMode)1, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bb54d04 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:32:39.692339 [ 62675 ] {45756a56-9d05-4caf-a72a-89532997b605} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 38 and precision 38: While processing '1e-0' AS x, toDecimal128(x, 38). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '1e-0' AS x, toDecimal128(x, 38);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a70ba in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a24f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.890660 [ 62773 ] {4d096902-d17d-46cc-9f07-8e982e2524ec} TCPHandler: Code: 44. DB::Exception: Second argument for function toDecimal128OrZero must be constant: While processing toDecimal128OrZero('1', rowNumberInBlock()). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>>, DB::NameToDecimal128OrZero, (DB::ConvertFromStringExceptionMode)1, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bb54d04 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:32:39.890757 [ 675 ] {9bc8f4de-a600-400b-bedc-67af29ded974} executeQuery: Code: 407. DB::Exception: Decimal math overflow: while executing 'FUNCTION plus(e : 0, 21 : 1) -> plus(e, 21) Decimal(18, 18) : 4'. (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT e + 21, e - 21, e - 84, e * 21, e * -21, e / 21, e / 84 FROM decimal WHERE e > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b23911e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:706: long DB::impl_::DecimalBinaryOperation, true>::applyScaled(long, long, long) @ 0x0000000011967b01 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:550: void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)2, true, false, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, long>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*) @ 0x0000000011a7636a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1246: void DB::FunctionBinaryArithmetic::helperInvokeEither<(DB::impl_::OpCase)2, true, false, DB::impl_::DecimalBinaryOperation, false>, DB::impl_::DecimalBinaryOperation, true>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::Decimal, DB::Decimal>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, DB::Decimal, DB::Decimal, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011c1acbc in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:1341: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::ColumnDecimal>, DB::ColumnVector>(DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal> const*, DB::ColumnVector const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011c1a95a in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011c1a264 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeNumber>(auto const&, auto const&) const @ 0x0000000011c1a07b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x0000000011c19aa4 in /usr/bin/clickhouse 13. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x0000000011c192e7 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011c1927d in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x0000000011b84413 in /usr/bin/clickhouse 16. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x0000000011b83cad in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011b8389d in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x0000000011b82cd1 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b8299f in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b7fcd6 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b7e8cc in /usr/bin/clickhouse 22. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 28. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 29. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 30. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 2024.05.01 13:32:39.890695 [ 62675 ] {45756a56-9d05-4caf-a72a-89532997b605} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: 1e0. Expected to read decimal with scale 38 and precision 38: While processing '1e-0' AS x, toDecimal128(x, 38). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a70ba in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a24f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.892941 [ 675 ] {9bc8f4de-a600-400b-bedc-67af29ded974} TCPHandler: Code: 407. DB::Exception: Decimal math overflow: while executing 'FUNCTION plus(e : 0, 21 : 1) -> plus(e, 21) Decimal(18, 18) : 4'. (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b23911e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:706: long DB::impl_::DecimalBinaryOperation, true>::applyScaled(long, long, long) @ 0x0000000011967b01 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:550: void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)2, true, false, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, long>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*) @ 0x0000000011a7636a in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1246: void DB::FunctionBinaryArithmetic::helperInvokeEither<(DB::impl_::OpCase)2, true, false, DB::impl_::DecimalBinaryOperation, false>, DB::impl_::DecimalBinaryOperation, true>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::Decimal, DB::Decimal>(DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, DB::Decimal, DB::Decimal, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011c1acbc in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:1341: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::ColumnDecimal>, DB::ColumnVector>(DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal> const*, DB::ColumnVector const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011c1a95a in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011c1a264 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeNumber>(auto const&, auto const&) const @ 0x0000000011c1a07b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x0000000011c19aa4 in /usr/bin/clickhouse 13. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x0000000011c192e7 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011c1927d in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x0000000011b84413 in /usr/bin/clickhouse 16. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x0000000011b83cad in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011b8389d in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x0000000011b82cd1 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b8299f in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b7fcd6 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b7e8cc in /usr/bin/clickhouse 22. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 28. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 29. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 30. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 2024.05.01 13:32:39.903381 [ 62675 ] {e227c95c-594d-4b3a-9711-84f71085d34a} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 38 and precision 38: While processing '-1e0' AS x, toDecimal128(x, 38). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT '-1e0' AS x, toDecimal128(x, 38);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a70ba in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a24f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:39.904420 [ 62675 ] {e227c95c-594d-4b3a-9711-84f71085d34a} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 1 digits were read: -1e0. Expected to read decimal with scale 38 and precision 38: While processing '-1e0' AS x, toDecimal128(x, 38). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a70ba in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a24f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::NameToDecimal128, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000ba88e07 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:2013: bool DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>>>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000ba83056 in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000ba6e8d9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6dc08 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert>>, DB::NameToDecimal128, DB::UnknownMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000ba6ce1e in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 14. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 31. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 2024.05.01 13:32:40.080130 [ 62773 ] {9c094078-b81c-4753-8770-b846cfcd3c48} executeQuery: Code: 43. DB::Exception: Illegal type Float64 of first argument of function toDecimal32OrNull. Conversion functions with postfix 'OrZero' or 'OrNull' should take String argument: While processing toDecimal32OrNull(1.1, 0). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52926) (comment: 00700_to_decimal_or_something.sql) (in query: SELECT toDecimal32OrNull(1.1, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2183: DB::FunctionConvertFromString>, DB::NameToDecimal32OrNull, (DB::ConvertFromStringExceptionMode)2, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bbc86ac in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:32:40.081126 [ 62773 ] {9c094078-b81c-4753-8770-b846cfcd3c48} TCPHandler: Code: 43. DB::Exception: Illegal type Float64 of first argument of function toDecimal32OrNull. Conversion functions with postfix 'OrZero' or 'OrNull' should take String argument: While processing toDecimal32OrNull(1.1, 0). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2183: DB::FunctionConvertFromString>, DB::NameToDecimal32OrNull, (DB::ConvertFromStringExceptionMode)2, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bbc86ac in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:32:40.389228 [ 675 ] {802244f3-3d3b-4328-9f25-d6af026d447b} executeQuery: Code: 407. DB::Exception: Decimal math overflow: while executing 'FUNCTION plus(21 : 1, e : 0) -> plus(21, e) Decimal(18, 18) : 4'. (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT 21 + e, 21 - e, 84 - e, 21 * e, -21 * e, 21 / e, 84 / e FROM decimal WHERE e > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b23911e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:706: long DB::impl_::DecimalBinaryOperation, true>::applyScaled(long, long, long) @ 0x0000000011967a01 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:541: void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)1, false, true, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*) @ 0x000000001196855f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1246: void DB::FunctionBinaryArithmetic::helperInvokeEither<(DB::impl_::OpCase)1, false, true, DB::impl_::DecimalBinaryOperation, false>, DB::impl_::DecimalBinaryOperation, true>, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::Decimal, DB::Decimal>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, DB::Decimal, DB::Decimal, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b8c07c in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:1333: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b8bcbf in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b8b684 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x0000000011b8b49b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x0000000011b851e4 in /usr/bin/clickhouse 13. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x0000000011b84a8d in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011b8467d in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x0000000011b840d3 in /usr/bin/clickhouse 16. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x0000000011b83907 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011b8389d in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x0000000011b82cd1 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b8299f in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b7fcd6 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b7e8cc in /usr/bin/clickhouse 22. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 28. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 29. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 30. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 2024.05.01 13:32:40.519011 [ 62773 ] {15201346-86fb-4ff9-ad78-e09269704f0a} executeQuery: Code: 44. DB::Exception: Second argument for function toDecimal32OrNull must be constant: While processing toDecimal32OrNull('1', rowNumberInBlock()). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52926) (comment: 00700_to_decimal_or_something.sql) (in query: SELECT toDecimal32OrNull('1', rowNumberInBlock());), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>, DB::NameToDecimal32OrNull, (DB::ConvertFromStringExceptionMode)2, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bbc8b44 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:32:40.519288 [ 675 ] {802244f3-3d3b-4328-9f25-d6af026d447b} TCPHandler: Code: 407. DB::Exception: Decimal math overflow: while executing 'FUNCTION plus(21 : 1, e : 0) -> plus(21, e) Decimal(18, 18) : 4'. (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b23911e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:706: long DB::impl_::DecimalBinaryOperation, true>::applyScaled(long, long, long) @ 0x0000000011967a01 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:541: void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)1, false, true, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*) @ 0x000000001196855f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:1246: void DB::FunctionBinaryArithmetic::helperInvokeEither<(DB::impl_::OpCase)1, false, true, DB::impl_::DecimalBinaryOperation, false>, DB::impl_::DecimalBinaryOperation, true>, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::Decimal, DB::Decimal>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, DB::Decimal, DB::Decimal, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b8c07c in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:1333: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b8bcbf in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b8b684 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x0000000011b8b49b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x0000000011b851e4 in /usr/bin/clickhouse 13. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x0000000011b84a8d in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011b8467d in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x0000000011b840d3 in /usr/bin/clickhouse 16. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x0000000011b83907 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x0000000011b8389d in /usr/bin/clickhouse 18. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x0000000011b82cd1 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x0000000011b8299f in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b7fcd6 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b7e8cc in /usr/bin/clickhouse 22. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 28. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 29. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 30. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 31. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 2024.05.01 13:32:40.520015 [ 62773 ] {15201346-86fb-4ff9-ad78-e09269704f0a} TCPHandler: Code: 44. DB::Exception: Second argument for function toDecimal32OrNull must be constant: While processing toDecimal32OrNull('1', rowNumberInBlock()). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>, DB::NameToDecimal32OrNull, (DB::ConvertFromStringExceptionMode)2, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bbc8b44 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:32:40.663199 [ 62773 ] {c8174e69-945b-4993-a9fd-a5b3503b18e7} executeQuery: Code: 44. DB::Exception: Second argument for function toDecimal64OrNull must be constant: While processing toDecimal64OrNull('1', rowNumberInBlock()). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52926) (comment: 00700_to_decimal_or_something.sql) (in query: SELECT toDecimal64OrNull('1', rowNumberInBlock());), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>, DB::NameToDecimal64OrNull, (DB::ConvertFromStringExceptionMode)2, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bbcbe04 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:32:40.829167 [ 62773 ] {c8174e69-945b-4993-a9fd-a5b3503b18e7} TCPHandler: Code: 44. DB::Exception: Second argument for function toDecimal64OrNull must be constant: While processing toDecimal64OrNull('1', rowNumberInBlock()). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>, DB::NameToDecimal64OrNull, (DB::ConvertFromStringExceptionMode)2, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bbcbe04 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:32:40.829256 [ 675 ] {e8e6219a-4088-4373-a74f-e69337985bf2} executeQuery: Code: 407. DB::Exception: Decimal math overflow: while executing 'FUNCTION divide(21 :: 1, h : 0) -> divide(21, h) Decimal(18, 9) : 7'. (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT 21 + h, 21 - h, 84 - h, 21 * h, -21 * h, 21 / h, 84 / h FROM decimal WHERE h > 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b23911e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:732: long DB::impl_::DecimalBinaryOperation, true>::applyScaledDiv(long, long, long) @ 0x000000000da16921 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:583: auto void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)1, false, true, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*)::'lambda'(auto const&, auto const&)::operator()(auto const&, auto const&) const @ 0x000000000da17491 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:643: void DB::impl_::DecimalBinaryOperation, true>::processWithRightNullmapImpl<(DB::impl_::OpCase)1, void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)1, false, true, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*)::'lambda'(auto const&, auto const&), long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, unsigned long, DB::PODArray, 63ul, 64ul> const*, auto) @ 0x000000000da173fd in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:586: void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)1, false, true, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*) @ 0x000000000da17232 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1246: void DB::FunctionBinaryArithmetic::helperInvokeEither<(DB::impl_::OpCase)1, false, true, DB::impl_::DecimalBinaryOperation, false>, DB::impl_::DecimalBinaryOperation, true>, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::Decimal, DB::Decimal>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, DB::Decimal, DB::Decimal, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5a89c in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1333: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5a4da in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc59ea4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc59cbb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc53964 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5320d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc52dfd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc52853 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc52087 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 31. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 2024.05.01 13:32:40.831077 [ 675 ] {e8e6219a-4088-4373-a74f-e69337985bf2} TCPHandler: Code: 407. DB::Exception: Decimal math overflow: while executing 'FUNCTION divide(21 :: 1, h : 0) -> divide(21, h) Decimal(18, 9) : 7'. (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b23911e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:732: long DB::impl_::DecimalBinaryOperation, true>::applyScaledDiv(long, long, long) @ 0x000000000da16921 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:583: auto void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)1, false, true, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*)::'lambda'(auto const&, auto const&)::operator()(auto const&, auto const&) const @ 0x000000000da17491 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionBinaryArithmetic.h:643: void DB::impl_::DecimalBinaryOperation, true>::processWithRightNullmapImpl<(DB::impl_::OpCase)1, void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)1, false, true, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*)::'lambda'(auto const&, auto const&), long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, unsigned long, DB::PODArray, 63ul, 64ul> const*, auto) @ 0x000000000da173fd in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:586: void DB::impl_::DecimalBinaryOperation, true>::process<(DB::impl_::OpCase)1, false, true, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, long, long, DB::PODArray, 63ul, 64ul> const*) @ 0x000000000da17232 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:1246: void DB::FunctionBinaryArithmetic::helperInvokeEither<(DB::impl_::OpCase)1, false, true, DB::impl_::DecimalBinaryOperation, false>, DB::impl_::DecimalBinaryOperation, true>, long, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>, DB::Decimal, DB::Decimal>(long const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul> const&, DB::PODArray, 4096ul, Allocator, 63ul, 64ul>&, DB::Decimal, DB::Decimal, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5a89c in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1333: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5a4da in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc59ea4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc59cbb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc53964 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5320d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc52dfd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc52853 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc52087 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 30. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 31. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 2024.05.01 13:32:40.973313 [ 62773 ] {4dfa28a0-120f-42cf-aed2-f732180564c9} executeQuery: Code: 44. DB::Exception: Second argument for function toDecimal128OrNull must be constant: While processing toDecimal128OrNull('1', rowNumberInBlock()). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52926) (comment: 00700_to_decimal_or_something.sql) (in query: SELECT toDecimal128OrNull('1', rowNumberInBlock());), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>>, DB::NameToDecimal128OrNull, (DB::ConvertFromStringExceptionMode)2, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bbcf0c4 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:32:40.974386 [ 62773 ] {4dfa28a0-120f-42cf-aed2-f732180564c9} TCPHandler: Code: 44. DB::Exception: Second argument for function toDecimal128OrNull must be constant: While processing toDecimal128OrNull('1', rowNumberInBlock()). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:2205: DB::FunctionConvertFromString>>, DB::NameToDecimal128OrNull, (DB::ConvertFromStringExceptionMode)2, (DB::ConvertFromStringParsingMode)0>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000bbcf0c4 in /usr/bin/clickhouse 7. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 11. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 18. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 2024.05.01 13:32:41.268584 [ 675 ] {2b82bb7f-8d84-44a7-9d01-ba61a7c563c9} executeQuery: Code: 153. DB::Exception: Division by zero: While processing 1 / toDecimal32(0, 0). (ILLEGAL_DIVISION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT 1 / toDecimal32(0, 0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(int, int) @ 0x000000000da145d6 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(int, int) @ 0x000000000da14559 in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: int DB::DivideIntegralImpl::apply(int, int) @ 0x000000000da14539 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: int DB::impl_::DecimalBinaryOperation, false>::applyScaledDiv(int, int, int) @ 0x000000000da146f0 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(int, int, int, int) @ 0x000000000da13f82 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5946b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc591a4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc58fbb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc53924 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc531bc in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc52dfd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc52853 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc52087 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:41.269916 [ 675 ] {2b82bb7f-8d84-44a7-9d01-ba61a7c563c9} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing 1 / toDecimal32(0, 0). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(int, int) @ 0x000000000da145d6 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(int, int) @ 0x000000000da14559 in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: int DB::DivideIntegralImpl::apply(int, int) @ 0x000000000da14539 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: int DB::impl_::DecimalBinaryOperation, false>::applyScaledDiv(int, int, int) @ 0x000000000da146f0 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(int, int, int, int) @ 0x000000000da13f82 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5946b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc591a4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc58fbb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc53924 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc531bc in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc52dfd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc52853 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc52087 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:41.431493 [ 675 ] {87812dea-4a3b-4c51-95ac-18be2f408d8b} executeQuery: Code: 153. DB::Exception: Division by zero: While processing 1 / toDecimal64(0, 1). (ILLEGAL_DIVISION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT 1 / toDecimal64(0, 1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(long, long) @ 0x000000000da16a56 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(long, long) @ 0x000000000da169dd in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: long DB::DivideIntegralImpl::apply(long, long) @ 0x000000000da1699d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: long DB::impl_::DecimalBinaryOperation, false>::applyScaledDiv(long, long, long) @ 0x000000000da16b7b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(long, long, long, long) @ 0x000000000da163c9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5a195 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc59ea4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc59cbb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc53964 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5320d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc52dfd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc52853 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc52087 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:41.433168 [ 675 ] {87812dea-4a3b-4c51-95ac-18be2f408d8b} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing 1 / toDecimal64(0, 1). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(long, long) @ 0x000000000da16a56 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(long, long) @ 0x000000000da169dd in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: long DB::DivideIntegralImpl::apply(long, long) @ 0x000000000da1699d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: long DB::impl_::DecimalBinaryOperation, false>::applyScaledDiv(long, long, long) @ 0x000000000da16b7b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(long, long, long, long) @ 0x000000000da163c9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5a195 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc59ea4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc59cbb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc53964 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5320d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc52dfd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc52853 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc52087 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:41.608474 [ 675 ] {e8f6d339-48ee-4f49-8705-49212dd854d0} executeQuery: Code: 153. DB::Exception: Division by zero: While processing 1 / toDecimal128(0, 2). (ILLEGAL_DIVISION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT 1 / toDecimal128(0, 2);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da19406 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:48: auto DB::checkedDivision, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da1937d in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: wide::integer<128ul, int> DB::DivideIntegralImpl, wide::integer<128ul, int>>::apply>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da1931d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: wide::integer<128ul, int> DB::impl_::DecimalBinaryOperation>, false>::applyScaledDiv(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da19582 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal> DB::impl_::DecimalBinaryOperation>, false>::process, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da18ad8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeNumber, DB::DataTypeDecimal>>, DB::ColumnVector, DB::ColumnDecimal>>>(DB::DataTypeNumber const&, DB::DataTypeDecimal>> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal>> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5afb2 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal>> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5ac04 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x000000000dc5aa1b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dc539a4 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5325c in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc52dfd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc52853 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc52087 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:41.610037 [ 675 ] {e8f6d339-48ee-4f49-8705-49212dd854d0} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing 1 / toDecimal128(0, 2). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da19406 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:48: auto DB::checkedDivision, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da1937d in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: wide::integer<128ul, int> DB::DivideIntegralImpl, wide::integer<128ul, int>>::apply>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da1931d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: wide::integer<128ul, int> DB::impl_::DecimalBinaryOperation>, false>::applyScaledDiv(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da19582 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal> DB::impl_::DecimalBinaryOperation>, false>::process, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da18ad8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeNumber, DB::DataTypeDecimal>>, DB::ColumnVector, DB::ColumnDecimal>>>(DB::DataTypeNumber const&, DB::DataTypeDecimal>> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal>> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5afb2 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal>> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5ac04 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x000000000dc5aa1b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dc539a4 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5325c in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc52dfd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc52853 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc52087 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:41.621304 [ 675 ] {139ada9e-0158-4296-8205-2e07875cf738} executeQuery: Code: 153. DB::Exception: Division by zero: While processing 0 / toDecimal32(0, 3). (ILLEGAL_DIVISION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT 0 / toDecimal32(0, 3);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(int, int) @ 0x000000000da145d6 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(int, int) @ 0x000000000da14559 in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: int DB::DivideIntegralImpl::apply(int, int) @ 0x000000000da14539 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: int DB::impl_::DecimalBinaryOperation, false>::applyScaledDiv(int, int, int) @ 0x000000000da146f0 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(int, int, int, int) @ 0x000000000da13f82 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5946b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc591a4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc58fbb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc53924 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc531bc in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc52dfd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc52853 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc52087 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:41.623033 [ 675 ] {139ada9e-0158-4296-8205-2e07875cf738} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing 0 / toDecimal32(0, 3). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(int, int) @ 0x000000000da145d6 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(int, int) @ 0x000000000da14559 in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: int DB::DivideIntegralImpl::apply(int, int) @ 0x000000000da14539 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: int DB::impl_::DecimalBinaryOperation, false>::applyScaledDiv(int, int, int) @ 0x000000000da146f0 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(int, int, int, int) @ 0x000000000da13f82 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5946b in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc591a4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc58fbb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc53924 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc531bc in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc52dfd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc52853 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc52087 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:41.633717 [ 675 ] {1288e43e-1a9d-4745-940f-147ae359cb49} executeQuery: Code: 153. DB::Exception: Division by zero: While processing 0 / toDecimal64(0, 4). (ILLEGAL_DIVISION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT 0 / toDecimal64(0, 4);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(long, long) @ 0x000000000da16a56 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(long, long) @ 0x000000000da169dd in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: long DB::DivideIntegralImpl::apply(long, long) @ 0x000000000da1699d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: long DB::impl_::DecimalBinaryOperation, false>::applyScaledDiv(long, long, long) @ 0x000000000da16b7b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(long, long, long, long) @ 0x000000000da163c9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5a195 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc59ea4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc59cbb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc53964 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5320d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc52dfd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc52853 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc52087 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:41.635369 [ 675 ] {1288e43e-1a9d-4745-940f-147ae359cb49} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing 0 / toDecimal64(0, 4). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(long, long) @ 0x000000000da16a56 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(long, long) @ 0x000000000da169dd in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: long DB::DivideIntegralImpl::apply(long, long) @ 0x000000000da1699d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: long DB::impl_::DecimalBinaryOperation, false>::applyScaledDiv(long, long, long) @ 0x000000000da16b7b in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(long, long, long, long) @ 0x000000000da163c9 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::ColumnVector, DB::ColumnDecimal>>(DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5a195 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc59ea4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>(auto const&, auto const&) const @ 0x000000000dc59cbb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc53964 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5320d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc52dfd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc52853 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc52087 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:41.646490 [ 675 ] {5c7156b1-696b-463b-88f8-113fc3f54e75} executeQuery: Code: 153. DB::Exception: Division by zero: While processing 0 / toDecimal128(0, 5). (ILLEGAL_DIVISION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT 0 / toDecimal128(0, 5);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da19406 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:48: auto DB::checkedDivision, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da1937d in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: wide::integer<128ul, int> DB::DivideIntegralImpl, wide::integer<128ul, int>>::apply>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da1931d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: wide::integer<128ul, int> DB::impl_::DecimalBinaryOperation>, false>::applyScaledDiv(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da19582 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal> DB::impl_::DecimalBinaryOperation>, false>::process, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da18ad8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeNumber, DB::DataTypeDecimal>>, DB::ColumnVector, DB::ColumnDecimal>>>(DB::DataTypeNumber const&, DB::DataTypeDecimal>> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal>> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5afb2 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal>> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5ac04 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x000000000dc5aa1b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dc539a4 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5325c in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc52dfd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc52853 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc52087 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:41.648090 [ 675 ] {5c7156b1-696b-463b-88f8-113fc3f54e75} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing 0 / toDecimal128(0, 5). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da19406 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:48: auto DB::checkedDivision, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da1937d in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: wide::integer<128ul, int> DB::DivideIntegralImpl, wide::integer<128ul, int>>::apply>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da1931d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:741: wide::integer<128ul, int> DB::impl_::DecimalBinaryOperation>, false>::applyScaledDiv(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da19582 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:604: DB::Decimal> DB::impl_::DecimalBinaryOperation>, false>::process, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da18ad8 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeNumber, DB::DataTypeDecimal>>, DB::ColumnVector, DB::ColumnDecimal>>>(DB::DataTypeNumber const&, DB::DataTypeDecimal>> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnVector const*, DB::ColumnDecimal>> const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5afb2 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric, DB::DataTypeDecimal>>>(std::vector> const&, DB::DataTypeNumber const&, DB::DataTypeDecimal>> const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5ac04 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator(), DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x000000000dc5aa1b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dc539a4 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dc5325c in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc52dfd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dc52853 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc52087 in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:41.845830 [ 675 ] {7f417f3c-b879-4734-b23a-d86c35e97ed6} executeQuery: Code: 153. DB::Exception: Division by zero: While processing toDecimal32(0, 0) / toInt8(0). (ILLEGAL_DIVISION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT toDecimal32(0, 0) / toInt8(0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(int, int) @ 0x000000000da145d6 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(int, int) @ 0x000000000da14559 in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: int DB::DivideIntegralImpl::apply(int, int) @ 0x000000000da14539 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:682: DB::impl_::DecimalBinaryOperation, false>::apply(int, int) @ 0x000000000dae5a99 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:613: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(int, int, int, int) @ 0x000000000dae56ff in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::ColumnDecimal>, DB::ColumnVector>(DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal> const*, DB::ColumnVector const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dcdbf3a in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dcdbc64 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000dcdba7b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dcd6ec4 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dcd670d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dcd651d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc52b53 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc523dc in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:42.080940 [ 62675 ] {fcd39e20-1a8e-4781-bf2d-9a7ada2ad246} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 9 digits were read: 123456789e0. Expected to read decimal with scale 1 and precision 9: While processing CAST('123456789', 'Decimal(9,1)'). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT CAST('123456789', 'Decimal(9,1)');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a4b7a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1573 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::CastName, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000b870e47 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:3162: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)::operator()>>>(DB::DataTypeDecimal> const&) const @ 0x000000000b860aef in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)&&) @ 0x000000000b85ee4f in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:3121: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b85e99c in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeDecimal>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b85e8e6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b85e880 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b85e820 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b85e7cb in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:32:42.081076 [ 675 ] {7f417f3c-b879-4734-b23a-d86c35e97ed6} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing toDecimal32(0, 0) / toInt8(0). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(int, int) @ 0x000000000da145d6 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(int, int) @ 0x000000000da14559 in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: int DB::DivideIntegralImpl::apply(int, int) @ 0x000000000da14539 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:682: DB::impl_::DecimalBinaryOperation, false>::apply(int, int) @ 0x000000000dae5a99 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:613: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(int, int, int, int) @ 0x000000000dae56ff in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::ColumnDecimal>, DB::ColumnVector>(DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal> const*, DB::ColumnVector const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dcdbf3a in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dcdbc64 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000dcdba7b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dcd6ec4 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dcd670d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dcd651d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc52b53 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc523dc in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:42.082447 [ 62675 ] {fcd39e20-1a8e-4781-bf2d-9a7ada2ad246} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 9 digits were read: 123456789e0. Expected to read decimal with scale 1 and precision 9: While processing CAST('123456789', 'Decimal(9,1)'). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a4b7a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1573 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba30ade in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::CastName, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000b870e47 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:3162: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)::operator()>>>(DB::DataTypeDecimal> const&) const @ 0x000000000b860aef in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)&&) @ 0x000000000b85ee4f in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:3121: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b85e99c in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeDecimal>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b85e8e6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b85e880 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b85e820 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b85e7cb in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:32:42.312517 [ 62675 ] {25abdaad-ba00-4524-b506-4a22053e0191} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 18 digits were read: 123456789123456789e0. Expected to read decimal with scale 1 and precision 18: While processing CAST('123456789123456789', 'Decimal(18,1)'). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT CAST('123456789123456789', 'Decimal(18,1)');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a5e1a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1d13 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::CastName, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000b884be7 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:3162: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)::operator()>>>(DB::DataTypeDecimal> const&) const @ 0x000000000b8747ef in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)&&) @ 0x000000000b872b4f in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:3121: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b87269c in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeDecimal>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8725e6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b872580 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b872520 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b8724cb in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:32:42.484338 [ 675 ] {530ed26f-323b-49fc-b031-4d7d22156a01} executeQuery: Code: 153. DB::Exception: Division by zero: While processing toDecimal64(0, 1) / toInt32(0). (ILLEGAL_DIVISION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT toDecimal64(0, 1) / toInt32(0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(long, long) @ 0x000000000da16a56 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(long, long) @ 0x000000000da169dd in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: long DB::DivideIntegralImpl::apply(long, long) @ 0x000000000da1699d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:682: DB::impl_::DecimalBinaryOperation, false>::apply(long, long) @ 0x000000000db0201d in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:613: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(long, long, long, long) @ 0x000000000db01c65 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::ColumnDecimal>, DB::ColumnVector>(DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal> const*, DB::ColumnVector const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dcec286 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dcebf84 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000dcebd9b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dce5884 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dce50dc in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dce4e5d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc52b93 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5242d in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:42.484553 [ 62675 ] {25abdaad-ba00-4524-b506-4a22053e0191} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 18 digits were read: 123456789123456789e0. Expected to read decimal with scale 1 and precision 18: While processing CAST('123456789123456789', 'Decimal(18,1)'). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, DB::Decimal&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a5e1a in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:172: void DB::readDecimalText, void>(DB::ReadBuffer&, DB::Decimal&, unsigned int, unsigned int&, bool) @ 0x000000001b9a1d13 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>::readText(DB::Decimal&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba311be in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>, DB::CastName, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000b884be7 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:3162: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)::operator()>>>(DB::DataTypeDecimal> const&) const @ 0x000000000b8747ef in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal> const&)&&) @ 0x000000000b872b4f in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:3121: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b87269c in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeDecimal>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8725e6 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b872580 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b872520 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>(std::shared_ptr const&, DB::DataTypeDecimal> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b8724cb in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:32:42.581992 [ 62772 ] {668ff782-2777-47e5-8c95-604b4f62db1d} executeQuery: Code: 12. DB::Exception: Setting 'max_block_size' cannot be zero. (PARAMETER_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41236) (comment: 00694_max_block_size_zero.sql) (in query: SELECT number FROM system.numbers;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [40]) @ 0x000000000b1ff2de in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2383: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caae352 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:42.582216 [ 675 ] {530ed26f-323b-49fc-b031-4d7d22156a01} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing toDecimal64(0, 1) / toInt32(0). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE(long, long) @ 0x000000000da16a56 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:59: auto DB::checkedDivision(long, long) @ 0x000000000da169dd in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: long DB::DivideIntegralImpl::apply(long, long) @ 0x000000000da1699d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:682: DB::impl_::DecimalBinaryOperation, false>::apply(long, long) @ 0x000000000db0201d in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:613: DB::Decimal DB::impl_::DecimalBinaryOperation, false>::process(long, long, long, long) @ 0x000000000db01c65 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>, DB::DataTypeNumber, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeNumber, DB::ColumnDecimal>, DB::ColumnVector>(DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal> const*, DB::ColumnVector const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dcec286 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeDecimal> const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dcebf84 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>, DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000dcebd9b in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dce5884 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dce50dc in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dce4e5d in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>(auto const&) const @ 0x000000000dc52b93 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5242d in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:42.582928 [ 62772 ] {668ff782-2777-47e5-8c95-604b4f62db1d} TCPHandler: Code: 12. DB::Exception: Setting 'max_block_size' cannot be zero. (PARAMETER_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [40]) @ 0x000000000b1ff2de in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSelectQuery.cpp:2383: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caae352 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:32:42.814831 [ 62675 ] {e8d51753-102c-498a-8c8f-6065a5e8854b} executeQuery: Code: 69. DB::Exception: Decimal value is too big: 38 digits were read: 12345678901234567890123456789012345678e0. Expected to read decimal with scale 1 and precision 38: While processing CAST('12345678901234567890123456789012345678', 'Decimal(38,1)'). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52910) (comment: 00700_decimal_casts.sql) (in query: SELECT CAST('12345678901234567890123456789012345678', 'Decimal(38,1)');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a70ba in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a24f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::CastName, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000b899007 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:3162: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal>> const&)::operator()>>>>(DB::DataTypeDecimal>> const&) const @ 0x000000000b88858f in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal>> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal>> const&)&&) @ 0x000000000b8868ef in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:3121: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b88643c in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeDecimal>>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b886386 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b886320 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8862c0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b88626b in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:32:42.976850 [ 675 ] {e1e560a6-2c4b-4d94-b555-5fdfde3b19fb} executeQuery: Code: 153. DB::Exception: Division by zero: While processing toDecimal128(0, 2) / toInt64(0). (ILLEGAL_DIVISION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT toDecimal128(0, 2) / toInt64(0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da19406 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:48: auto DB::checkedDivision, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da1937d in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: wide::integer<128ul, int> DB::DivideIntegralImpl, wide::integer<128ul, int>>::apply>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da1931d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:682: DB::impl_::DecimalBinaryOperation>, false>::apply(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000db1cbfd in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:613: DB::Decimal> DB::impl_::DecimalBinaryOperation>, false>::process, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000db1c645 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>>, DB::DataTypeNumber, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeNumber, DB::ColumnDecimal>>, DB::ColumnVector>(DB::DataTypeDecimal>> const&, DB::DataTypeNumber const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal>> const*, DB::ColumnVector const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dcfca96 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>>, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeDecimal>> const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dcfc6e4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>>, DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000dcfc4fb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dcf4124 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dcf398d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dcf36bd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dc52bd3 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5247c in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:42.977068 [ 62675 ] {e8d51753-102c-498a-8c8f-6065a5e8854b} TCPHandler: Code: 69. DB::Exception: Decimal value is too big: 38 digits were read: 12345678901234567890123456789012345678e0. Expected to read decimal with scale 1 and precision 38: While processing CAST('12345678901234567890123456789012345678', 'Decimal(38,1)'). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception&, int&, unsigned int&, unsigned int&>(int, FormatStringHelperImpl::type, std::type_identity&>::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, unsigned int&, wide::integer<128ul, int>&, int&, unsigned int&, unsigned int&) @ 0x000000001b9a70ba in /usr/bin/clickhouse 6. /build/src/IO/readDecimalText.h:170: void DB::readDecimalText>, void>(DB::ReadBuffer&, DB::Decimal>&, unsigned int, unsigned int&, bool) @ 0x000000001b9a24f3 in /usr/bin/clickhouse 7. /build/src/DataTypes/Serializations/SerializationDecimal.cpp:42: DB::SerializationDecimal>>::readText(DB::Decimal>&, DB::ReadBuffer&, unsigned int, unsigned int, bool) @ 0x000000001ba318de in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:1409: COW::immutable_ptr DB::ConvertThroughParsing>>, DB::CastName, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, unsigned int) @ 0x000000000b899007 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionsConversion.h:3162: bool std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal>> const&)::operator()>>>>(DB::DataTypeDecimal>> const&) const @ 0x000000000b88858f in /usr/bin/clickhouse 10. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType>>, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal>> const&)>(DB::TypeIndex, std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const::'lambda'(DB::DataTypeDecimal>> const&)&&) @ 0x000000000b8868ef in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:3121: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b88643c in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval>>>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::DataTypeDecimal>>&&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b886386 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b886320 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b8862c0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)> DB::FunctionCast::createDecimalWrapper>>>(std::shared_ptr const&, DB::DataTypeDecimal>> const*, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b88626b in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 18. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.h:64: DB::IExecutableFunction::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f659 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 22. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 23. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 27. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 28. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 2024.05.01 13:32:42.978247 [ 675 ] {e1e560a6-2c4b-4d94-b555-5fdfde3b19fb} TCPHandler: Code: 153. DB::Exception: Division by zero: While processing toDecimal128(0, 2) / toInt64(0). (ILLEGAL_DIVISION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [17]) @ 0x000000000b2510de in /usr/bin/clickhouse 6. /build/src/Functions/DivisionUtils.h:26: void DB::throwIfDivisionLeadsToFPE, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da19406 in /usr/bin/clickhouse 7. /build/src/Functions/DivisionUtils.h:48: auto DB::checkedDivision, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da1937d in /usr/bin/clickhouse 8. /build/src/Functions/DivisionUtils.h:83: wide::integer<128ul, int> DB::DivideIntegralImpl, wide::integer<128ul, int>>::apply>(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000da1931d in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:682: DB::impl_::DecimalBinaryOperation>, false>::apply(wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000db1cbfd in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:613: DB::Decimal> DB::impl_::DecimalBinaryOperation>, false>::process, wide::integer<128ul, int>>(wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>, wide::integer<128ul, int>) @ 0x000000000db1c645 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionBinaryArithmetic.h:1312: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumericWithDecimal>>, DB::DataTypeNumber, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeNumber, DB::ColumnDecimal>>, DB::ColumnVector>(DB::DataTypeDecimal>> const&, DB::DataTypeNumber const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal>> const*, DB::ColumnVector const*, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dcfca96 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1946: COW::immutable_ptr DB::FunctionBinaryArithmetic::executeNumeric>>, DB::DataTypeNumber>(std::vector> const&, DB::DataTypeDecimal>> const&, DB::DataTypeNumber const&, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dcfc6e4 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2131: auto DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)::operator()>>, DB::DataTypeNumber>(auto const&, auto const&) const @ 0x000000000dcfc4fb in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>(auto const&) const @ 0x000000000dcf4124 in /usr/bin/clickhouse 15. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dcf398d in /usr/bin/clickhouse 16. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dcf36bd in /usr/bin/clickhouse 17. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dc52bd3 in /usr/bin/clickhouse 18. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dc5247c in /usr/bin/clickhouse 19. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dc5201d in /usr/bin/clickhouse 20. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dc51451 in /usr/bin/clickhouse 21. /build/src/Functions/FunctionBinaryArithmetic.h:2098: DB::FunctionBinaryArithmetic::executeImpl2(std::vector> const&, std::shared_ptr const&, unsigned long, DB::PODArray, 63ul, 64ul> const*) const @ 0x000000000dc5111f in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4ecb6 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000dc4d6ac in /usr/bin/clickhouse 24. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 25. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 29. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 2024.05.01 13:32:43.232856 [ 675 ] {8246f48b-57e2-4fb3-9066-1e4237236d37} executeQuery: Code: 407. DB::Exception: Overflow during decimal division: While processing toDecimal128(1, 38) / toDecimal128(1, 1). (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT toDecimal128(1, 38) / toDecimal128(1, 1) SETTINGS decimal_check_overflow=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [33]) @ 0x000000000b21109e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1581: auto DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)::operator()>>, DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x000000000dd4dd9f in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dd4d104 in /usr/bin/clickhouse 8. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dd4c9bc in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dd4c55d in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dd384b3 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dd37d5c in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dd378fd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dd378d1 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:1506: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000dd37629 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000da02e8f in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:43.233917 [ 675 ] {8246f48b-57e2-4fb3-9066-1e4237236d37} TCPHandler: Code: 407. DB::Exception: Overflow during decimal division: While processing toDecimal128(1, 38) / toDecimal128(1, 1). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [33]) @ 0x000000000b21109e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1581: auto DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)::operator()>>, DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x000000000dd4dd9f in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dd4d104 in /usr/bin/clickhouse 8. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dd4c9bc in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dd4c55d in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dd384b3 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dd37d5c in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dd378fd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dd378d1 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:1506: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000dd37629 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000da02e8f in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:43.285606 [ 675 ] {246d0a48-2223-48dc-974a-7816cf15d56b} executeQuery: Code: 407. DB::Exception: Overflow during decimal division: While processing toDecimal128(1, 20) / toDecimal128(1, 19). (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (comment: 00700_decimal_arithm.sql) (in query: SELECT toDecimal128(1, 20) / toDecimal128(1, 19) SETTINGS decimal_check_overflow=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [33]) @ 0x000000000b21109e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1581: auto DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)::operator()>>, DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x000000000dd4dd9f in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dd4d104 in /usr/bin/clickhouse 8. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dd4c9bc in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dd4c55d in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dd384b3 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dd37d5c in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dd378fd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dd378d1 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:1506: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000dd37629 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000da02e8f in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:43.286527 [ 675 ] {246d0a48-2223-48dc-974a-7816cf15d56b} TCPHandler: Code: 407. DB::Exception: Overflow during decimal division: While processing toDecimal128(1, 20) / toDecimal128(1, 19). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [33]) @ 0x000000000b21109e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1581: auto DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)::operator()>>, DB::DataTypeDecimal>>>(auto const&, auto const&) const @ 0x000000000dd4dd9f in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:791: auto auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dd4d104 in /usr/bin/clickhouse 8. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)&&) @ 0x000000000dd4c9bc in /usr/bin/clickhouse 9. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dd4c55d in /usr/bin/clickhouse 10. /build/src/Functions/FunctionBinaryArithmetic.h:789: auto bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()>>>(auto const&) const @ 0x000000000dd384b3 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:17: bool DB::castTypeToEither, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber, DB::IDataType, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(TypeList, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber, DB::DataTypeNumber>, DB::DataTypeNumber>, DB::DataTypeDecimal>, DB::DataTypeDecimal>, DB::DataTypeDecimal>>, DB::DataTypeDecimal>>, DB::DataTypeDate, DB::DataTypeDateTime, DB::DataTypeFixedString, DB::DataTypeString, DB::DataTypeInterval, DB::DataTypeNumber, DB::DataTypeNumber>, auto const*, bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)&&) @ 0x000000000dd37d5c in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:781: bool DB::FunctionBinaryArithmetic::castType::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)>(DB::IDataType const*, auto&&) @ 0x000000000dd378fd in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:787: bool DB::FunctionBinaryArithmetic::castBothTypes::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr)::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&) @ 0x000000000dd378d1 in /usr/bin/clickhouse 14. /build/src/Functions/FunctionBinaryArithmetic.h:1506: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000dd37629 in /usr/bin/clickhouse 15. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000da02e8f in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 25. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 26. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 29. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 30. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 2024.05.01 13:32:43.659159 [ 5967 ] {4add35c8-cfb5-445d-86e8-ce60e8b9f98e} executeQuery: Code: 43. DB::Exception: Illegal types Decimal(9, 4) and Decimal(9, 4) of arguments for aggregate function covarPop. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41178) (comment: 00700_decimal_aggregates.sql) (in query: SELECT covarPop(a, a), covarPop(b, b), covarPop(c, c) FROM decimal;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String const&) @ 0x0000000013df5408 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionStatisticsSimple.h:269: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionStatisticsBinary(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000015c1a5b1 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:32:43.660249 [ 5967 ] {4add35c8-cfb5-445d-86e8-ce60e8b9f98e} TCPHandler: Code: 43. DB::Exception: Illegal types Decimal(9, 4) and Decimal(9, 4) of arguments for aggregate function covarPop. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String const&) @ 0x0000000013df5408 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionStatisticsSimple.h:269: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionStatisticsBinary(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000015c1a5b1 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:32:43.815670 [ 5967 ] {f3b40bb6-1cdf-410e-b79b-294ee149f00c} executeQuery: Code: 43. DB::Exception: Illegal types Decimal(9, 4) and Decimal(9, 4) of arguments for aggregate function covarSamp. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41178) (comment: 00700_decimal_aggregates.sql) (in query: SELECT covarSamp(a, a), covarSamp(b, b), covarSamp(c, c) FROM decimal;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String const&) @ 0x0000000013df5408 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionStatisticsSimple.h:269: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionStatisticsBinary(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000015c1a371 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:32:43.817124 [ 5967 ] {f3b40bb6-1cdf-410e-b79b-294ee149f00c} TCPHandler: Code: 43. DB::Exception: Illegal types Decimal(9, 4) and Decimal(9, 4) of arguments for aggregate function covarSamp. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String const&) @ 0x0000000013df5408 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionStatisticsSimple.h:269: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionStatisticsBinary(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000015c1a371 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:32:43.974395 [ 5967 ] {3eff78a3-a738-4075-997c-b4dceb8aa434} executeQuery: Code: 43. DB::Exception: Illegal types Decimal(9, 4) and Decimal(9, 4) of arguments for aggregate function corr. (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41178) (comment: 00700_decimal_aggregates.sql) (in query: SELECT corr(a, a), corr(b, b), corr(c, c) FROM decimal;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String const&) @ 0x0000000013df5408 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionStatisticsSimple.h:269: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionStatisticsBinary(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000015ce5cd1 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:32:43.975657 [ 5967 ] {3eff78a3-a738-4075-997c-b4dceb8aa434} TCPHandler: Code: 43. DB::Exception: Illegal types Decimal(9, 4) and Decimal(9, 4) of arguments for aggregate function corr. (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String const&) @ 0x0000000013df5408 in /usr/bin/clickhouse 6. /build/src/AggregateFunctions/AggregateFunctionStatisticsSimple.h:269: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionStatisticsBinary(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000015ce5cd1 in /usr/bin/clickhouse 7. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>()(std::declval(), std::declval, std::allocator>> const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000] (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbe18 in /usr/bin/clickhouse 8. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*>(std::shared_ptr (*&)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbdb5 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) @ 0x0000000013ddbd55 in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::__call_impl (*)(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*), std::shared_ptr (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>>(std::__function::__policy_storage const*, String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x0000000013ddbcdd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()[abi:v15000](String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*&&) const @ 0x000000001abfe9d9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*)>::operator()(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) const @ 0x000000001abfb3f5 in /usr/bin/clickhouse 13. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:161: DB::AggregateFunctionFactory::getImpl(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&, bool) const @ 0x000000001abf9e8c in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001abf9099 in /usr/bin/clickhouse 15. /build/src/Interpreters/ExpressionAnalyzer.cpp:582: DB::ExpressionAnalyzer::makeAggregateDescriptions(std::shared_ptr&, std::vector>&) @ 0x000000001bfa14e7 in /usr/bin/clickhouse 16. /build/src/Interpreters/ExpressionAnalyzer.cpp:268: DB::ExpressionAnalyzer::analyzeAggregation(std::shared_ptr&) @ 0x000000001bf9f2b0 in /usr/bin/clickhouse 17. /build/src/Interpreters/ExpressionAnalyzer.cpp:197: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x000000001bf9e7d9 in /usr/bin/clickhouse 18. /build/src/Interpreters/ExpressionAnalyzer.h:313: DB::SelectQueryExpressionAnalyzer::SelectQueryExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, std::vector> const&, bool, DB::SelectQueryOptions const&, std::shared_ptr) @ 0x000000001cabac13 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool, DB::SelectQueryOptions&, std::shared_ptr&>(std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::shared_ptr&, std::vector> const&, bool&&, DB::SelectQueryOptions&, std::shared_ptr&) @ 0x000000001cac2020 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:674: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa29a8 in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 25. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 29. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 31. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 2024.05.01 13:32:53.462334 [ 62773 ] {a1699067-da7a-4d2d-9ea1-82bd04202094} executeQuery: Code: 44. DB::Exception: Illegal column UInt32 of argument of aggregation state multiply. Should be integer constant. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:44572) (comment: 00647_multiply_aggregation_state.sql) (in query: SELECT sumMerge(y * a) FROM (SELECT a, sumState(b) AS y FROM mult_aggregation GROUP BY a);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1028: DB::FunctionBinaryArithmetic::executeAggregateMultiply(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000113a5650 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2013: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000113a4da4 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc7fb68 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc7f568 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001eb604e7 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001edc6286 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cabd031 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:2607: DB::InterpreterSelectQuery::executeAggregation(DB::QueryPlan&, std::shared_ptr const&, bool, bool, std::shared_ptr) @ 0x000000001cab0ea0 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:1686: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa94b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 2024.05.01 13:32:53.463284 [ 62773 ] {a1699067-da7a-4d2d-9ea1-82bd04202094} TCPHandler: Code: 44. DB::Exception: Illegal column UInt32 of argument of aggregation state multiply. Should be integer constant. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionBinaryArithmetic.h:1028: DB::FunctionBinaryArithmetic::executeAggregateMultiply(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000113a5650 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionBinaryArithmetic.h:2013: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000113a4da4 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:541: DB::executeActionForHeader(DB::ActionsDAG::Node const*, std::vector>) @ 0x000000001bc7fb68 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:660: DB::ActionsDAG::updateHeader(DB::Block) const @ 0x000000001bc7f568 in /usr/bin/clickhouse 15. /build/src/Processors/Transforms/ExpressionTransform.cpp:8: DB::ExpressionTransform::transformHeader(DB::Block, DB::ActionsDAG const&) @ 0x000000001eb604e7 in /usr/bin/clickhouse 16. /build/src/Processors/QueryPlan/ExpressionStep.cpp:31: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001edc6286 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&>(DB::DataStream const&, std::shared_ptr const&) @ 0x000000001cabd031 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterSelectQuery.cpp:2607: DB::InterpreterSelectQuery::executeAggregation(DB::QueryPlan&, std::shared_ptr const&, bool, bool, std::shared_ptr) @ 0x000000001cab0ea0 in /usr/bin/clickhouse 19. /build/src/Interpreters/InterpreterSelectQuery.cpp:1686: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa94b9 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 22. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 23. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 24. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 2024.05.01 13:33:09.077512 [ 50481 ] {a0d84f9e-5535-4363-863d-e1f496aab0b2} executeQuery: Code: 20. DB::Exception: Number of columns doesn't match. (NUMBER_OF_COLUMNS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42250) (comment: 00550_join_insert_select.sh) (in query: INSERT INTO test1_00550 SELECT id, name FROM test2_00550 ANY INNER JOIN test3_00550 USING (id) SETTINGS any_join_distinct_right_table_keys=1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [32]) @ 0x0000000011949a5e in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsDAG.cpp:1220: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x000000001bc83ce6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterInsertQuery.cpp:556: DB::InterpreterInsertQuery::execute() @ 0x000000001ca7687c in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:33:09.079512 [ 50481 ] {a0d84f9e-5535-4363-863d-e1f496aab0b2} TCPHandler: Code: 20. DB::Exception: Number of columns doesn't match. (NUMBER_OF_COLUMNS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [32]) @ 0x0000000011949a5e in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsDAG.cpp:1220: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x000000001bc83ce6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterInsertQuery.cpp:556: DB::InterpreterInsertQuery::execute() @ 0x000000001ca7687c in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:33:09.120276 [ 50481 ] {78812dd6-5f0a-401a-a632-aa7f8c6008db} executeQuery: Code: 20. DB::Exception: Number of columns doesn't match. (NUMBER_OF_COLUMNS_DOESNT_MATCH) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42250) (comment: 00550_join_insert_select.sh) (in query: INSERT INTO test1_00550 SELECT id, name FROM test2_00550 ANY LEFT OUTER JOIN test3_00550 USING (id);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [32]) @ 0x0000000011949a5e in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsDAG.cpp:1220: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x000000001bc83ce6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterInsertQuery.cpp:556: DB::InterpreterInsertQuery::execute() @ 0x000000001ca7687c in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:33:09.122228 [ 50481 ] {78812dd6-5f0a-401a-a632-aa7f8c6008db} TCPHandler: Code: 20. DB::Exception: Number of columns doesn't match. (NUMBER_OF_COLUMNS_DOESNT_MATCH), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [32]) @ 0x0000000011949a5e in /usr/bin/clickhouse 6. /build/src/Interpreters/ActionsDAG.cpp:1220: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x000000001bc83ce6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterInsertQuery.cpp:556: DB::InterpreterInsertQuery::execute() @ 0x000000001ca7687c in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:33:09.996262 [ 62780 ] {564894e3-8d5d-4d5e-975f-16acb232ebee} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing now(tz) != toDateTime('2000-01-01 00:00:00'). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42264) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE now(tz) != toDateTime('2000-01-01 00:00:00') ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/now.cpp:109: DB::(anonymous namespace)::NowOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118dd126 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:33:09.997550 [ 62780 ] {564894e3-8d5d-4d5e-975f-16acb232ebee} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing now(tz) != toDateTime('2000-01-01 00:00:00'). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/now.cpp:109: DB::(anonymous namespace)::NowOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118dd126 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:33:10.197915 [ 62780 ] {315b858c-9646-4fb9-939c-d5444a880a74} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing now64(9, tz) != toDateTime64('2000-01-01 00:00:00', 6). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42264) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE now64(9, tz) != toDateTime64('2000-01-01 00:00:00', 6) ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/now64.cpp:144: DB::(anonymous namespace)::Now64OverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118dff93 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:33:10.199054 [ 62780 ] {315b858c-9646-4fb9-939c-d5444a880a74} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing now64(9, tz) != toDateTime64('2000-01-01 00:00:00', 6). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/now64.cpp:144: DB::(anonymous namespace)::Now64OverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118dff93 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:33:10.385143 [ 62780 ] {6bb9a120-a31d-495d-84ad-6137666f3224} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing nowInBlock(tz) != toDateTime('2000-01-01 00:00:00'). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42264) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE nowInBlock(tz) != toDateTime('2000-01-01 00:00:00') ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/nowInBlock.cpp:75: DB::(anonymous namespace)::FunctionNowInBlock::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118e3686 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:33:10.386210 [ 62780 ] {6bb9a120-a31d-495d-84ad-6137666f3224} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing nowInBlock(tz) != toDateTime('2000-01-01 00:00:00'). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/nowInBlock.cpp:75: DB::(anonymous namespace)::FunctionNowInBlock::getReturnTypeImpl(std::vector> const&) const @ 0x00000000118e3686 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:33:10.598009 [ 62780 ] {bf6b4409-4d95-45c2-8b16-0b731a6ea846} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing toTimeZone(toDateTime(val), tz) != toDateTime('2023-06-11 14:14:14'). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42264) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE toTimeZone(toDateTime(val), tz) != toDateTime('2023-06-11 14:14:14') ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/toTimezone.cpp:106: DB::(anonymous namespace)::ToTimeZoneOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126c9bc6 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:33:10.599084 [ 62780 ] {bf6b4409-4d95-45c2-8b16-0b731a6ea846} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing toTimeZone(toDateTime(val), tz) != toDateTime('2023-06-11 14:14:14'). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/toTimezone.cpp:106: DB::(anonymous namespace)::ToTimeZoneOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126c9bc6 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 2024.05.01 13:33:10.820869 [ 62780 ] {bfd403c7-9b9f-43ef-8937-c2a897ec8a58} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing fromUnixTimestamp64Milli(val, tz) != toDateTime64('2023-06-11 14:14:14', 6). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42264) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE fromUnixTimestamp64Milli(val, tz) != toDateTime64('2023-06-11 14:14:14', 6) ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionUnixTimestamp64.h:127: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e2a62d3 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:33:10.821976 [ 62780 ] {bfd403c7-9b9f-43ef-8937-c2a897ec8a58} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing fromUnixTimestamp64Milli(val, tz) != toDateTime64('2023-06-11 14:14:14', 6). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionUnixTimestamp64.h:127: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e2a62d3 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:33:10.922713 [ 62780 ] {184b4c31-e679-4960-89c4-356b547e661e} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing fromUnixTimestamp64Micro(val, tz) != toDateTime64('2023-06-11 14:14:14', 6). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42264) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE fromUnixTimestamp64Micro(val, tz) != toDateTime64('2023-06-11 14:14:14', 6) ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionUnixTimestamp64.h:127: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e2a62d3 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:33:10.924147 [ 62780 ] {184b4c31-e679-4960-89c4-356b547e661e} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing fromUnixTimestamp64Micro(val, tz) != toDateTime64('2023-06-11 14:14:14', 6). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionUnixTimestamp64.h:127: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e2a62d3 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:33:11.020564 [ 62780 ] {ca9f2212-0f39-46f1-b25b-84a594e0dd1a} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing fromUnixTimestamp64Nano(val, tz) != toDateTime64('2023-06-11 14:14:14', 6). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42264) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE fromUnixTimestamp64Nano(val, tz) != toDateTime64('2023-06-11 14:14:14', 6) ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionUnixTimestamp64.h:127: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e2a62d3 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:33:11.021512 [ 62780 ] {ca9f2212-0f39-46f1-b25b-84a594e0dd1a} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing fromUnixTimestamp64Nano(val, tz) != toDateTime64('2023-06-11 14:14:14', 6). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionUnixTimestamp64.h:127: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e2a62d3 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:33:11.234965 [ 62780 ] {07f03ce6-af8a-46c7-a645-cc480ec23f11} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing snowflakeToDateTime(val, tz) != toDateTime('2023-06-11 14:14:14'). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42264) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE snowflakeToDateTime(val, tz) != toDateTime('2023-06-11 14:14:14') ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionSnowflake.h:99: DB::FunctionSnowflakeToDateTime::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012541b17 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:33:11.236156 [ 62780 ] {07f03ce6-af8a-46c7-a645-cc480ec23f11} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing snowflakeToDateTime(val, tz) != toDateTime('2023-06-11 14:14:14'). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionSnowflake.h:99: DB::FunctionSnowflakeToDateTime::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012541b17 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:33:11.449330 [ 62780 ] {4f65767e-8c16-419e-8480-18920a0fb989} executeQuery: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing snowflakeToDateTime64(val, tz) != toDateTime64('2023-06-11 14:14:14', 6). (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42264) (comment: 00515_enhanced_time_zones.sql) (in query: SELECT val FROM tab WHERE snowflakeToDateTime64(val, tz) != toDateTime64('2023-06-11 14:14:14', 6) ORDER BY val SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionSnowflake.h:201: DB::FunctionSnowflakeToDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012542e57 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:33:11.450450 [ 62780 ] {4f65767e-8c16-419e-8480-18920a0fb989} TCPHandler: Code: 44. DB::Exception: Illegal column tz of time zone argument of function, must be a constant string: While processing snowflakeToDateTime64(val, tz) != toDateTime64('2023-06-11 14:14:14', 6). (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/FunctionSnowflake.h:201: DB::FunctionSnowflakeToDateTime64::getReturnTypeImpl(std::vector> const&) const @ 0x0000000012542e57 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1255: DB::SelectQueryExpressionAnalyzer::appendWhere(DB::ExpressionActionsChain&, bool) @ 0x000000001bfaa023 in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1891: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfaf3f6 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 2024.05.01 13:33:11.972544 [ 62780 ] {7a89b6fc-80fd-4395-8fe8-90390778aa40} executeQuery: Code: 44. DB::Exception: Illegal column timezone of time zone argument of function, must be a constant string: While processing _CAST(toTimezone(date, timezone) AS viewer_date_tmp_alter3130319634412258032, 'DateTime') AS viewer_date: default expression and column type are incompatible. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42264) (comment: 00515_enhanced_time_zones.sql) (in query: ATTACH TABLE tab SETTINGS allow_nonconst_timezone_arguments = 0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/toTimezone.cpp:106: DB::(anonymous namespace)::ToTimeZoneOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126c9bc6 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1696: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x000000001bfada78 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1729: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x000000001bfadde3 in /usr/bin/clickhouse 26. /build/src/Storages/ColumnsDescription.cpp:847: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d598825 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 2024.05.01 13:33:11.974670 [ 62780 ] {7a89b6fc-80fd-4395-8fe8-90390778aa40} TCPHandler: Code: 44. DB::Exception: Illegal column timezone of time zone argument of function, must be a constant string: While processing _CAST(toTimezone(date, timezone) AS viewer_date_tmp_alter3130319634412258032, 'DateTime') AS viewer_date: default expression and column type are incompatible. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:25: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x000000001abf6a31 in /usr/bin/clickhouse 7. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:39: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x000000001abf6b4f in /usr/bin/clickhouse 8. /build/src/Functions/toTimezone.cpp:106: DB::(anonymous namespace)::ToTimeZoneOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x00000000126c9bc6 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1200: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdf53f in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 20. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 24. /build/src/Interpreters/ExpressionAnalyzer.cpp:1696: DB::ExpressionAnalyzer::getActionsDAG(bool, bool) @ 0x000000001bfada78 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:1729: DB::ExpressionAnalyzer::getActions(bool, bool, DB::CompileExpressions) @ 0x000000001bfadde3 in /usr/bin/clickhouse 26. /build/src/Storages/ColumnsDescription.cpp:847: DB::validateColumnsDefaultsAndGetSampleBlock(std::shared_ptr, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d598825 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:570: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dd13a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 2024.05.01 13:33:12.159618 [ 50481 ] {20209b9c-02cd-4a0b-a8e4-51c2289dda12} executeQuery: Code: 407. DB::Exception: Decimal math overflow: While processing toDateTime64('3000-01-01 12:00:00.12345', 0) + toIntervalNanosecond(0). (DECIMAL_OVERFLOW) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42310) (comment: 00514_interval_operators.sql) (in query: select toDateTime64('3000-01-01 12:00:00.12345', 0) + interval 0 nanosecond;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b23911e in /usr/bin/clickhouse 6. /build/src/Core/DecimalFunctions.h:98: bool DB::DecimalUtils::multiplyAdd(long const&, long const&, long const&, long&) @ 0x000000000b238fee in /usr/bin/clickhouse 7. /build/src/Core/DecimalFunctions.h:117: long DB::DecimalUtils::multiplyAdd(long const&, long const&, long const&) @ 0x000000000c3e0fe9 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:54: DB::AddNanosecondsImpl::execute(DB::DateTime64, long, DateLUTImpl const&, unsigned short) @ 0x000000000c3e2a80 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:445: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>, DB::ColumnVector>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector const&, DateLUTImpl const&, unsigned short, unsigned long) const @ 0x000000000c46b7f2 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:413: auto void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)::operator()>(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000000c46b0a3 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::IColumn, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)>(DB::PODArray, 63ul, 64ul> const*, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)&&) @ 0x000000000c45f92d in /usr/bin/clickhouse 12. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:414: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const @ 0x000000000c46ad03 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:482: DB::DateTimeAddIntervalImpl::execute(DB::AddNanosecondsImpl, std::vector> const&, std::shared_ptr const&, unsigned short) @ 0x000000000c46598a in /usr/bin/clickhouse 14. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:663: DB::FunctionDateOrDateTimeAddInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c463f37 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:1134: DB::FunctionBinaryArithmetic::executeDateTimeIntervalPlusMinus(std::vector> const&, std::shared_ptr const&, unsigned long, std::shared_ptr const&) const @ 0x0000000011b81311 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:2025: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b7f7b4 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b7e8cc in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 26. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 2024.05.01 13:33:12.160687 [ 50481 ] {20209b9c-02cd-4a0b-a8e4-51c2289dda12} TCPHandler: Code: 407. DB::Exception: Decimal math overflow: While processing toDateTime64('3000-01-01 12:00:00.12345', 0) + toIntervalNanosecond(0). (DECIMAL_OVERFLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [22]) @ 0x000000000b23911e in /usr/bin/clickhouse 6. /build/src/Core/DecimalFunctions.h:98: bool DB::DecimalUtils::multiplyAdd(long const&, long const&, long const&, long&) @ 0x000000000b238fee in /usr/bin/clickhouse 7. /build/src/Core/DecimalFunctions.h:117: long DB::DecimalUtils::multiplyAdd(long const&, long const&, long const&) @ 0x000000000c3e0fe9 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:54: DB::AddNanosecondsImpl::execute(DB::DateTime64, long, DateLUTImpl const&, unsigned short) @ 0x000000000c3e2a80 in /usr/bin/clickhouse 9. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:445: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>, DB::ColumnVector>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::ColumnVector const&, DateLUTImpl const&, unsigned short, unsigned long) const @ 0x000000000c46b7f2 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:413: auto void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)::operator()>(DB::PODArray, 63ul, 64ul> const&) const @ 0x000000000c46b0a3 in /usr/bin/clickhouse 11. /build/src/Functions/castTypeToEither.h:11: bool DB::castTypeToEither, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::ColumnVector, DB::IColumn, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)>(DB::PODArray, 63ul, 64ul> const*, void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const::'lambda'(DB::PODArray, 63ul, 64ul> const&)&&) @ 0x000000000c45f92d in /usr/bin/clickhouse 12. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:414: void DB::Adder::vectorVector, 63ul, 64ul>, DB::PODArray, 63ul, 64ul>>(DB::PODArray, 63ul, 64ul> const&, DB::PODArray, 63ul, 64ul>&, DB::IColumn const&, DateLUTImpl const&, unsigned short) const @ 0x000000000c46ad03 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:482: DB::DateTimeAddIntervalImpl::execute(DB::AddNanosecondsImpl, std::vector> const&, std::shared_ptr const&, unsigned short) @ 0x000000000c46598a in /usr/bin/clickhouse 14. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:663: DB::FunctionDateOrDateTimeAddInterval::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c463f37 in /usr/bin/clickhouse 15. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 18. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 19. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 20. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 21. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 22. /build/src/Functions/FunctionBinaryArithmetic.h:1134: DB::FunctionBinaryArithmetic::executeDateTimeIntervalPlusMinus(std::vector> const&, std::shared_ptr const&, unsigned long, std::shared_ptr const&) const @ 0x0000000011b81311 in /usr/bin/clickhouse 23. /build/src/Functions/FunctionBinaryArithmetic.h:2025: DB::FunctionBinaryArithmetic::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b7f7b4 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionBinaryArithmetic.h:0: DB::FunctionBinaryArithmeticWithConstants::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011b7e8cc in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 26. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 28. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 29. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 30. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 31. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 2024.05.01 13:33:12.187618 [ 50481 ] {d5b1c11c-249e-47fb-9d65-4700a0254a73} executeQuery: Code: 43. DB::Exception: addNanoseconds cannot be used with Date: While processing materialize(toDate('2000-01-01')) + toIntervalNanosecond(1). (ILLEGAL_TYPE_OF_ARGUMENT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42310) (comment: 00514_interval_operators.sql) (in query: -- Check that the error is thrown during typechecking, not execution. select materialize(toDate('2000-01-01')) + interval 1 nanosecond from numbers(0);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c46c604 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c46483c in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c6eac7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000119535cf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:33:12.188554 [ 50481 ] {d5b1c11c-249e-47fb-9d65-4700a0254a73} TCPHandler: Code: 43. DB::Exception: addNanoseconds cannot be used with Date: While processing materialize(toDate('2000-01-01')) + toIntervalNanosecond(1). (ILLEGAL_TYPE_OF_ARGUMENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:631: std::shared_ptr DB::FunctionDateOrDateTimeAddInterval::resolveReturnType(std::vector> const&) const @ 0x000000000c46c604 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionDateOrDateTimeAddInterval.h:562: DB::FunctionDateOrDateTimeAddInterval::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c46483c in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:134: DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x000000000b18a290 in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 12. /build/src/Functions/FunctionBinaryArithmetic.h:1444: DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x0000000011c6eac7 in /usr/bin/clickhouse 13. /build/src/Functions/FunctionBinaryArithmetic.h:2476: DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000119535cf in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.h:376: DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000c0aff29 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:489: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x000000001abe6e07 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.cpp:435: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x000000001abe6856 in /usr/bin/clickhouse 17. /build/src/Functions/IFunction.cpp:450: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000001abe6e61 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsDAG.cpp:198: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b1e6 in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 23. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 24. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 27. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 28. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 31. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 2024.05.01 13:33:14.607265 [ 62677 ] {1bb37bf5-5a1f-4128-802b-bb056c22ed73} executeQuery: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((0.1, 0.1), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42394) (comment: 00500_point_in_polygon.sql) (in query: SELECT pointInPolygon((0.1, 0.1), [(0.5, 0.), (1.0, 0.), (8.0, 7.5), (7.5, 8.0), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.0)]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cd3e60 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cd2139 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:33:14.608300 [ 62677 ] {1bb37bf5-5a1f-4128-802b-bb056c22ed73} TCPHandler: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((0.1, 0.1), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cd3e60 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cd2139 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:33:14.623233 [ 62677 ] {843d11c3-6112-4ff5-b66b-675e208d4f55} executeQuery: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((1., 1.), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42394) (comment: 00500_point_in_polygon.sql) (in query: SELECT pointInPolygon((1., 1.), [(0.5, 0.), (1.0, 0.), (8.0, 7.5), (7.5, 8.0), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.0)]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cd3e60 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cd2139 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:33:14.624490 [ 62677 ] {843d11c3-6112-4ff5-b66b-675e208d4f55} TCPHandler: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((1., 1.), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cd3e60 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cd2139 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:33:14.639690 [ 62677 ] {f35d2b2b-224f-4ecc-8e22-230c419f17e7} executeQuery: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((0.7, 0.1), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42394) (comment: 00500_point_in_polygon.sql) (in query: SELECT pointInPolygon((0.7, 0.1), [(0.5, 0.), (1.0, 0.), (8.0, 7.5), (7.5, 8.0), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.0)]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cd3e60 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cd2139 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:33:14.640713 [ 62677 ] {f35d2b2b-224f-4ecc-8e22-230c419f17e7} TCPHandler: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((0.7, 0.1), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cd3e60 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cd2139 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:33:14.658351 [ 62677 ] {e58f33f7-efcf-49dd-a2cb-cc78d2cfc37b} executeQuery: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((0.1, 0.7), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42394) (comment: 00500_point_in_polygon.sql) (in query: SELECT pointInPolygon((0.1, 0.7), [(0.5, 0.), (1.0, 0.), (8.0, 7.5), (7.5, 8.0), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.0)]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cd3e60 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cd2139 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:33:14.659689 [ 62677 ] {e58f33f7-efcf-49dd-a2cb-cc78d2cfc37b} TCPHandler: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((0.1, 0.7), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cd3e60 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cd2139 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:33:14.677250 [ 62677 ] {cd865a6d-9384-48df-bb58-ee58ec3102e2} executeQuery: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((1.1, 0.1), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42394) (comment: 00500_point_in_polygon.sql) (in query: SELECT pointInPolygon((1.1, 0.1), [(0.5, 0.), (1.0, 0.), (8.0, 7.5), (7.5, 8.0), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.0)]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cd3e60 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cd2139 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:33:14.678510 [ 62677 ] {cd865a6d-9384-48df-bb58-ee58ec3102e2} TCPHandler: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((1.1, 0.1), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cd3e60 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cd2139 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:33:14.695626 [ 62677 ] {9d226d68-6ef3-4fa0-a4fe-4f387dd3abdb} executeQuery: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((0.1, 1.1), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42394) (comment: 00500_point_in_polygon.sql) (in query: SELECT pointInPolygon((0.1, 1.1), [(0.5, 0.), (1.0, 0.), (8.0, 7.5), (7.5, 8.0), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.0)]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cd3e60 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cd2139 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:33:14.696924 [ 62677 ] {9d226d68-6ef3-4fa0-a4fe-4f387dd3abdb} TCPHandler: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((0.1, 1.1), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cd3e60 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cd2139 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:33:14.715178 [ 62677 ] {3285ab07-0040-4de2-946e-db9cd1eda12c} executeQuery: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((5., 5.), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42394) (comment: 00500_point_in_polygon.sql) (in query: SELECT pointInPolygon((5.0, 5.0), [(0.5, 0.), (1.0, 0.), (8.0, 7.5), (7.5, 8.0), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.0)]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cd3e60 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cd2139 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:33:14.716598 [ 62677 ] {3285ab07-0040-4de2-946e-db9cd1eda12c} TCPHandler: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((5., 5.), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cd3e60 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cd2139 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:33:14.733794 [ 62677 ] {73917389-25f8-4ea5-a7ec-160438606fe7} executeQuery: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((7.9, 7.9), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42394) (comment: 00500_point_in_polygon.sql) (in query: SELECT pointInPolygon((7.9, 7.9), [(0.5, 0.), (1.0, 0.), (8.0, 7.5), (7.5, 8.0), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.0)]);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cd3e60 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cd2139 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:33:14.755083 [ 62677 ] {73917389-25f8-4ea5-a7ec-160438606fe7} TCPHandler: Code: 36. DB::Exception: Polygon is not valid: Geometry has invalid self-intersections. A self-intersection point was found at (5.34483, 4.65517); method: i; operations: u/i; segment IDs {source, multi, ring, segment}: {0, -1, -1, 1}/{0, -1, -1, 6}: While processing pointInPolygon((7.9, 7.9), [(0.5, 0.), (1., 0.), (8., 7.5), (7.5, 8.), (0., 1.), (0., 0.5), (4.5, 5.5), (5.5, 4.5), (0.5, 0.)]). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Functions/pointInPolygon.cpp:568: DB::(anonymous namespace)::FunctionPointInPolygon>::parseConstPolygon(std::vector> const&, boost::geometry::model::polygon, false, true, std::vector, std::vector, std::allocator, std::allocator>&) const @ 0x0000000011cd3e60 in /usr/bin/clickhouse 7. /build/src/Functions/pointInPolygon.cpp:183: DB::(anonymous namespace)::FunctionPointInPolygon>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000011cd2139 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 13. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 14. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 21. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 22. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 25. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 26. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 2024.05.01 13:33:20.426385 [ 1276 ] {934d6c95-31c3-4a77-9728-e3a499396da2} executeQuery: Code: 36. DB::Exception: Unexpected type Array(Array(String)) of bloom filter index. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60480) (comment: 00908_bloom_filter_index.sh) (in query: CREATE TABLE bloom_filter_idx_na (`na` Array(Array(String)), INDEX bf na TYPE bloom_filter(0.1) GRANULARITY 1) ENGINE = MergeTree ORDER BY na SETTINGS index_granularity = 6125, min_bytes_for_wide_part = 371931333, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 185, prefer_fetch_merged_part_size_threshold = 1, vertical_merge_algorithm_min_rows_to_activate = 1, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 2185826884, index_granularity_bytes = 11601918, allow_vertical_merges_from_compact_to_wide_parts = true, marks_compress_block_size = 81222, primary_key_compress_block_size = 64752), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/BloomFilter.cpp:124: DB::BloomFilter::getPrimitiveType(std::shared_ptr const&) @ 0x000000001bd9adef in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexBloomFilter.cpp:87: DB::assertIndexColumnsType(DB::Block const&) @ 0x000000001dfd4bec in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeIndexBloomFilter.cpp:118: DB::bloomFilterIndexValidatorNew(DB::IndexDescription const&, bool) @ 0x000000001dfd4964 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 19. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 2024.05.01 13:33:20.428786 [ 1276 ] {934d6c95-31c3-4a77-9728-e3a499396da2} TCPHandler: Code: 36. DB::Exception: Unexpected type Array(Array(String)) of bloom filter index. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/BloomFilter.cpp:124: DB::BloomFilter::getPrimitiveType(std::shared_ptr const&) @ 0x000000001bd9adef in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeIndexBloomFilter.cpp:87: DB::assertIndexColumnsType(DB::Block const&) @ 0x000000001dfd4bec in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeIndexBloomFilter.cpp:118: DB::bloomFilterIndexValidatorNew(DB::IndexDescription const&, bool) @ 0x000000001dfd4964 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval())) std::__invoke[abi:v15000](void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fb0d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(void (*&)(DB::IndexDescription const&, bool), DB::IndexDescription const&, bool&&) @ 0x000000001df9fac5 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) @ 0x000000001df9fa85 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*, DB::IndexDescription const&, bool) @ 0x000000001df9fa30 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000](DB::IndexDescription const&, bool&&) const @ 0x000000001df9ea4e in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()(DB::IndexDescription const&, bool) const @ 0x000000001df99208 in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeIndices.cpp:108: DB::MergeTreeIndexFactory::validate(DB::IndexDescription const&, bool) const @ 0x000000001df97d06 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeData.cpp:586: DB::MergeTreeData::checkProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, bool, std::shared_ptr) const @ 0x000000001ddffbd0 in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeData.cpp:620: DB::MergeTreeData::setProperties(DB::StorageInMemoryMetadata const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr) @ 0x000000001ddfcef6 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeData.cpp:390: DB::MergeTreeData::MergeTreeData(DB::StorageID const&, DB::StorageInMemoryMetadata const&, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool, bool, std::function) @ 0x000000001ddfc26d in /usr/bin/clickhouse 19. /build/src/Storages/StorageMergeTree.cpp:101: DB::StorageMergeTree::StorageMergeTree(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata const&, bool, std::shared_ptr, String const&, DB::MergeTreeData::MergingParams const&, std::unique_ptr>, bool) @ 0x000000001e2f76f3 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageMergeTree* std::construct_at[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, DB::StorageMergeTree*>(DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f72ba in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void, void>(std::allocator&, DB::StorageMergeTree*, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6fb5 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&>(std::allocator, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6c43 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(std::allocator const&, DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f6a55 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>, bool const&, void>(DB::StorageID const&, String const&, DB::StorageInMemoryMetadata&, bool const&, std::shared_ptr&, String&, DB::MergeTreeData::MergingParams&, std::unique_ptr>&&, bool const&) @ 0x000000001e2f503b in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/registerStorageMergeTree.cpp:708: DB::create(DB::StorageFactory::Arguments const&) @ 0x000000001e2f327f in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval (*&)(DB::StorageFactory::Arguments const&)>()(std::declval())) std::__invoke[abi:v15000] (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129fd in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&>(std::shared_ptr (*&)(DB::StorageFactory::Arguments const&), DB::StorageFactory::Arguments const&) @ 0x000000001ae129bd in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001ae1297d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (*)(DB::StorageFactory::Arguments const&), std::shared_ptr (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001ae12945 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 2024.05.01 13:33:31.522797 [ 4305 ] {be4b38b5-2dd7-4d6c-b3ef-bc6c5cb876e0} MergeTreeDataWriter: Incorrect data: number of rows with sign = 1 (9000) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 0).). 2024.05.01 13:33:32.234412 [ 62771 ] {5fd2b1ac-6443-4a2a-b106-5fb8c7739d2b} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48280) (comment: 00417_kill_query.sh) (in query: SELECT sleep(1) FROM system.numbers LIMIT 300), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:33:32.236737 [ 62771 ] {5fd2b1ac-6443-4a2a-b106-5fb8c7739d2b} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:33:33.454345 [ 1276 ] {f352dd8e-98d8-49b0-aa32-4a41d0d1548d} executeQuery: Code: 10. DB::Exception: Wrong column name. Cannot find column `VasyaUnexistingColumn` to drop. (NOT_FOUND_COLUMN_IN_BLOCK) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48330) (comment: 00446_clear_column_in_partition_concurrent_zookeeper.sh) (in query: ALTER TABLE clear_column1 CLEAR COLUMN VasyaUnexistingColumn IN PARTITION '200001'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1249: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d57f9f9 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:33:33.455964 [ 1276 ] {f352dd8e-98d8-49b0-aa32-4a41d0d1548d} TCPHandler: Code: 10. DB::Exception: Wrong column name. Cannot find column `VasyaUnexistingColumn` to drop. (NOT_FOUND_COLUMN_IN_BLOCK), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Storages/AlterCommands.cpp:1249: DB::AlterCommands::validate(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001d57f9f9 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:194: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caf45 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:33:35.978792 [ 62773 ] {a206d25f-5508-4827-b5bc-ddd8c4ea0705} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48358) (comment: 00417_kill_query.sh) (in query: SELECT sleep(1) FROM system.numbers LIMIT 301), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:33:35.981062 [ 62773 ] {a206d25f-5508-4827-b5bc-ddd8c4ea0705} TCPHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 15. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001e689f60 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 22. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&) @ 0x0000000013a59375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/thread:285: void std::__thread_execute[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(std::tuple::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>&, std::__tuple_indices<>) @ 0x0000000013a5929d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/thread:295: void* std::__thread_proxy[abi:v15000]>, void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>>(void*) @ 0x0000000013a58d82 in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:33:40.350586 [ 62685 ] {bb80dbbe-65e3-44b5-8af5-ea00584fef93::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 0).). 2024.05.01 13:33:40.362689 [ 62685 ] {bb80dbbe-65e3-44b5-8af5-ea00584fef93::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9000).). 2024.05.01 13:33:40.362848 [ 62685 ] {bb80dbbe-65e3-44b5-8af5-ea00584fef93::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9001).). 2024.05.01 13:33:40.362992 [ 62685 ] {bb80dbbe-65e3-44b5-8af5-ea00584fef93::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9002).). 2024.05.01 13:33:40.363143 [ 62685 ] {bb80dbbe-65e3-44b5-8af5-ea00584fef93::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9003).). 2024.05.01 13:33:40.363297 [ 62685 ] {bb80dbbe-65e3-44b5-8af5-ea00584fef93::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9004).). 2024.05.01 13:33:40.363440 [ 62685 ] {bb80dbbe-65e3-44b5-8af5-ea00584fef93::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9005).). 2024.05.01 13:33:40.363581 [ 62685 ] {bb80dbbe-65e3-44b5-8af5-ea00584fef93::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9006).). 2024.05.01 13:33:40.363722 [ 62685 ] {bb80dbbe-65e3-44b5-8af5-ea00584fef93::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9007).). 2024.05.01 13:33:40.363863 [ 62685 ] {bb80dbbe-65e3-44b5-8af5-ea00584fef93::19700101_19700101_1_3_1} CollapsingSortedTransform: Incorrect data: number of rows with sign = 1 (2) differs with number of rows with sign = -1 (0) by more than one (for key: 0, 9008).). 2024.05.01 13:33:47.283191 [ 5967 ] {371154f1-e5a7-42f0-8c97-a484b4af119b} executeQuery: Code: 47. DB::Exception: Missing columns: 'xyz' while processing query: 'SELECT xyz', required columns: 'xyz'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59268) (comment: 00380_client_break_at_exception_in_batch_mode.sh) (in query: SELECT xyz;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:33:47.284963 [ 5967 ] {371154f1-e5a7-42f0-8c97-a484b4af119b} TCPHandler: Code: 47. DB::Exception: Missing columns: 'xyz' while processing query: 'SELECT xyz', required columns: 'xyz'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:34:24.292837 [ 64679 ] {a0e4e4a0-1989-40e0-a26d-cdb465c6259b} HedgedConnectionsFactory: Connection failed at try â„–1, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.05.01 13:34:24.433442 [ 5454 ] {a0e4e4a0-1989-40e0-a26d-cdb465c6259b} HedgedConnectionsFactory: Connection failed at try â„–1, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.05.01 13:34:26.293775 [ 64679 ] {a0e4e4a0-1989-40e0-a26d-cdb465c6259b} HedgedConnectionsFactory: Connection failed at try â„–2, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.05.01 13:34:26.434717 [ 5454 ] {a0e4e4a0-1989-40e0-a26d-cdb465c6259b} HedgedConnectionsFactory: Connection failed at try â„–2, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.05.01 13:34:27.641875 [ 62681 ] {0ab2645c-8561-4d64-87f4-01568e6d8ccc} executeQuery: Code: 69. DB::Exception: Scale argument for rounding function is too large: While processing ceil(29375422, -54212). (ARGUMENT_OUT_OF_BOUND) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:34812) (comment: 00161_rounding_functions.sql) (in query: SELECT ceil(29375422, -54212) --{serverError 69} ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [50]) @ 0x000000000b21015e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsRound.h:569: DB::FunctionRounding::getScaleArg(std::vector> const&) @ 0x000000000c24d6bc in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsRound.h:582: DB::FunctionRounding::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c24cdf5 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:34:27.642943 [ 62681 ] {0ab2645c-8561-4d64-87f4-01568e6d8ccc} TCPHandler: Code: 69. DB::Exception: Scale argument for rounding function is too large: While processing ceil(29375422, -54212). (ARGUMENT_OUT_OF_BOUND), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [50]) @ 0x000000000b21015e in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsRound.h:569: DB::FunctionRounding::getScaleArg(std::vector> const&) @ 0x000000000c24d6bc in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsRound.h:582: DB::FunctionRounding::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000c24cdf5 in /usr/bin/clickhouse 8. /build/src/Functions/IFunction.h:433: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b190c59 in /usr/bin/clickhouse 9. /build/src/Functions/IFunctionAdaptors.h:26: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f40d in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:246: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe42e6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:160: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe3e63 in /usr/bin/clickhouse 12. /build/src/Functions/IFunction.cpp:238: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe41c3 in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 15. /build/src/Interpreters/ActionsDAG.cpp:283: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x000000001bc7b738 in /usr/bin/clickhouse 16. /build/src/Interpreters/ActionsDAG.cpp:199: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x000000001bc7b2b3 in /usr/bin/clickhouse 17. /build/src/Interpreters/ActionsVisitor.cpp:641: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfdac76 in /usr/bin/clickhouse 18. /build/src/Interpreters/ActionsVisitor.h:181: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x000000001bfe6e1d in /usr/bin/clickhouse 19. /build/src/Interpreters/ActionsVisitor.cpp:1290: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe02af in /usr/bin/clickhouse 20. /build/src/Interpreters/ActionsVisitor.cpp:698: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb14d in /usr/bin/clickhouse 21. /build/src/Interpreters/ActionsVisitor.cpp:807: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfe0ab7 in /usr/bin/clickhouse 22. /build/src/Interpreters/ActionsVisitor.cpp:702: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001bfdb1b9 in /usr/bin/clickhouse 23. /build/src/Interpreters/InDepthNodeVisitor.h:71: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001bfd1400 in /usr/bin/clickhouse 24. /build/src/Interpreters/InDepthNodeVisitor.h:61: void DB::InDepthNodeVisitor const>::visitImplMain(std::shared_ptr const&) @ 0x000000001bfd15e1 in /usr/bin/clickhouse 25. /build/src/Interpreters/InDepthNodeVisitor.h:53: void DB::InDepthNodeVisitor const>::visitImpl(std::shared_ptr const&) @ 0x000000001bfd138a in /usr/bin/clickhouse 26. /build/src/Interpreters/InDepthNodeVisitor.h:33: DB::InDepthNodeVisitor const>::visit(std::shared_ptr const&) @ 0x000000001bfb4a25 in /usr/bin/clickhouse 27. /build/src/Interpreters/ExpressionAnalyzer.cpp:482: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, std::shared_ptr&, bool) @ 0x000000001bfa1c7d in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionAnalyzer.cpp:1463: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x000000001bfabc75 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionAnalyzer.cpp:2009: DB::ExpressionAnalysisResult::ExpressionAnalysisResult(DB::SelectQueryExpressionAnalyzer&, std::shared_ptr const&, bool, bool, bool, std::shared_ptr const&, std::shared_ptr const&, DB::Block const&) @ 0x000000001bfb062a in /usr/bin/clickhouse 30. /build/src/Interpreters/InterpreterSelectQuery.cpp:946: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x000000001caaae24 in /usr/bin/clickhouse 31. /build/src/Interpreters/InterpreterSelectQuery.cpp:769: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa3bfe in /usr/bin/clickhouse 2024.05.01 13:34:28.326412 [ 64679 ] {a0e4e4a0-1989-40e0-a26d-cdb465c6259b} HedgedConnectionsFactory: Connection failed at try â„–3, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.05.01 13:34:28.462406 [ 5454 ] {a0e4e4a0-1989-40e0-a26d-cdb465c6259b} HedgedConnectionsFactory: Connection failed at try â„–3, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.05.01 13:34:30.557166 [ 62680 ] {9869e869-0d57-47f1-bf6c-1439b60ac795} HedgedConnectionsFactory: Connection failed at try â„–1, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.05.01 13:34:31.902281 [ 62678 ] {00c8c46c-cb9e-434a-8433-9e8067c8810b} executeQuery: Code: 48. DB::Exception: StorageJoin with ORs is not supported. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42518) (comment: 00118_storage_join.sql) (in query: SELECT k, js1.s, t2.s FROM (SELECT number AS k, number AS s FROM system.numbers LIMIT 10) js1 ANY LEFT JOIN t2 ON js1.k == t2.k OR js1.s == t2.k ORDER BY k;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f81ac7e in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:155: DB::TableJoin::addDisjunct() @ 0x000000001cf39ad6 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:642: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf911e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:34:31.903336 [ 62678 ] {00c8c46c-cb9e-434a-8433-9e8067c8810b} TCPHandler: Code: 48. DB::Exception: StorageJoin with ORs is not supported. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [38]) @ 0x000000000f81ac7e in /usr/bin/clickhouse 6. /build/src/Interpreters/TableJoin.cpp:155: DB::TableJoin::addDisjunct() @ 0x000000001cf39ad6 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:642: DB::(anonymous namespace)::collectJoinedColumns(DB::TableJoin&, DB::ASTTableJoin&, std::vector> const&, std::unordered_map, std::hash, std::equal_to, std::allocator>>> const&, std::shared_ptr) @ 0x000000001cf911e4 in /usr/bin/clickhouse 8. /build/src/Interpreters/TreeRewriter.cpp:1252: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8d932 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:34:32.567832 [ 62680 ] {9869e869-0d57-47f1-bf6c-1439b60ac795} HedgedConnectionsFactory: Connection failed at try â„–2, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.05.01 13:34:34.568798 [ 62680 ] {9869e869-0d57-47f1-bf6c-1439b60ac795} HedgedConnectionsFactory: Connection failed at try â„–3, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.05.01 13:34:36.570450 [ 62680 ] {9869e869-0d57-47f1-bf6c-1439b60ac795} HedgedConnectionsFactory: Connection failed at try â„–1, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.05.01 13:34:38.571276 [ 62680 ] {9869e869-0d57-47f1-bf6c-1439b60ac795} HedgedConnectionsFactory: Connection failed at try â„–2, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.05.01 13:34:40.572048 [ 62680 ] {9869e869-0d57-47f1-bf6c-1439b60ac795} HedgedConnectionsFactory: Connection failed at try â„–3, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.05.01 13:34:42.602496 [ 4404 ] {9869e869-0d57-47f1-bf6c-1439b60ac795} HedgedConnectionsFactory: Connection failed at try â„–1, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.05.01 13:34:42.602514 [ 64245 ] {9869e869-0d57-47f1-bf6c-1439b60ac795} HedgedConnectionsFactory: Connection failed at try â„–1, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.05.01 13:34:44.603660 [ 4404 ] {9869e869-0d57-47f1-bf6c-1439b60ac795} HedgedConnectionsFactory: Connection failed at try â„–2, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.05.01 13:34:44.603871 [ 64245 ] {9869e869-0d57-47f1-bf6c-1439b60ac795} HedgedConnectionsFactory: Connection failed at try â„–2, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.05.01 13:34:46.609125 [ 4404 ] {9869e869-0d57-47f1-bf6c-1439b60ac795} HedgedConnectionsFactory: Connection failed at try â„–3, reason: Timeout exceeded while connecting to socket (1.0.0.2:9000, connection timeout 2000 ms) 2024.05.01 13:34:46.613777 [ 64245 ] {9869e869-0d57-47f1-bf6c-1439b60ac795} HedgedConnectionsFactory: Connection failed at try â„–3, reason: Timeout exceeded while connecting to socket (1.0.0.3:9000, connection timeout 2000 ms) 2024.05.01 13:35:04.795930 [ 62673 ] {0d4f3832-e928-4bb4-8f91-0cf19193e361} executeQuery: Code: 47. DB::Exception: Missing columns: 'x' while processing query: 'SELECT x FROM system.numbers LIMIT 1', required columns: 'x'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45840) (comment: 00002_system_numbers.sql) (in query: select x from system.numbers limit 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:35:04.796608 [ 62673 ] {0d4f3832-e928-4bb4-8f91-0cf19193e361} TCPHandler: Code: 47. DB::Exception: Missing columns: 'x' while processing query: 'SELECT x FROM system.numbers LIMIT 1', required columns: 'x'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:35:04.804997 [ 62673 ] {79aaca36-216c-47e6-bb2f-6fd55b23ac33} executeQuery: Code: 47. DB::Exception: Missing columns: 'x' while processing query: 'SELECT x, number FROM system.numbers LIMIT 1', required columns: 'x' 'number', maybe you meant: 'number'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45840) (comment: 00002_system_numbers.sql) (in query: SELECT x, number FROM system.numbers LIMIT 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:35:04.805903 [ 62673 ] {79aaca36-216c-47e6-bb2f-6fd55b23ac33} TCPHandler: Code: 47. DB::Exception: Missing columns: 'x' while processing query: 'SELECT x, number FROM system.numbers LIMIT 1', required columns: 'x' 'number', maybe you meant: 'number'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:35:04.924287 [ 62673 ] {3bc032c6-585a-4c47-b152-b72d4ee5583d} executeQuery: Code: 60. DB::Exception: Table system.number does not exist. Maybe you meant numbers?. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45840) (comment: 00002_system_numbers.sql) (in query: SELECT * FROM system.number LIMIT 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:29: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb493f3 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:35:04.925181 [ 62673 ] {3bc032c6-585a-4c47-b152-b72d4ee5583d} TCPHandler: Code: 60. DB::Exception: Table system.number does not exist. Maybe you meant numbers?. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:29: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb493f3 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:35:05.049494 [ 62673 ] {1b6919e8-3f7e-4ef7-8c01-ef2923b75067} executeQuery: Code: 60. DB::Exception: Table test_q3h2di3t.system does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45840) (comment: 00002_system_numbers.sql) (in query: SELECT * FROM system LIMIT 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:35:05.050309 [ 62673 ] {1b6919e8-3f7e-4ef7-8c01-ef2923b75067} TCPHandler: Code: 60. DB::Exception: Table test_q3h2di3t.system does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:35:05.056588 [ 62673 ] {9900e69f-6b1d-4c8d-8f5c-bc8c28d5864c} executeQuery: Code: 60. DB::Exception: Table test_q3h2di3t.numbers does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45840) (comment: 00002_system_numbers.sql) (in query: SELECT * FROM numbers LIMIT 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:35:05.057214 [ 62673 ] {9900e69f-6b1d-4c8d-8f5c-bc8c28d5864c} TCPHandler: Code: 60. DB::Exception: Table test_q3h2di3t.numbers does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:35:05.064218 [ 62673 ] {84a709bc-6e40-4527-9a60-7bdfc3d70f99} executeQuery: Code: 47. DB::Exception: Missing columns: 'sys.number' while processing query: 'SELECT sys.number FROM system.numbers AS sys_num LIMIT 1', required columns: 'sys.number'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45840) (comment: 00002_system_numbers.sql) (in query: SELECT sys.number FROM system.numbers AS sys_num LIMIT 1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:35:05.064874 [ 62673 ] {84a709bc-6e40-4527-9a60-7bdfc3d70f99} TCPHandler: Code: 47. DB::Exception: Missing columns: 'sys.number' while processing query: 'SELECT sys.number FROM system.numbers AS sys_num LIMIT 1', required columns: 'sys.number'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:36:09.717215 [ 60037 ] {be634360-ca6a-4f5c-98df-8d41ae104842} executeQuery: Code: 319. DB::Exception: Unknown status, client must retry. Reason: Code: 999. Coordination::Exception: Fault injection before operation. (KEEPER_EXCEPTION) (version 23.8.11.29.altinitystable (altinity build)). (UNKNOWN_STATUS_OF_INSERT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54412) (comment: 02887_insert_quorum_wo_keeper_retries.sql) (in query: INSERT INTO quorum1 VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1148: DB::ReplicatedMergeTreeSinkImpl::waitForQuorum(std::shared_ptr const&, String const&, String const&, int, unsigned long) const @ 0x000000001e2bb8f6 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1069: DB::ReplicatedMergeTreeSinkImpl::commitPart(std::shared_ptr const&, std::shared_ptr&, String const&, unsigned long, bool) @ 0x000000001e2b9e78 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:423: DB::ReplicatedMergeTreeSinkImpl::finishDelayedChunk(std::shared_ptr const&) @ 0x000000001e2aeb31 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:400: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b8db8 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:36:09.718198 [ 60037 ] {be634360-ca6a-4f5c-98df-8d41ae104842} TCPHandler: Code: 319. DB::Exception: Unknown status, client must retry. Reason: Code: 999. Coordination::Exception: Fault injection before operation. (KEEPER_EXCEPTION) (version 23.8.11.29.altinitystable (altinity build)). (UNKNOWN_STATUS_OF_INSERT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1148: DB::ReplicatedMergeTreeSinkImpl::waitForQuorum(std::shared_ptr const&, String const&, String const&, int, unsigned long) const @ 0x000000001e2bb8f6 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:1069: DB::ReplicatedMergeTreeSinkImpl::commitPart(std::shared_ptr const&, std::shared_ptr&, String const&, unsigned long, bool) @ 0x000000001e2b9e78 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:423: DB::ReplicatedMergeTreeSinkImpl::finishDelayedChunk(std::shared_ptr const&) @ 0x000000001e2aeb31 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:400: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b8db8 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 18. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PushingPipelineExecutor.cpp:123: DB::PushingPipelineExecutor::finish() @ 0x000000001e69237e in /usr/bin/clickhouse 25. /build/src/Server/TCPHandler.cpp:868: auto DB::TCPHandler::processInsertQuery()::$_0::operator()(DB::PushingPipelineExecutor&) const @ 0x000000001e5e3eb0 in /usr/bin/clickhouse 26. /build/src/Server/TCPHandler.cpp:878: DB::TCPHandler::processInsertQuery() @ 0x000000001e5e1b7e in /usr/bin/clickhouse 27. /build/src/Server/TCPHandler.cpp:513: DB::TCPHandler::runImpl() @ 0x000000001e5da200 in /usr/bin/clickhouse 28. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 29. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 30. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 2024.05.01 13:36:40.534111 [ 62680 ] {558dbca7-e5ed-4d92-ac57-b317cd8922aa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.13 MiB (attempt to allocate chunk of 1182456 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_2_2_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 92 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60350) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:40.625036 [ 62680 ] {558dbca7-e5ed-4d92-ac57-b317cd8922aa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.13 MiB (attempt to allocate chunk of 1182456 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_2_2_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 92 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:44.431106 [ 62677 ] {080bdd3d-b6b6-4f45-a600-081bef4a7d36} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 54.21 MiB (attempt to allocate chunk of 1176560 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_4_4_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 87 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60378) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:44.443134 [ 62675 ] {b85f5d9e-4316-4890-a1e1-6f82a0feadd8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 55.52 MiB (attempt to allocate chunk of 1182456 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60460) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:44.468025 [ 50481 ] {524d576a-83a7-4dd2-ac46-9b3b78a1a2c6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.28 MiB (attempt to allocate chunk of 1177948 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 107 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60406) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:44.479200 [ 62677 ] {080bdd3d-b6b6-4f45-a600-081bef4a7d36} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 54.21 MiB (attempt to allocate chunk of 1176560 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_4_4_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 87 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:44.485961 [ 62675 ] {b85f5d9e-4316-4890-a1e1-6f82a0feadd8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 55.52 MiB (attempt to allocate chunk of 1182456 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:44.526142 [ 50481 ] {524d576a-83a7-4dd2-ac46-9b3b78a1a2c6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.28 MiB (attempt to allocate chunk of 1177948 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 107 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:44.619899 [ 62673 ] {70124ecb-f4a4-4ad8-bd69-64f52becd326} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.01 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60352) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:44.651841 [ 675 ] {42173e0f-935d-43aa-97aa-75ea1d7dd831} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.17 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_4_4_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60348) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:44.662682 [ 62673 ] {70124ecb-f4a4-4ad8-bd69-64f52becd326} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.01 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:44.710116 [ 675 ] {42173e0f-935d-43aa-97aa-75ea1d7dd831} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.17 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_4_4_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:44.715264 [ 12026 ] {b7cc499c-f92a-4304-8506-e5c97576949a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.15 MiB (attempt to allocate chunk of 1182648 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 83 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60432) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:44.802761 [ 12026 ] {b7cc499c-f92a-4304-8506-e5c97576949a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.15 MiB (attempt to allocate chunk of 1182648 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 83 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:44.858822 [ 5967 ] {0c2cb84c-1432-4f9d-9bfd-4d97d2b76ad7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.46 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_6_6_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 118 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60464) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:44.943739 [ 5967 ] {0c2cb84c-1432-4f9d-9bfd-4d97d2b76ad7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.46 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_6_6_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 118 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:44.967816 [ 62681 ] {1caa5119-35f9-4c32-91ae-97789671f568} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.47 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60418) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:44.978930 [ 62672 ] {0b5c672c-4437-4891-9fa4-e828802ac655} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.55 MiB (attempt to allocate chunk of 1182112 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 115 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60438) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:45.039046 [ 62681 ] {1caa5119-35f9-4c32-91ae-97789671f568} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.47 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:45.051819 [ 62672 ] {0b5c672c-4437-4891-9fa4-e828802ac655} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.55 MiB (attempt to allocate chunk of 1182112 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 115 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:45.085404 [ 62679 ] {a69f17aa-1273-47a2-9f2a-f64bf040d148} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 56.45 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 63 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60444) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:45.214546 [ 62685 ] {5143bbba-268f-4e67-8e93-1fcc85b67bef} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.35 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60410) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:45.306053 [ 62679 ] {a69f17aa-1273-47a2-9f2a-f64bf040d148} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 56.45 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 63 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:45.306367 [ 62685 ] {5143bbba-268f-4e67-8e93-1fcc85b67bef} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.35 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:45.508877 [ 62678 ] {9333c72e-a66e-4c62-9b4c-9184d3875936} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.68 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60392) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:45.550120 [ 60037 ] {b2fdc59d-108b-42e0-9527-3b37ff456c8b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.27 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 113 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60330) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:45.608949 [ 62678 ] {9333c72e-a66e-4c62-9b4c-9184d3875936} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.68 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:45.693505 [ 60037 ] {b2fdc59d-108b-42e0-9527-3b37ff456c8b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.27 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 113 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:46.639168 [ 1276 ] {501cb916-0985-49f7-98a0-80e75bcb14a8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.60 MiB (attempt to allocate chunk of 1181848 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60400) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:46.758351 [ 1276 ] {501cb916-0985-49f7-98a0-80e75bcb14a8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.60 MiB (attempt to allocate chunk of 1181848 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:47.985074 [ 62780 ] {61c33a84-5873-4d18-8921-d29d619a6039} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 54.40 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 115 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60346) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:48.151806 [ 62780 ] {61c33a84-5873-4d18-8921-d29d619a6039} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 54.40 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 115 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:50.887784 [ 62680 ] {053014e4-c2a8-4eb3-bcf8-4a3d475c4889} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.17 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38990) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:36:50.969174 [ 62680 ] {053014e4-c2a8-4eb3-bcf8-4a3d475c4889} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.17 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:36:54.429001 [ 62678 ] {daa8d5bd-f307-4192-8034-ff0283eb2f79} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.11 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39124) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:36:54.503306 [ 62678 ] {daa8d5bd-f307-4192-8034-ff0283eb2f79} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.11 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:36:56.843903 [ 62769 ] {9c353d6f-911a-4c8e-822a-bf99444a41c7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 59.56 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 71 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38980) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:56.909124 [ 62769 ] {9c353d6f-911a-4c8e-822a-bf99444a41c7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 59.56 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 71 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:57.324720 [ 62780 ] {d05f2f5e-a10e-4389-b856-0f5dd9b13620} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.17 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59086) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:36:57.389702 [ 62780 ] {d05f2f5e-a10e-4389-b856-0f5dd9b13620} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.17 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:36:58.046040 [ 62675 ] {17d0bc8e-0350-4d00-88e9-66ce8ccea440} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.40 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 121 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39080) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:58.104600 [ 62675 ] {17d0bc8e-0350-4d00-88e9-66ce8ccea440} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.40 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 121 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:58.122520 [ 62677 ] {4b3ed50c-a839-4c34-9f03-63941f31fe21} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 59.26 MiB (attempt to allocate chunk of 1176560 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_6_6_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 118 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39016) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:58.125060 [ 62673 ] {1fd1ac55-6d6c-4b00-bc09-fbc8d65d4d9b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.10 MiB (attempt to allocate chunk of 1182112 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 115 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39042) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:58.280198 [ 62673 ] {1fd1ac55-6d6c-4b00-bc09-fbc8d65d4d9b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.10 MiB (attempt to allocate chunk of 1182112 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 115 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:58.280201 [ 62771 ] {3f3d7ba6-c397-49dc-be18-acfaa44c5d2e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 59.28 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39000) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:36:58.281545 [ 62677 ] {4b3ed50c-a839-4c34-9f03-63941f31fe21} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 59.26 MiB (attempt to allocate chunk of 1176560 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_6_6_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 118 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:58.285557 [ 675 ] {48307631-6b5a-42c2-a8c2-477a72485281} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.13 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39058) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:58.384402 [ 62771 ] {3f3d7ba6-c397-49dc-be18-acfaa44c5d2e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 59.28 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:36:58.388964 [ 50481 ] {39891bd5-1117-47cf-a67a-97e219139bc9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.03 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39028) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:58.405885 [ 12026 ] {87795f27-935c-4fcf-acf1-e9a1b5739484} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.54 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 71 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39064) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:58.421606 [ 675 ] {48307631-6b5a-42c2-a8c2-477a72485281} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.13 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:58.422677 [ 62681 ] {6a9c7f91-72eb-4d28-b2ab-62a3964c1527} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.13 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39096) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:58.434463 [ 5967 ] {899fbe2b-a2d8-471a-8086-6830b239e95d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 61.52 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39108) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:36:58.478775 [ 12026 ] {87795f27-935c-4fcf-acf1-e9a1b5739484} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.54 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 71 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:58.496641 [ 5967 ] {899fbe2b-a2d8-471a-8086-6830b239e95d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 61.52 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:36:58.503026 [ 60037 ] {f02d749e-b718-49ad-b3b6-a09a7ed3c2f8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.07 MiB (attempt to allocate chunk of 1178007 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 107 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39132) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:58.503525 [ 62681 ] {6a9c7f91-72eb-4d28-b2ab-62a3964c1527} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.13 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:58.565761 [ 60037 ] {f02d749e-b718-49ad-b3b6-a09a7ed3c2f8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.07 MiB (attempt to allocate chunk of 1178007 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 107 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:58.579886 [ 50481 ] {39891bd5-1117-47cf-a67a-97e219139bc9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.03 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:59.351959 [ 62672 ] {67ce76ee-4388-4ea8-965a-0c66a958a621} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.09 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39106) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:59.469938 [ 62672 ] {67ce76ee-4388-4ea8-965a-0c66a958a621} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.09 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:59.503883 [ 62685 ] {b4e39093-f830-4cbb-87e5-344ea8ea3f86} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.82 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39120) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:36:59.619924 [ 62685 ] {b4e39093-f830-4cbb-87e5-344ea8ea3f86} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.82 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:01.182396 [ 1276 ] {ea998756-7eb7-4b64-943e-5f558520abf0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.04 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 115 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39144) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:01.603936 [ 1276 ] {ea998756-7eb7-4b64-943e-5f558520abf0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.04 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 115 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:04.831413 [ 62780 ] {6d069de7-cd01-4ffb-b109-5233762a0bc2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59108) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:04.969718 [ 62780 ] {6d069de7-cd01-4ffb-b109-5233762a0bc2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:05.208852 [ 62675 ] {f8a64edc-9647-4046-89cf-f1543eab1852} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47154) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:05.346747 [ 62681 ] {f04a5e0a-b014-448a-bd0f-18d109873e77} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.19 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47208) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:05.518703 [ 62681 ] {f04a5e0a-b014-448a-bd0f-18d109873e77} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.19 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:05.581863 [ 62675 ] {f8a64edc-9647-4046-89cf-f1543eab1852} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:06.164386 [ 62771 ] {71901491-9526-4ee7-9a08-97c646473424} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.17 MiB (attempt to allocate chunk of 2102984 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47194) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:06.426891 [ 69570 ] {83fce86a-4055-43ca-a625-5e54efbeb113} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_2_2_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 23 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47206) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:06.455466 [ 62771 ] {71901491-9526-4ee7-9a08-97c646473424} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.17 MiB (attempt to allocate chunk of 2102984 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:06.498730 [ 69570 ] {83fce86a-4055-43ca-a625-5e54efbeb113} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_2_2_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 23 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:07.542561 [ 12026 ] {4b7a4993-69cb-4055-a8f6-2960cf8a34d1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 73 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47242) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:07.825427 [ 12026 ] {4b7a4993-69cb-4055-a8f6-2960cf8a34d1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.18 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 73 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:09.471514 [ 62680 ] {6d6f95d1-5c41-4654-a66a-440d316c648d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.91 MiB (attempt to allocate chunk of 1176560 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 99 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59090) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:09.600643 [ 62680 ] {6d6f95d1-5c41-4654-a66a-440d316c648d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.91 MiB (attempt to allocate chunk of 1176560 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 99 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:10.690730 [ 62678 ] {c55de411-ca54-43a2-b6cf-4920f22072a2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.46 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 71 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59098) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:10.761760 [ 62678 ] {c55de411-ca54-43a2-b6cf-4920f22072a2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.46 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 71 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:10.836224 [ 1276 ] {76a0f4d8-1313-4949-9faa-f672a44202c9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47266) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:37:10.865583 [ 62679 ] {af2ec8e2-85e2-4e2f-813c-0cba24a4f64e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.27 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59102) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:10.892298 [ 1276 ] {76a0f4d8-1313-4949-9faa-f672a44202c9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:37:10.932687 [ 62679 ] {af2ec8e2-85e2-4e2f-813c-0cba24a4f64e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.27 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:11.470065 [ 62672 ] {f36e40bc-d95c-4362-946d-e0a7aa027f64} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47272) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:37:11.560459 [ 62672 ] {f36e40bc-d95c-4362-946d-e0a7aa027f64} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:37:11.623324 [ 5967 ] {47b1f343-f760-428d-ae99-350c6e29b167} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47278) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:11.747306 [ 5967 ] {47b1f343-f760-428d-ae99-350c6e29b167} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:12.319331 [ 62677 ] {67973832-bb11-48ad-bcef-392cb793a330} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.21 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 71 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47202) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:12.447673 [ 62677 ] {67973832-bb11-48ad-bcef-392cb793a330} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.21 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 71 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:12.748181 [ 62673 ] {5cfbc22b-0246-4198-9e57-82024ca6dea4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.02 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47182) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:12.826731 [ 62673 ] {5cfbc22b-0246-4198-9e57-82024ca6dea4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.02 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:12.999961 [ 62769 ] {dd8f9429-649f-4d98-9754-f6eef8e4d6aa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 56.94 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47170) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:13.039206 [ 62681 ] {23d289e1-b550-41e7-8b7f-be3d12aece83} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47306) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:37:13.075187 [ 62769 ] {dd8f9429-649f-4d98-9754-f6eef8e4d6aa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 56.94 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:13.128027 [ 62681 ] {23d289e1-b550-41e7-8b7f-be3d12aece83} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:37:13.396321 [ 60037 ] {5cea9cba-ff6b-4a76-9857-3206a69e95c8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 57.95 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 115 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47222) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:13.498914 [ 60037 ] {5cea9cba-ff6b-4a76-9857-3206a69e95c8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 57.95 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 115 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:13.621406 [ 675 ] {be3041c1-f1cf-43b2-b1f3-b05fca2f5299} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 59.10 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 121 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47198) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:13.747637 [ 675 ] {be3041c1-f1cf-43b2-b1f3-b05fca2f5299} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 59.10 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 121 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:13.999466 [ 12026 ] {05f1d00c-4f52-4e88-88d9-609a74b8b056} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55282) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:14.204266 [ 12026 ] {05f1d00c-4f52-4e88-88d9-609a74b8b056} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:14.210788 [ 50481 ] {111c5c63-fa9f-49e3-8bf1-dac84ed07006} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.76 MiB (attempt to allocate chunk of 1181848 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 115 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47236) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:14.762755 [ 50481 ] {111c5c63-fa9f-49e3-8bf1-dac84ed07006} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.76 MiB (attempt to allocate chunk of 1181848 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_5_5_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 115 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:14.986488 [ 62685 ] {e82cbc29-06ce-4114-830d-6b792344c59d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.13 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_2_2_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47254) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:15.350557 [ 62685 ] {e82cbc29-06ce-4114-830d-6b792344c59d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.13 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_2_2_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 124 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:15.771375 [ 62680 ] {a3308f1e-c685-493f-93dd-421b68990c98} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55294) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:15.843172 [ 62678 ] {e1ee8722-3b83-4a59-8c42-0fdad4e06fce} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55304) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:15.897296 [ 62678 ] {e1ee8722-3b83-4a59-8c42-0fdad4e06fce} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:16.003543 [ 62680 ] {a3308f1e-c685-493f-93dd-421b68990c98} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:16.080032 [ 1276 ] {cdc038e2-cc11-448b-ab2e-ee17879650d9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55314) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:16.235784 [ 1276 ] {cdc038e2-cc11-448b-ab2e-ee17879650d9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:17.513861 [ 62672 ] {3465cada-50c8-4720-ad2f-03fcbb8e8440} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55322) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:17.573172 [ 62672 ] {3465cada-50c8-4720-ad2f-03fcbb8e8440} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:17.758454 [ 5967 ] {5e86db08-1704-419a-a74f-1218f7c82a93} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55328) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:17.762945 [ 62679 ] {bce5578d-36e9-4b5e-800d-b123282d2636} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55320) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:17.829931 [ 62679 ] {bce5578d-36e9-4b5e-800d-b123282d2636} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:17.881707 [ 5967 ] {5e86db08-1704-419a-a74f-1218f7c82a93} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:18.137220 [ 62675 ] {e257001f-f201-44bb-80c4-128c00f75fda} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55348) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:18.168862 [ 62673 ] {ab926619-ae19-455b-a4af-54186484e0a7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55344) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:18.210322 [ 62675 ] {e257001f-f201-44bb-80c4-128c00f75fda} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:18.236096 [ 62673 ] {ab926619-ae19-455b-a4af-54186484e0a7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:18.247341 [ 62677 ] {2ea0cae2-2015-4437-a06c-8f8bf5d737ca} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2099232 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55340) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:18.298696 [ 62677 ] {2ea0cae2-2015-4437-a06c-8f8bf5d737ca} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2099232 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:18.444745 [ 62681 ] {7cc055c4-1822-4656-9813-c3c04b7dbd03} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55354) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:18.672286 [ 62681 ] {7cc055c4-1822-4656-9813-c3c04b7dbd03} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:19.759582 [ 60037 ] {b6e5e41e-3ac8-4420-94f9-8292a8d3aea0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55370) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:20.017253 [ 60037 ] {b6e5e41e-3ac8-4420-94f9-8292a8d3aea0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:20.102554 [ 675 ] {1f111345-d8f8-4a03-b0e0-74dc57361667} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55380) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:20.230408 [ 675 ] {1f111345-d8f8-4a03-b0e0-74dc57361667} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:20.798738 [ 12026 ] {9ec531ee-32d3-47b4-a252-385566c3b182} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55384) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:20.937476 [ 12026 ] {9ec531ee-32d3-47b4-a252-385566c3b182} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:21.079188 [ 62771 ] {124dc589-cc03-47c0-a7ab-c1cd734c2c88} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.87 MiB (attempt to allocate chunk of 1181544 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47294) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:21.359757 [ 62771 ] {124dc589-cc03-47c0-a7ab-c1cd734c2c88} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.87 MiB (attempt to allocate chunk of 1181544 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:21.423611 [ 62780 ] {c20bf15f-1930-4a7f-9275-a34a784a2f5e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.74 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 482 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47280) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:21.562743 [ 62780 ] {c20bf15f-1930-4a7f-9275-a34a784a2f5e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.74 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 482 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:21.583816 [ 50481 ] {2257b4e2-df97-4d27-945c-2b8a3c2c64e2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55398) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:21.790280 [ 62685 ] {943d2181-014c-4eb8-9331-0a220480c144} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55402) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:21.822944 [ 50481 ] {2257b4e2-df97-4d27-945c-2b8a3c2c64e2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:21.872110 [ 62685 ] {943d2181-014c-4eb8-9331-0a220480c144} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:22.243261 [ 62680 ] {60d92c31-0b75-4c48-b7f2-291d947f15b0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55418) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:22.291501 [ 62678 ] {cbd2c051-51ba-497a-81c3-41bb09b4d35c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2099008 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55414) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:22.302544 [ 62680 ] {60d92c31-0b75-4c48-b7f2-291d947f15b0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:22.498841 [ 62678 ] {cbd2c051-51ba-497a-81c3-41bb09b4d35c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2099008 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:24.522610 [ 62679 ] {b07a1bba-059c-4d52-aa80-e76dd6b3c07b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55456) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:24.696688 [ 62679 ] {b07a1bba-059c-4d52-aa80-e76dd6b3c07b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:24.728768 [ 5967 ] {6c9dec41-13fe-4301-98ce-00ad5262ab4b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54054) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:24.830301 [ 5967 ] {6c9dec41-13fe-4301-98ce-00ad5262ab4b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:24.864798 [ 62672 ] {6e912aca-9b1d-4e5e-b883-ebaf63809846} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55442) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:25.382907 [ 62672 ] {6e912aca-9b1d-4e5e-b883-ebaf63809846} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:25.418937 [ 62675 ] {1d6f2fc3-88d2-4e0b-9f57-9fd52dcf350b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54056) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:25.419074 [ 62673 ] {636719dc-5cd8-4cec-9ce1-a970699f3969} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.01 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54072) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:25.464972 [ 62677 ] {85e29db7-0aa7-44c7-a17c-3dfd85757237} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54082) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:25.496749 [ 62673 ] {636719dc-5cd8-4cec-9ce1-a970699f3969} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.01 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:25.524994 [ 62677 ] {85e29db7-0aa7-44c7-a17c-3dfd85757237} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:25.565324 [ 62675 ] {1d6f2fc3-88d2-4e0b-9f57-9fd52dcf350b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:26.194954 [ 60037 ] {11ea2946-d81a-480b-8b21-8a6a2123dd1c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098576 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54104) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:26.289150 [ 60037 ] {11ea2946-d81a-480b-8b21-8a6a2123dd1c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098576 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:27.139596 [ 62769 ] {604f3b98-f99c-4111-881f-548a066a97f1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54116) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:27.244275 [ 62769 ] {604f3b98-f99c-4111-881f-548a066a97f1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:27.289253 [ 62681 ] {8dcea2f5-fb22-40b6-a8d7-885880969c41} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54094) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:27.369412 [ 62681 ] {8dcea2f5-fb22-40b6-a8d7-885880969c41} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:27.518170 [ 69570 ] {030c4969-1d09-46fd-9721-0d0d59cf3c82} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54120) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:27.572107 [ 69570 ] {030c4969-1d09-46fd-9721-0d0d59cf3c82} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:27.809746 [ 675 ] {64efae65-3b9f-4d32-80cf-e40e9a889a8c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54132) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:27.898912 [ 675 ] {64efae65-3b9f-4d32-80cf-e40e9a889a8c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:28.127960 [ 62771 ] {205ac54e-9e63-4151-8d52-a2086ad89c4f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54124) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:28.426011 [ 62771 ] {205ac54e-9e63-4151-8d52-a2086ad89c4f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:28.585457 [ 50481 ] {0a231343-463d-47ca-89a7-1fa394bdcda1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54150) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:28.772323 [ 50481 ] {0a231343-463d-47ca-89a7-1fa394bdcda1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:29.023369 [ 62680 ] {258e5d4e-f928-46c9-85a2-fcc341f8a8d1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54154) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:29.120785 [ 62680 ] {258e5d4e-f928-46c9-85a2-fcc341f8a8d1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:30.921628 [ 62678 ] {7cf7a2ac-b235-4fda-b23c-0be343ac72ec} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54158) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:31.358560 [ 62678 ] {7cf7a2ac-b235-4fda-b23c-0be343ac72ec} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:31.628547 [ 62685 ] {babd0d03-1ac7-4fc0-9040-fc3041c721b9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54162) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:31.628693 [ 62673 ] {d8c44e67-9a5e-4705-a323-51350f0e93fb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54194) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:31.788448 [ 62672 ] {1c2cb9e2-7b6f-4abf-842e-67b0594f07ae} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54186) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:31.797412 [ 62685 ] {babd0d03-1ac7-4fc0-9040-fc3041c721b9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:31.813427 [ 62673 ] {d8c44e67-9a5e-4705-a323-51350f0e93fb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:31.895884 [ 12026 ] {dd1a9c85-e71a-4c18-bfd2-5e462815c69a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54208) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:31.896715 [ 62672 ] {1c2cb9e2-7b6f-4abf-842e-67b0594f07ae} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:32.000763 [ 5967 ] {30e2972e-3a1f-4650-94b9-8def70229683} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54178) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:32.042543 [ 5967 ] {30e2972e-3a1f-4650-94b9-8def70229683} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:32.190337 [ 12026 ] {dd1a9c85-e71a-4c18-bfd2-5e462815c69a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:32.881866 [ 1276 ] {cac964af-b218-42a2-aac4-c0e394bc4044} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 60.00 MiB (attempt to allocate chunk of 1181544 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55430) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:32.975751 [ 62677 ] {743ec947-5933-471d-8e23-f64a4ba4cb36} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54222) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:33.045897 [ 62677 ] {743ec947-5933-471d-8e23-f64a4ba4cb36} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:33.276276 [ 1276 ] {cac964af-b218-42a2-aac4-c0e394bc4044} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 60.00 MiB (attempt to allocate chunk of 1181544 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:33.391603 [ 62681 ] {7f56f37b-399e-477d-9aa4-4211bf2b52f2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54256) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:33.462656 [ 60037 ] {87e9e692-d7dc-4648-8150-2291f6d9d893} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54236) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:33.471842 [ 62681 ] {7f56f37b-399e-477d-9aa4-4211bf2b52f2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:33.546104 [ 60037 ] {87e9e692-d7dc-4648-8150-2291f6d9d893} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:33.570165 [ 69570 ] {253d61c9-cb8b-4fd4-9eea-cebc2b3b45ca} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54262) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:33.581223 [ 62769 ] {7a6d0ed6-4265-42c6-99c8-d7bfb24e0d92} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.39 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54246) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:37:33.629068 [ 69570 ] {253d61c9-cb8b-4fd4-9eea-cebc2b3b45ca} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:33.852913 [ 62769 ] {7a6d0ed6-4265-42c6-99c8-d7bfb24e0d92} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.39 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:37:34.860616 [ 675 ] {6f93918f-db48-47c9-a70b-b8e3043c7a43} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50876) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:34.946195 [ 675 ] {6f93918f-db48-47c9-a70b-b8e3043c7a43} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:35.860223 [ 62771 ] {f8629929-042f-4f12-900c-4408f2060a30} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50880) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:37:35.963103 [ 62771 ] {f8629929-042f-4f12-900c-4408f2060a30} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:37:35.967250 [ 50481 ] {4bfbe2ea-5851-41a0-9e4e-02970cda1ebf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.89 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 81 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50890) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:36.040299 [ 50481 ] {4bfbe2ea-5851-41a0-9e4e-02970cda1ebf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.89 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 81 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:37.146445 [ 62780 ] {306445d5-5ffa-42c6-99c0-ba072251061e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.48 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 705 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54140) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:37.311481 [ 62780 ] {306445d5-5ffa-42c6-99c0-ba072251061e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.48 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 705 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:37.770200 [ 5967 ] {99276330-0ec0-4413-93a0-417bcd07ec08} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50932) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:37.770824 [ 62678 ] {462f17c7-9b60-4450-8694-8c1b843d611c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50896) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:37.823061 [ 62680 ] {efba0d93-4520-4197-a010-2dc9c3596492} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50892) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:37.858370 [ 62678 ] {462f17c7-9b60-4450-8694-8c1b843d611c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:37.875000 [ 5967 ] {99276330-0ec0-4413-93a0-417bcd07ec08} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:37.884752 [ 62672 ] {1ad4e84b-5363-4bb4-bfca-03c1f5522b82} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50924) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:37.895470 [ 62680 ] {efba0d93-4520-4197-a010-2dc9c3596492} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:37.905975 [ 62679 ] {13e5e264-1618-4dbf-ae47-93aa07cbc93a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50906) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:37.936728 [ 62672 ] {1ad4e84b-5363-4bb4-bfca-03c1f5522b82} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:38.014527 [ 62673 ] {0e7b089f-441b-4fcd-a457-a4063d30525f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50922) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:37:38.078921 [ 62679 ] {13e5e264-1618-4dbf-ae47-93aa07cbc93a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:38.105578 [ 62673 ] {0e7b089f-441b-4fcd-a457-a4063d30525f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:37:39.556177 [ 62685 ] {7e4d50c0-52f0-4729-9653-98b2399051b8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50936) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:39.663828 [ 62685 ] {7e4d50c0-52f0-4729-9653-98b2399051b8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:40.097148 [ 1276 ] {c3181ce3-4c78-49b2-b161-70973ca93676} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50966) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:40.440988 [ 1276 ] {c3181ce3-4c78-49b2-b161-70973ca93676} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:40.651664 [ 62681 ] {00d65797-716c-4515-b9f3-517bbf41be87} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1177824 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 31 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50982) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:40.685253 [ 12026 ] {44f19d0e-71c9-4cec-9369-3eddb4b911ff} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51014) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:40.761589 [ 62681 ] {00d65797-716c-4515-b9f3-517bbf41be87} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1177824 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 31 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:40.761632 [ 12026 ] {44f19d0e-71c9-4cec-9369-3eddb4b911ff} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:40.854770 [ 60037 ] {126f939e-4e12-4666-8367-05be6e088b88} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1177776 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 750 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50998) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:41.186435 [ 60037 ] {126f939e-4e12-4666-8367-05be6e088b88} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1177776 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 750 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:41.746394 [ 62675 ] {cdb44b1d-3713-461b-89ac-0e92f6b0bddd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51030) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:41.835229 [ 62675 ] {cdb44b1d-3713-461b-89ac-0e92f6b0bddd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:42.345723 [ 62769 ] {84d0cffc-e0bd-4ab9-a75a-2bfaf4696d26} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51034) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:37:42.484768 [ 69570 ] {bb753171-01a8-42dd-acbe-18ccaa0584d3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51048) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:42.548993 [ 69570 ] {bb753171-01a8-42dd-acbe-18ccaa0584d3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:42.725267 [ 62769 ] {84d0cffc-e0bd-4ab9-a75a-2bfaf4696d26} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:37:44.162668 [ 62771 ] {7a75971f-3a9f-4d8a-b613-ec0b3df31c22} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51056) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:44.170290 [ 62678 ] {521b35e8-21cf-45f8-a2f9-b9ae81252c16} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51084) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:44.172563 [ 5967 ] {056af515-e373-420c-9b87-d0a5011e8f30} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51098) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:44.216089 [ 62771 ] {7a75971f-3a9f-4d8a-b613-ec0b3df31c22} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:44.244434 [ 62678 ] {521b35e8-21cf-45f8-a2f9-b9ae81252c16} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:44.251022 [ 675 ] {6292afdb-fe4b-48e9-be75-123d319dcc42} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51068) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:44.306516 [ 5967 ] {056af515-e373-420c-9b87-d0a5011e8f30} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:44.311476 [ 675 ] {6292afdb-fe4b-48e9-be75-123d319dcc42} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:44.463351 [ 62780 ] {0b715cf2-c130-48a5-b3b2-937360bc1c85} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51074) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:44.538482 [ 62780 ] {0b715cf2-c130-48a5-b3b2-937360bc1c85} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:44.647541 [ 62680 ] {d167de22-18c8-4d85-94f6-0858c7699661} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103336 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51122) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:44.658320 [ 62672 ] {f18b5a0c-4dca-4812-8c84-3fe9ca677165} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51108) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:44.687549 [ 62680 ] {d167de22-18c8-4d85-94f6-0858c7699661} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103336 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:44.712587 [ 62672 ] {f18b5a0c-4dca-4812-8c84-3fe9ca677165} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:46.310005 [ 1276 ] {411498a5-006d-4a09-8b5a-6beb24a34506} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52152) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:46.601383 [ 1276 ] {411498a5-006d-4a09-8b5a-6beb24a34506} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:46.616273 [ 62673 ] {daaf48d7-523a-4809-ac6a-4b01a0b8f3ed} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52124) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:46.921574 [ 50481 ] {f9b4b6d6-074d-4ea2-a62d-d18fbe978f03} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52138) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:47.070200 [ 50481 ] {f9b4b6d6-074d-4ea2-a62d-d18fbe978f03} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:47.113206 [ 62685 ] {b56b17a3-5bb3-4218-9d92-304102f03c8d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52158) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:47.135671 [ 62673 ] {daaf48d7-523a-4809-ac6a-4b01a0b8f3ed} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:47.148531 [ 12026 ] {b646dd15-5e41-4d61-a19c-c0c4c7314c63} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52160) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:47.206663 [ 62685 ] {b56b17a3-5bb3-4218-9d92-304102f03c8d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:47.218227 [ 12026 ] {b646dd15-5e41-4d61-a19c-c0c4c7314c63} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:48.097803 [ 60037 ] {d085090a-7a12-4e63-bb40-b62088f2437d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52162) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:48.298503 [ 60037 ] {d085090a-7a12-4e63-bb40-b62088f2437d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:48.385097 [ 62675 ] {c471886c-a75c-4bff-9176-c063cfd4014c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52168) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:48.459443 [ 69570 ] {85da052c-3e7a-4fb4-97b1-e2a251b978f7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52180) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:48.485546 [ 62677 ] {7c172e28-da88-48ff-b22d-10c3add9de14} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 55.11 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 97 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50952) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:48.582997 [ 69570 ] {85da052c-3e7a-4fb4-97b1-e2a251b978f7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:48.585333 [ 62677 ] {7c172e28-da88-48ff-b22d-10c3add9de14} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 55.11 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 97 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:37:48.829423 [ 62675 ] {c471886c-a75c-4bff-9176-c063cfd4014c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:49.558826 [ 62771 ] {8be4a55c-7609-4a99-8925-6662e7da3108} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52192) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:49.679910 [ 62771 ] {8be4a55c-7609-4a99-8925-6662e7da3108} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:49.919789 [ 62681 ] {82e1aedb-59ce-4732-b20c-c5e460c0b3e5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52206) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:49.966519 [ 62681 ] {82e1aedb-59ce-4732-b20c-c5e460c0b3e5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:49.986564 [ 62769 ] {a3340e33-4d81-4a4d-9cec-1fe4fce829a0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52182) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:50.095268 [ 62678 ] {4733811a-9c2b-4592-bca9-688746c3b87a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52194) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:50.108161 [ 62769 ] {a3340e33-4d81-4a4d-9cec-1fe4fce829a0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:50.219512 [ 62678 ] {4733811a-9c2b-4592-bca9-688746c3b87a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:50.297995 [ 5967 ] {221e84e0-d12e-4f93-aab1-bb105e5342eb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52216) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:50.400612 [ 5967 ] {221e84e0-d12e-4f93-aab1-bb105e5342eb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:50.590676 [ 675 ] {a42ad1aa-e669-4aba-a9f2-55054d7a93fd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52230) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:50.704253 [ 62680 ] {c7c5c850-9be7-4ae3-a72f-08c11446ac78} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2099396 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52234) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:50.815564 [ 62680 ] {c7c5c850-9be7-4ae3-a72f-08c11446ac78} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2099396 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:50.865421 [ 675 ] {a42ad1aa-e669-4aba-a9f2-55054d7a93fd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:52.928630 [ 62672 ] {afa11b9b-f888-428b-9ecd-92305fc3d7c8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52250) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:52.995317 [ 62672 ] {afa11b9b-f888-428b-9ecd-92305fc3d7c8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:52.999029 [ 1276 ] {0917b6e7-b209-439e-984d-a96f489a91d5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52266) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:53.015591 [ 62673 ] {2e30b199-879c-4c5c-a790-4f79d31888ae} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52294) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:53.134326 [ 1276 ] {0917b6e7-b209-439e-984d-a96f489a91d5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:53.174072 [ 62673 ] {2e30b199-879c-4c5c-a790-4f79d31888ae} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:53.263355 [ 62780 ] {f83c40a5-ce59-427b-8010-c3696a84cd0a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52282) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:53.343697 [ 62780 ] {f83c40a5-ce59-427b-8010-c3696a84cd0a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:53.475501 [ 50481 ] {c5f8d272-385e-48f3-95b7-8ce5277cb36d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52306) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:53.520649 [ 50481 ] {c5f8d272-385e-48f3-95b7-8ce5277cb36d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:55.595408 [ 62685 ] {e91acccb-50d7-42c6-abb0-ec71fbffd297} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41672) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:55.668497 [ 62679 ] {7ec10d2a-aa9f-468f-bb1d-7f50744cd5a7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41682) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:55.672078 [ 62685 ] {e91acccb-50d7-42c6-abb0-ec71fbffd297} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:55.867612 [ 12026 ] {631a6e7c-3015-481b-98f6-aaa1e0180432} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41662) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:55.918705 [ 62679 ] {7ec10d2a-aa9f-468f-bb1d-7f50744cd5a7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:55.950663 [ 60037 ] {ad783f52-0a1f-4d1d-a065-9c1d6a2d7aad} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41696) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:56.028736 [ 12026 ] {631a6e7c-3015-481b-98f6-aaa1e0180432} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:56.090537 [ 60037 ] {ad783f52-0a1f-4d1d-a065-9c1d6a2d7aad} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:56.175221 [ 62675 ] {8b49d5f9-96ac-4912-b937-e82625dc40e9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41704) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:56.305645 [ 62675 ] {8b49d5f9-96ac-4912-b937-e82625dc40e9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:56.940152 [ 62771 ] {42ef7533-9f3a-402b-9f68-88e664525aa5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41728) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:57.399210 [ 69570 ] {62204d2c-0777-49fb-bff1-42a54764e568} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41712) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:57.404054 [ 5967 ] {4a2711b8-4a4c-4019-b5c8-a275f124fefc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41758) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:57.404152 [ 62678 ] {09108958-bd79-475f-a937-00fc4659610b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41764) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:57.404230 [ 62769 ] {a9093762-96bd-4456-a356-2a571f505c86} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41738) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:57.485522 [ 69570 ] {62204d2c-0777-49fb-bff1-42a54764e568} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:57.494871 [ 62677 ] {d0bf2b6f-21d1-4438-a9f8-238a96f99bf5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098784 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41754) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:57.497032 [ 62771 ] {42ef7533-9f3a-402b-9f68-88e664525aa5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:57.558504 [ 62677 ] {d0bf2b6f-21d1-4438-a9f8-238a96f99bf5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098784 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:57.596606 [ 5967 ] {4a2711b8-4a4c-4019-b5c8-a275f124fefc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:57.651878 [ 62769 ] {a9093762-96bd-4456-a356-2a571f505c86} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:57.694146 [ 62678 ] {09108958-bd79-475f-a937-00fc4659610b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:59.107003 [ 62672 ] {c945ed16-bb8e-4e2a-a8f4-c98e7f5ecf44} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103292 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41778) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:59.206901 [ 62672 ] {c945ed16-bb8e-4e2a-a8f4-c98e7f5ecf44} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103292 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:59.319162 [ 62680 ] {de25c4c8-18b8-4a0e-bed8-7fb0ee4f8ddb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41776) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:59.351330 [ 675 ] {fe2799a9-d264-4621-83b6-04b6d5ca4f1c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41794) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:59.396838 [ 675 ] {fe2799a9-d264-4621-83b6-04b6d5ca4f1c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:59.414451 [ 1276 ] {302baa7c-62f2-4bcb-9166-54f6d930c61c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41788) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:59.444242 [ 62680 ] {de25c4c8-18b8-4a0e-bed8-7fb0ee4f8ddb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:59.500656 [ 1276 ] {302baa7c-62f2-4bcb-9166-54f6d930c61c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:59.682068 [ 62673 ] {4b35c457-5ac4-42b9-8ddb-af5377f63d08} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41796) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:37:59.799043 [ 62673 ] {4b35c457-5ac4-42b9-8ddb-af5377f63d08} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:01.822972 [ 62679 ] {c5da2421-9b8b-4cbd-ba7d-7530f6627d0f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41816) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:01.936892 [ 62679 ] {c5da2421-9b8b-4cbd-ba7d-7530f6627d0f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:02.029171 [ 62780 ] {a3c6dc36-9cb9-4f05-baa5-f1d7759eb888} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41804) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:02.150084 [ 62780 ] {a3c6dc36-9cb9-4f05-baa5-f1d7759eb888} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:02.304623 [ 60037 ] {4331aa58-10f4-4ffb-95d2-8c597412bded} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103500 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41828) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:02.376580 [ 62685 ] {5d0b4e05-963f-42d2-a9ee-5509c156cf24} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41812) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:38:02.378777 [ 60037 ] {4331aa58-10f4-4ffb-95d2-8c597412bded} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103500 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:02.689329 [ 62685 ] {5d0b4e05-963f-42d2-a9ee-5509c156cf24} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:38:02.799620 [ 12026 ] {bc285907-08bf-47cd-9d84-e4bae20a364a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41822) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:02.975849 [ 12026 ] {bc285907-08bf-47cd-9d84-e4bae20a364a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:03.528575 [ 62771 ] {47a09f1c-df4e-437d-bb33-63e704c012fd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41884) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:03.584743 [ 62771 ] {47a09f1c-df4e-437d-bb33-63e704c012fd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:03.754871 [ 50481 ] {b7a98e91-1667-4f8e-b5f6-67c4658ef162} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41856) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:03.788233 [ 50481 ] {b7a98e91-1667-4f8e-b5f6-67c4658ef162} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:03.891543 [ 69571 ] {39707f76-82e0-4aa5-a822-c97222a8d643} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41896) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:04.017414 [ 62681 ] {030617bd-0ebc-474f-bb32-f83618b32759} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41890) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:04.076239 [ 62675 ] {a8abe414-8e1d-40d6-bbac-012342e9096c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103796 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41840) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:04.114904 [ 69570 ] {eedd04fd-c897-4395-9dcd-3b548afbad9c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41872) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:04.149361 [ 69571 ] {39707f76-82e0-4aa5-a822-c97222a8d643} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:04.164714 [ 62675 ] {a8abe414-8e1d-40d6-bbac-012342e9096c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103796 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:04.168908 [ 69570 ] {eedd04fd-c897-4395-9dcd-3b548afbad9c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:04.260288 [ 62681 ] {030617bd-0ebc-474f-bb32-f83618b32759} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:05.878613 [ 62769 ] {bc90fa82-4250-480f-9928-7e1cc15b01a5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60034) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:06.009742 [ 5967 ] {45c17999-d777-4043-9848-6ccbb45d2f37} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60054) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:38:06.014583 [ 1276 ] {a7f22d8a-db7d-46aa-bb78-c464b12aae79} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60074) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:06.015770 [ 62680 ] {c89ec6a6-c792-4cbf-a8ec-4142ce6c8e6d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60068) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:06.147664 [ 5967 ] {45c17999-d777-4043-9848-6ccbb45d2f37} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:38:06.149524 [ 1276 ] {a7f22d8a-db7d-46aa-bb78-c464b12aae79} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:06.200779 [ 62680 ] {c89ec6a6-c792-4cbf-a8ec-4142ce6c8e6d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:06.243258 [ 62672 ] {87e43504-6d69-4180-af6e-4f5f1e8222fe} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60050) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:06.265627 [ 62769 ] {bc90fa82-4250-480f-9928-7e1cc15b01a5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:06.340440 [ 62672 ] {87e43504-6d69-4180-af6e-4f5f1e8222fe} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:09.022527 [ 675 ] {1b979501-3918-4fab-be37-ef2e52ad8bc5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60090) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:09.207138 [ 62673 ] {7705dca0-fb51-44a5-9623-1309c1799ed1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60104) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:09.231330 [ 675 ] {1b979501-3918-4fab-be37-ef2e52ad8bc5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:09.253873 [ 62673 ] {7705dca0-fb51-44a5-9623-1309c1799ed1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:09.470845 [ 62677 ] {63c80054-1d1f-4a85-94ea-165f4d919e6a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60118) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:09.607329 [ 62678 ] {7f2ae41a-9078-4706-ad3d-c8f24af47afe} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60126) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:09.632483 [ 62677 ] {63c80054-1d1f-4a85-94ea-165f4d919e6a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:09.681335 [ 62678 ] {7f2ae41a-9078-4706-ad3d-c8f24af47afe} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:09.952589 [ 62685 ] {5a173fd4-7706-463b-968f-12e59dba0290} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60140) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:10.441213 [ 62685 ] {5a173fd4-7706-463b-968f-12e59dba0290} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:10.650950 [ 12026 ] {1dc2731e-d0eb-41b3-9b98-d30e4a9adfe2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60142) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:10.747999 [ 12026 ] {1dc2731e-d0eb-41b3-9b98-d30e4a9adfe2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:10.763162 [ 62679 ] {6a1e5b5e-7a96-41a0-8452-6a911b15e494} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60152) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:10.828020 [ 62675 ] {9e695707-f123-40a4-bf8d-438eef48619c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60188) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:10.840556 [ 62771 ] {9bb02495-1c91-4978-a573-3944c67021cf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60164) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:10.884853 [ 62675 ] {9e695707-f123-40a4-bf8d-438eef48619c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:10.911165 [ 62679 ] {6a1e5b5e-7a96-41a0-8452-6a911b15e494} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:10.929972 [ 62771 ] {9bb02495-1c91-4978-a573-3944c67021cf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:10.953181 [ 60037 ] {54dbe90c-8d47-413a-ba75-e2e98604759a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60162) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:11.002523 [ 62780 ] {da02e6ee-1730-4949-989c-1ba35ade7c06} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60180) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:11.061278 [ 62780 ] {da02e6ee-1730-4949-989c-1ba35ade7c06} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:11.098166 [ 60037 ] {54dbe90c-8d47-413a-ba75-e2e98604759a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:12.419191 [ 69570 ] {2e7539c5-2f11-411d-a18d-94d644fe4a19} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60194) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:38:12.565509 [ 69570 ] {2e7539c5-2f11-411d-a18d-94d644fe4a19} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:38:12.601140 [ 50481 ] {5b02c3de-a8c1-4848-81d6-d981a0c3b690} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60202) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:38:12.691373 [ 5967 ] {6b57f9a1-3cb4-460b-acc3-94b87eeb110e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60228) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:12.754162 [ 5967 ] {6b57f9a1-3cb4-460b-acc3-94b87eeb110e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:12.804525 [ 50481 ] {5b02c3de-a8c1-4848-81d6-d981a0c3b690} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:38:12.874089 [ 1276 ] {c1eab09e-6ac6-4e8e-92a9-3358775bbed7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60218) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:13.086649 [ 1276 ] {c1eab09e-6ac6-4e8e-92a9-3358775bbed7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:13.463733 [ 62769 ] {f269b20c-5739-4dd8-80dd-7fb7d5bb6646} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60244) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:13.537337 [ 62769 ] {f269b20c-5739-4dd8-80dd-7fb7d5bb6646} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:15.407282 [ 675 ] {c5f0b740-bd03-4643-a108-70573c9a999d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53068) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:15.518450 [ 62672 ] {c8839db5-3451-4fb6-86df-80e2189be68a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53060) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:15.644680 [ 675 ] {c5f0b740-bd03-4643-a108-70573c9a999d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:15.708997 [ 62672 ] {c8839db5-3451-4fb6-86df-80e2189be68a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:15.799844 [ 62677 ] {cb114915-404c-4d48-a194-195e50a03f26} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53082) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:16.043845 [ 62677 ] {cb114915-404c-4d48-a194-195e50a03f26} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:17.057617 [ 62673 ] {7eaa6ba8-1e9f-4dd2-83f0-42f5dc980bc3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53074) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:17.248637 [ 62680 ] {ee6d6a3c-9927-4c47-80c0-00501ee504a0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53148) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:17.270595 [ 62678 ] {fac673ab-0f04-4a74-9e1a-903c0e94e223} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53094) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:17.305929 [ 62673 ] {7eaa6ba8-1e9f-4dd2-83f0-42f5dc980bc3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:17.379645 [ 62675 ] {13341365-1e5a-4194-a9c0-4d47e4f5b974} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53116) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:17.380202 [ 62680 ] {ee6d6a3c-9927-4c47-80c0-00501ee504a0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:17.423595 [ 62678 ] {fac673ab-0f04-4a74-9e1a-903c0e94e223} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:17.434377 [ 62675 ] {13341365-1e5a-4194-a9c0-4d47e4f5b974} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:17.855172 [ 62679 ] {68466178-32b9-4a3b-9b35-4f1e9a26076c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53132) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:17.919601 [ 62771 ] {a0f151f6-0dc2-4d39-ba05-903b2f029bb9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53162) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:17.928750 [ 62679 ] {68466178-32b9-4a3b-9b35-4f1e9a26076c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:18.028418 [ 62771 ] {a0f151f6-0dc2-4d39-ba05-903b2f029bb9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:19.950063 [ 60037 ] {3840be55-987e-4d3b-9019-74f6d6a6886e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53166) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:20.034532 [ 60037 ] {3840be55-987e-4d3b-9019-74f6d6a6886e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:20.515628 [ 1276 ] {89aa5bd2-f6ed-4e89-944d-a1465601d71d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53194) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:20.880463 [ 1276 ] {89aa5bd2-f6ed-4e89-944d-a1465601d71d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:20.905394 [ 5967 ] {b7dffe7c-7e5c-4fe7-a0eb-c8547644d4a8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 81 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53174) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:38:21.084636 [ 62780 ] {6acbb115-1979-47e1-9d81-842dda4a00f5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1182718 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_10_10_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 7 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53190) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:38:21.151618 [ 62780 ] {6acbb115-1979-47e1-9d81-842dda4a00f5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1182718 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_10_10_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 7 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:38:21.175192 [ 5967 ] {b7dffe7c-7e5c-4fe7-a0eb-c8547644d4a8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 81 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:38:22.596153 [ 50481 ] {71617d8c-ea38-42d5-ade9-95a1d184075b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53202) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:22.731015 [ 62769 ] {ece620d5-bed6-4bb3-84a4-9a48256065f6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53196) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:22.816099 [ 62769 ] {ece620d5-bed6-4bb3-84a4-9a48256065f6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:22.929984 [ 50481 ] {71617d8c-ea38-42d5-ade9-95a1d184075b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:22.959578 [ 62681 ] {6518496b-a8cb-4694-8e6a-e6f7917d41e3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53206) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:23.155964 [ 62681 ] {6518496b-a8cb-4694-8e6a-e6f7917d41e3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:23.806566 [ 62673 ] {1d89d341-dfcd-47e3-9804-46fcc984ee3c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53226) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:23.814338 [ 69571 ] {e3cbe125-771c-4228-b37b-63b18fc0589a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53208) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:23.872466 [ 69571 ] {e3cbe125-771c-4228-b37b-63b18fc0589a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:23.887413 [ 675 ] {747d024c-d19e-4b62-b0a3-741afe72c46f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53220) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:23.923412 [ 62673 ] {1d89d341-dfcd-47e3-9804-46fcc984ee3c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:23.924042 [ 62677 ] {f894b3b9-ab36-498a-b2ef-987930318ed0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53228) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:23.959297 [ 675 ] {747d024c-d19e-4b62-b0a3-741afe72c46f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:23.979526 [ 62677 ] {f894b3b9-ab36-498a-b2ef-987930318ed0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:24.095070 [ 62678 ] {8967ff82-0bdc-4575-95ba-a18bb576e8ef} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53234) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:24.123090 [ 62679 ] {915d826f-5ac9-41ed-adfd-31031151f62b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103544 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53242) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:24.136974 [ 62678 ] {8967ff82-0bdc-4575-95ba-a18bb576e8ef} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:24.179153 [ 62679 ] {915d826f-5ac9-41ed-adfd-31031151f62b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103544 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:25.831378 [ 62675 ] {fbdfda16-d8db-40d8-a843-a9dbc3d9f957} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41668) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:25.878113 [ 60037 ] {04ce7999-4a4e-48f8-baed-c7a66867923d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41676) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:25.913777 [ 62675 ] {fbdfda16-d8db-40d8-a843-a9dbc3d9f957} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:26.028233 [ 60037 ] {04ce7999-4a4e-48f8-baed-c7a66867923d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:26.530114 [ 62672 ] {9aa39d24-5ab1-4665-a95a-4b3346d79290} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41684) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:26.596963 [ 62672 ] {9aa39d24-5ab1-4665-a95a-4b3346d79290} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:26.700885 [ 1276 ] {af30b44a-b0d8-4804-884c-f03cbe8946ea} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41680) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:26.779393 [ 1276 ] {af30b44a-b0d8-4804-884c-f03cbe8946ea} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:26.887050 [ 62685 ] {aa5708dc-7e43-4220-9071-bf5087ac2341} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 57.26 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53108) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:27.095202 [ 62685 ] {aa5708dc-7e43-4220-9071-bf5087ac2341} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 57.26 MiB (attempt to allocate chunk of 8388608 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:27.433294 [ 12026 ] {9cc5fe86-94bf-4c61-bdd9-b18cea1e4803} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.88 MiB (attempt to allocate chunk of 1181592 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 636 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53112) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:38:27.537971 [ 12026 ] {9cc5fe86-94bf-4c61-bdd9-b18cea1e4803} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.88 MiB (attempt to allocate chunk of 1181592 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 636 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:38:27.594117 [ 5967 ] {ef98951a-6b9b-45ab-a16d-0c19b2aa0a52} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41692) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:27.927656 [ 5967 ] {ef98951a-6b9b-45ab-a16d-0c19b2aa0a52} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:28.167232 [ 62769 ] {54cf4f37-af91-4c4e-ba87-5b81a65643ca} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41700) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:28.220681 [ 62769 ] {54cf4f37-af91-4c4e-ba87-5b81a65643ca} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:28.333073 [ 69570 ] {ae053a1c-511f-48ae-a3ed-b72dcb83d79d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.85 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_10_10_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 63 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53168) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:38:28.352108 [ 50481 ] {3c05effa-581e-442d-9183-66615b2fbe04} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41704) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:28.392967 [ 69570 ] {ae053a1c-511f-48ae-a3ed-b72dcb83d79d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.85 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_10_10_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 63 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:38:28.500066 [ 50481 ] {3c05effa-581e-442d-9183-66615b2fbe04} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:29.343037 [ 675 ] {7d90b354-0a66-4479-8df4-629f2eaf1ef4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41738) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:29.408049 [ 69571 ] {da7d31cf-2a5d-4de6-a35c-e9de197e5b63} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41726) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:29.474726 [ 675 ] {7d90b354-0a66-4479-8df4-629f2eaf1ef4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:29.622458 [ 69571 ] {da7d31cf-2a5d-4de6-a35c-e9de197e5b63} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:29.768372 [ 62677 ] {d9ffd889-0d2d-4ff6-bf7f-729f4c6b91e7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41748) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:29.768627 [ 62680 ] {40f21897-d0c6-42cf-b86f-f33f46b4f918} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41764) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:29.854740 [ 62680 ] {40f21897-d0c6-42cf-b86f-f33f46b4f918} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:29.879714 [ 62677 ] {d9ffd889-0d2d-4ff6-bf7f-729f4c6b91e7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:29.953365 [ 62673 ] {29a13265-1a43-4921-bc66-8b7cb62bf0bf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41728) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:30.031828 [ 62673 ] {29a13265-1a43-4921-bc66-8b7cb62bf0bf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:30.031866 [ 62681 ] {86357d01-5fa4-4da1-949b-1c6143481686} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41710) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:30.145660 [ 62681 ] {86357d01-5fa4-4da1-949b-1c6143481686} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:31.807449 [ 62678 ] {8ad7432c-6ef8-487a-8392-d73e7da7c10d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41768) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:31.928364 [ 62678 ] {8ad7432c-6ef8-487a-8392-d73e7da7c10d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:32.037069 [ 62679 ] {e8605523-be67-4266-af86-5bb55af805ca} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41776) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:32.262630 [ 62679 ] {e8605523-be67-4266-af86-5bb55af805ca} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:33.160313 [ 60037 ] {3cb2b75d-cb80-4a84-8b0d-afb7dac3ad6c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41790) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:33.552937 [ 60037 ] {3cb2b75d-cb80-4a84-8b0d-afb7dac3ad6c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:33.625769 [ 62675 ] {974afe7c-dd78-4250-8297-3f15caf06440} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41804) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:33.777898 [ 62675 ] {974afe7c-dd78-4250-8297-3f15caf06440} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:33.906473 [ 1276 ] {bc769ca1-3273-4a27-b449-881117445fd6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41810) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:33.995224 [ 1276 ] {bc769ca1-3273-4a27-b449-881117445fd6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:34.210256 [ 62685 ] {4a4cb916-2785-4c0b-825d-ed7ee05bd071} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41822) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:34.234632 [ 12026 ] {ed6a14d7-7471-4077-baf9-ea7a0f693476} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41836) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:34.236729 [ 62685 ] {4a4cb916-2785-4c0b-825d-ed7ee05bd071} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:34.384671 [ 12026 ] {ed6a14d7-7471-4077-baf9-ea7a0f693476} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:34.756833 [ 62769 ] {a010ad4f-215c-4b61-a945-cda50c1289e8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33002) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:34.772029 [ 69570 ] {bd818d64-672d-4232-80a0-19359bc20223} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33006) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:34.835700 [ 62769 ] {a010ad4f-215c-4b61-a945-cda50c1289e8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:34.873721 [ 69570 ] {bd818d64-672d-4232-80a0-19359bc20223} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:34.968391 [ 62672 ] {d9e79ca7-b25d-43d4-a888-5694d1bedb55} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32986) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:38:35.079026 [ 62672 ] {d9e79ca7-b25d-43d4-a888-5694d1bedb55} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:38:35.276841 [ 50481 ] {a10d271b-e135-4d3f-97cd-aa7f0e531315} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33014) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:35.460102 [ 50481 ] {a10d271b-e135-4d3f-97cd-aa7f0e531315} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:36.360065 [ 69571 ] {6c557d06-3d33-4446-aa28-55d2101c4e3a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33056) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:36.359977 [ 62780 ] {0684b9db-2423-4535-8f34-a767cb77e4cc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33050) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:38:36.429148 [ 69571 ] {6c557d06-3d33-4446-aa28-55d2101c4e3a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:36.491848 [ 675 ] {b43a82b0-bcfa-421a-bfd4-9a526f254a6d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33060) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:36.523015 [ 62780 ] {0684b9db-2423-4535-8f34-a767cb77e4cc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:38:36.675892 [ 675 ] {b43a82b0-bcfa-421a-bfd4-9a526f254a6d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:36.778390 [ 5967 ] {296898ff-c628-463d-9495-e32d9016657b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.89 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33030) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:36.887429 [ 62771 ] {e8e961c2-bd44-4461-9bf2-0a610cc96e1c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33036) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:36.919855 [ 5967 ] {296898ff-c628-463d-9495-e32d9016657b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.89 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:36.971661 [ 62771 ] {e8e961c2-bd44-4461-9bf2-0a610cc96e1c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:38.294259 [ 62681 ] {8cc04df5-76a9-44ae-b6f4-f45d440f3c5d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33070) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:38.358628 [ 62681 ] {8cc04df5-76a9-44ae-b6f4-f45d440f3c5d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:38.530951 [ 62673 ] {5e7faae1-a1c1-453b-943b-67c6dbb2398f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33074) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:38.643400 [ 62673 ] {5e7faae1-a1c1-453b-943b-67c6dbb2398f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:39.635143 [ 62677 ] {db440a50-6ca3-489a-86dc-ac9588c850ca} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33080) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:39.947067 [ 62677 ] {db440a50-6ca3-489a-86dc-ac9588c850ca} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:40.176047 [ 62679 ] {208bd814-d24c-4720-9f38-db2380e183f4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33098) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:40.266705 [ 62679 ] {208bd814-d24c-4720-9f38-db2380e183f4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:40.410605 [ 62678 ] {82e06d64-a9a0-48e4-a305-3842f483f288} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102376 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33090) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:40.438756 [ 60037 ] {938743e6-2eda-42c8-8b56-0b105d995e03} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33112) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:40.492150 [ 62678 ] {82e06d64-a9a0-48e4-a305-3842f483f288} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102376 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:40.558997 [ 60037 ] {938743e6-2eda-42c8-8b56-0b105d995e03} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:40.651580 [ 62675 ] {5cfd9e7b-b927-4700-abfc-2fbb2725f72d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33122) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:40.727003 [ 62675 ] {5cfd9e7b-b927-4700-abfc-2fbb2725f72d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:40.764671 [ 62769 ] {d08419dc-d117-4e43-96c3-e8bea9ac1618} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33142) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:40.853651 [ 62769 ] {d08419dc-d117-4e43-96c3-e8bea9ac1618} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:41.434261 [ 12026 ] {9699ddc5-391a-4aaa-98bc-fee39862ab4b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33128) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:41.447101 [ 62685 ] {3122a92c-0843-4e19-ba7a-3439c2c320f9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33152) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:41.515508 [ 62685 ] {3122a92c-0843-4e19-ba7a-3439c2c320f9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:41.564010 [ 12026 ] {9699ddc5-391a-4aaa-98bc-fee39862ab4b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:41.770930 [ 69570 ] {29a794a8-ef10-4247-9cd2-aa8da2ccb87e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33168) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:38:42.131601 [ 69570 ] {29a794a8-ef10-4247-9cd2-aa8da2ccb87e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:38:43.110576 [ 50481 ] {68143d9e-c600-4567-ac90-40b19a5410d5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33170) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:43.173312 [ 50481 ] {68143d9e-c600-4567-ac90-40b19a5410d5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:43.263388 [ 675 ] {075ac2da-80c7-461d-a3ae-179976c2ca16} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33204) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:43.278667 [ 62780 ] {ab809025-49bf-4d67-a0a9-675a74668b3f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33194) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:43.322868 [ 675 ] {075ac2da-80c7-461d-a3ae-179976c2ca16} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:43.387721 [ 62780 ] {ab809025-49bf-4d67-a0a9-675a74668b3f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:43.464308 [ 69571 ] {f727c27c-3cae-43db-9f2d-37b13366d986} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33186) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:43.533444 [ 69571 ] {f727c27c-3cae-43db-9f2d-37b13366d986} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:43.720961 [ 5967 ] {6a5f8768-95eb-45b1-94a4-59dc6ef5bec8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33218) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:43.838955 [ 5967 ] {6a5f8768-95eb-45b1-94a4-59dc6ef5bec8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:45.500273 [ 62681 ] {44654f10-5092-4c4c-8a67-50b9d81bbd4b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35052) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:45.587714 [ 62771 ] {cbcc5b03-1e44-46b4-a26b-162d57de9259} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35040) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:45.698443 [ 62681 ] {44654f10-5092-4c4c-8a67-50b9d81bbd4b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:45.722946 [ 62771 ] {cbcc5b03-1e44-46b4-a26b-162d57de9259} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:46.373323 [ 62673 ] {0545c14d-ff77-4091-823f-2245cef5e7ac} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103064 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35064) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:46.479730 [ 62673 ] {0545c14d-ff77-4091-823f-2245cef5e7ac} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103064 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:46.786424 [ 62678 ] {16f9186d-a45b-4117-a018-cb83370e684a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35092) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:47.092820 [ 62678 ] {16f9186d-a45b-4117-a018-cb83370e684a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:47.114878 [ 62679 ] {f6cfb217-21f9-47be-89e8-485fde25dc46} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35090) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:47.210653 [ 62677 ] {7c6e556e-264d-4f8c-9592-f2ec6d3594b2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35076) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:47.256559 [ 60037 ] {636dd5b2-729b-4e7b-bafe-44a4bd9dd5ca} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35094) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:47.255875 [ 62679 ] {f6cfb217-21f9-47be-89e8-485fde25dc46} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:47.287351 [ 62675 ] {206412e2-fb8e-49f6-82f1-7c292ce8ef21} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35098) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:47.359308 [ 60037 ] {636dd5b2-729b-4e7b-bafe-44a4bd9dd5ca} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:47.390828 [ 62677 ] {7c6e556e-264d-4f8c-9592-f2ec6d3594b2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:47.602756 [ 62675 ] {206412e2-fb8e-49f6-82f1-7c292ce8ef21} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:47.632089 [ 62685 ] {84e7c7dd-ead8-4bc8-b933-788198202958} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35118) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:47.719985 [ 62685 ] {84e7c7dd-ead8-4bc8-b933-788198202958} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:47.944185 [ 62769 ] {80c08106-3176-4fb6-94ec-cc0da8cfae5b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35110) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:48.031838 [ 62769 ] {80c08106-3176-4fb6-94ec-cc0da8cfae5b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:49.351178 [ 1276 ] {5f58c718-944e-4f62-98bd-d743419876d6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35126) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:49.414023 [ 62680 ] {e8fec559-51fd-4ea7-94f6-0050e47d1c35} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35142) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:49.432074 [ 1276 ] {5f58c718-944e-4f62-98bd-d743419876d6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:49.535734 [ 12026 ] {61a01656-ee86-4a01-8ddd-e8d9a859b215} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35122) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:49.617677 [ 62680 ] {e8fec559-51fd-4ea7-94f6-0050e47d1c35} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:49.665062 [ 12026 ] {61a01656-ee86-4a01-8ddd-e8d9a859b215} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:49.923348 [ 62780 ] {b77fd053-ee3c-4ac0-a49d-dd5d216f59ab} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35146) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:50.040355 [ 62780 ] {b77fd053-ee3c-4ac0-a49d-dd5d216f59ab} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:50.324061 [ 50481 ] {e85b388e-9ce3-48e5-a3d1-3618ea9049d3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35144) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:50.494439 [ 50481 ] {e85b388e-9ce3-48e5-a3d1-3618ea9049d3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:52.809541 [ 62681 ] {ec5f06b6-7ea6-4c5c-a4e3-cd40fc358b9b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35176) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:52.950374 [ 62681 ] {ec5f06b6-7ea6-4c5c-a4e3-cd40fc358b9b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:53.305839 [ 62771 ] {93f574ac-70b8-4490-a3c9-57255e1b8c87} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35190) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:53.319162 [ 5967 ] {f0b181ce-46cc-45a7-8550-92f5bfe4e93c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1181832 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 288 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35160) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:38:53.386063 [ 5967 ] {f0b181ce-46cc-45a7-8550-92f5bfe4e93c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1181832 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 288 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:38:53.427340 [ 62771 ] {93f574ac-70b8-4490-a3c9-57255e1b8c87} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:53.629716 [ 675 ] {afa9b119-51cd-4f3e-97f0-237d3b6b8415} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35204) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:53.688056 [ 675 ] {afa9b119-51cd-4f3e-97f0-237d3b6b8415} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:53.714698 [ 62673 ] {9023e6bb-e234-492c-a834-300baaa2f0e1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35210) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:53.831142 [ 62678 ] {d829aafe-4ec2-4f4c-9485-a33ca479a62a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35218) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:53.958463 [ 69571 ] {63352294-7367-405c-8d31-b3d73278447f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35194) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:54.069481 [ 62673 ] {9023e6bb-e234-492c-a834-300baaa2f0e1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:54.108233 [ 69571 ] {63352294-7367-405c-8d31-b3d73278447f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:54.415480 [ 62678 ] {d829aafe-4ec2-4f4c-9485-a33ca479a62a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:54.627624 [ 62679 ] {410cfc98-50d1-4c97-bb16-74c8456d10c1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35226) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:54.797624 [ 62679 ] {410cfc98-50d1-4c97-bb16-74c8456d10c1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:54.923065 [ 62685 ] {173f7c3d-1c53-4bc2-8aa9-9dfa1a37824d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.89 MiB (attempt to allocate chunk of 2099008 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35242) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:55.005695 [ 62685 ] {173f7c3d-1c53-4bc2-8aa9-9dfa1a37824d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.89 MiB (attempt to allocate chunk of 2099008 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:55.249391 [ 62769 ] {c53788ae-3a64-4cf1-af3d-bc91627b2d7a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47306) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:55.369621 [ 62769 ] {c53788ae-3a64-4cf1-af3d-bc91627b2d7a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:56.055055 [ 62680 ] {bc6b02ad-9ce5-4bf5-ad4f-5bac5bb2e729} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47328) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:56.096589 [ 1276 ] {047eb15b-f5b9-4534-8f67-c11aef0be997} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 288 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47316) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:38:56.159593 [ 62680 ] {bc6b02ad-9ce5-4bf5-ad4f-5bac5bb2e729} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:56.196057 [ 1276 ] {047eb15b-f5b9-4534-8f67-c11aef0be997} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 288 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:38:56.955931 [ 62780 ] {aa9fa25e-6ee4-4955-8c79-a8be4d9d374f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47342) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:57.222802 [ 62780 ] {aa9fa25e-6ee4-4955-8c79-a8be4d9d374f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:57.258581 [ 12026 ] {6cb002b8-0228-42cc-9eb8-2b43e38cdff8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47336) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:57.422361 [ 12026 ] {6cb002b8-0228-42cc-9eb8-2b43e38cdff8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:58.634455 [ 50481 ] {7965872e-96dd-4e2e-93f3-d14f238dbf00} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47344) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:58.761045 [ 50481 ] {7965872e-96dd-4e2e-93f3-d14f238dbf00} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:59.005633 [ 62672 ] {d8257769-d89a-43d8-8169-cf5f512e196a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 55.72 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 551 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35138) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:38:59.172887 [ 62681 ] {02e383dd-ac97-4796-9752-c6c07c82e1a2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47354) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:59.174070 [ 5967 ] {6683635b-f91c-4201-8e8f-34a582f7e469} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47362) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:59.226884 [ 62681 ] {02e383dd-ac97-4796-9752-c6c07c82e1a2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:59.237267 [ 5967 ] {6683635b-f91c-4201-8e8f-34a582f7e469} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:59.394152 [ 62771 ] {5d6a9faf-7cd6-417d-ad6b-0ef7a95aa125} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47376) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:59.464540 [ 62771 ] {5d6a9faf-7cd6-417d-ad6b-0ef7a95aa125} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:38:59.560387 [ 62672 ] {d8257769-d89a-43d8-8169-cf5f512e196a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 55.72 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 551 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:39:00.628393 [ 675 ] {665ed4d5-b959-4406-8ead-90c882b49b4c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47384) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:00.814222 [ 62673 ] {014cc3ab-08d2-428f-adcc-9a52faa50847} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47386) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:00.878594 [ 675 ] {665ed4d5-b959-4406-8ead-90c882b49b4c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:00.883634 [ 62673 ] {014cc3ab-08d2-428f-adcc-9a52faa50847} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:01.267814 [ 62679 ] {ad46b684-993a-4ebc-81bb-ad31ddc9225f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47400) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:01.459890 [ 69571 ] {15dc5f54-c8a5-4b96-bc50-5b8b1d151963} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 49 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47392) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:39:01.905418 [ 69571 ] {15dc5f54-c8a5-4b96-bc50-5b8b1d151963} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 49 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:39:01.915656 [ 62679 ] {ad46b684-993a-4ebc-81bb-ad31ddc9225f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:02.596047 [ 62769 ] {818efef4-51a4-407b-a995-853fc53f005e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47426) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:02.630492 [ 62680 ] {0e094cf3-c354-4090-aa68-5b5593d44012} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47428) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:02.679958 [ 62769 ] {818efef4-51a4-407b-a995-853fc53f005e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:02.709606 [ 62680 ] {0e094cf3-c354-4090-aa68-5b5593d44012} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:03.484612 [ 60037 ] {747269b9-0363-4081-a809-d0bb2aade3b6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47436) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:03.742132 [ 60037 ] {747269b9-0363-4081-a809-d0bb2aade3b6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:03.811164 [ 62675 ] {f4bbf6f5-a04c-4969-aa59-53dcb75385ef} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47442) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:03.892850 [ 62675 ] {f4bbf6f5-a04c-4969-aa59-53dcb75385ef} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:05.126786 [ 62677 ] {5eb21d7b-d7a0-4d8e-ba2b-84c9bc8fb470} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.75 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_10_10_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 47 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35222) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:39:05.246326 [ 62677 ] {5eb21d7b-d7a0-4d8e-ba2b-84c9bc8fb470} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.75 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_10_10_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 47 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:39:05.527052 [ 5967 ] {1de883cc-969d-4102-9a2a-0218674e3adc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103342 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41232) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:05.578161 [ 5967 ] {1de883cc-969d-4102-9a2a-0218674e3adc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103342 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:05.630500 [ 12026 ] {9709685e-8a71-4220-a782-a7766374b741} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41210) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:05.647008 [ 69570 ] {ba877a77-b2c7-4519-808d-9f825a60a4bd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41198) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:05.738389 [ 69570 ] {ba877a77-b2c7-4519-808d-9f825a60a4bd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:05.758361 [ 1276 ] {7894b09a-9070-45fa-ab87-9195eab9a15f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41218) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:05.787255 [ 12026 ] {9709685e-8a71-4220-a782-a7766374b741} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:05.809810 [ 1276 ] {7894b09a-9070-45fa-ab87-9195eab9a15f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:05.977167 [ 50481 ] {8f426425-4d41-4513-a08b-fb21c2814c3f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.39 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41220) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:39:06.052558 [ 50481 ] {8f426425-4d41-4513-a08b-fb21c2814c3f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.39 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:39:07.126285 [ 62771 ] {844e9775-fce1-4cdb-8a2b-7f576698e831} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41244) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:07.231602 [ 62771 ] {844e9775-fce1-4cdb-8a2b-7f576698e831} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:07.233325 [ 62780 ] {f9110ac2-ff6b-4237-a559-1a7cf0aefd0a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41250) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:07.294392 [ 62672 ] {fd631533-a390-40d6-b320-72af1eb89a12} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41236) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:07.298701 [ 62780 ] {f9110ac2-ff6b-4237-a559-1a7cf0aefd0a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:07.366804 [ 62672 ] {fd631533-a390-40d6-b320-72af1eb89a12} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:07.445049 [ 62681 ] {80a56b26-7b59-4198-bb47-31f908c98119} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41258) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:39:07.516398 [ 62681 ] {80a56b26-7b59-4198-bb47-31f908c98119} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:39:07.987191 [ 62769 ] {c876b1d9-1d5f-4da0-bbc3-9a1815add6fb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41266) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:08.044991 [ 62769 ] {c876b1d9-1d5f-4da0-bbc3-9a1815add6fb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:08.103180 [ 69571 ] {075d09e0-e0d0-47fc-b42f-f894c612725f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41264) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:08.243621 [ 69571 ] {075d09e0-e0d0-47fc-b42f-f894c612725f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:09.712265 [ 62680 ] {3ce32c5a-9d0e-4c65-8373-fae33424fdc3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41272) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:09.781484 [ 62680 ] {3ce32c5a-9d0e-4c65-8373-fae33424fdc3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:09.958795 [ 62685 ] {9ea96d20-0d12-42ce-a16f-d78aaf166ab2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 55.12 MiB (attempt to allocate chunk of 1181848 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 482 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47410) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:39:10.109055 [ 62685 ] {9ea96d20-0d12-42ce-a16f-d78aaf166ab2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 55.12 MiB (attempt to allocate chunk of 1181848 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 482 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:39:10.156318 [ 60037 ] {454950cf-71a7-485c-a19e-77d7063c667e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41284) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:10.249567 [ 60037 ] {454950cf-71a7-485c-a19e-77d7063c667e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:10.585289 [ 62678 ] {81ce7bcc-bfc9-4f5c-9cfc-eac3832b9485} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.37 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47398) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:39:10.687272 [ 62678 ] {81ce7bcc-bfc9-4f5c-9cfc-eac3832b9485} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.37 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:39:11.034211 [ 62675 ] {be490c66-fe68-49f5-9e42-10e83ab05ed0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41286) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:11.137591 [ 62675 ] {be490c66-fe68-49f5-9e42-10e83ab05ed0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:11.396490 [ 69570 ] {4acf4aa2-1fd8-460b-8df9-f7d44798fd2b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41312) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:11.427505 [ 675 ] {ead5f798-4b1b-4711-88a5-5158293ec996} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41298) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:11.470027 [ 5967 ] {a6eb1f5d-8a50-49a5-a343-9e4f31707610} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41306) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:11.475644 [ 69570 ] {4acf4aa2-1fd8-460b-8df9-f7d44798fd2b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:11.505434 [ 12026 ] {5d26acd7-0b50-4ea5-a40a-bfeb25d58773} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41324) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:11.516980 [ 5967 ] {a6eb1f5d-8a50-49a5-a343-9e4f31707610} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:11.660821 [ 675 ] {ead5f798-4b1b-4711-88a5-5158293ec996} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:11.730283 [ 12026 ] {5d26acd7-0b50-4ea5-a40a-bfeb25d58773} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:12.089918 [ 1276 ] {d4ca918a-d386-456f-ab89-cae8203f26c4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102632 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41326) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:12.307279 [ 1276 ] {d4ca918a-d386-456f-ab89-cae8203f26c4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102632 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:13.251310 [ 62780 ] {3eddffae-cb3d-4e34-8ad3-56e37ab60106} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41340) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:13.445674 [ 62780 ] {3eddffae-cb3d-4e34-8ad3-56e37ab60106} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:13.752090 [ 62672 ] {ab61c232-3738-47eb-a6b6-b6835493dbfe} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41342) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:13.809299 [ 50481 ] {560f2af0-a23b-44fd-a725-029805d60ccc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41330) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:13.828623 [ 62672 ] {ab61c232-3738-47eb-a6b6-b6835493dbfe} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:13.833635 [ 62771 ] {e4762c18-b200-48ba-bc47-02f0d98386a6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41336) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:13.948964 [ 62771 ] {e4762c18-b200-48ba-bc47-02f0d98386a6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:14.017994 [ 50481 ] {560f2af0-a23b-44fd-a725-029805d60ccc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:14.137883 [ 62681 ] {3ead8c40-52bd-4eb9-9cc8-0a33a550a178} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41356) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:14.431058 [ 62769 ] {758c75ec-5aca-4957-8e0f-0281b4d0267e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54748) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:14.458738 [ 62681 ] {3ead8c40-52bd-4eb9-9cc8-0a33a550a178} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:14.727088 [ 62769 ] {758c75ec-5aca-4957-8e0f-0281b4d0267e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:16.575571 [ 62680 ] {ab13393e-37a2-45b1-90ce-7849c825a6ff} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54770) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:16.748390 [ 69571 ] {90307881-6def-4108-9f0b-69da17b70786} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54762) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:16.841789 [ 69571 ] {90307881-6def-4108-9f0b-69da17b70786} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:16.847642 [ 62680 ] {ab13393e-37a2-45b1-90ce-7849c825a6ff} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:17.068036 [ 62673 ] {41a8850e-473f-458d-a7f3-38f324eed894} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54786) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:17.142920 [ 62673 ] {41a8850e-473f-458d-a7f3-38f324eed894} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:17.313300 [ 60037 ] {dd7a0ae8-074f-4027-896d-bef16ea5a003} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54798) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:17.370801 [ 62677 ] {63f15ce8-cf92-42d7-a640-fb88c9ed1d05} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54806) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:17.406590 [ 60037 ] {dd7a0ae8-074f-4027-896d-bef16ea5a003} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:17.420497 [ 62677 ] {63f15ce8-cf92-42d7-a640-fb88c9ed1d05} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:18.073863 [ 62685 ] {c5bade4b-67d6-40c2-9316-11589ce6a540} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2099008 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54820) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:18.078145 [ 62675 ] {9f5fa175-b9e3-4777-bda7-2b627302162d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54832) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:18.090330 [ 62678 ] {8298d715-4405-4dae-bffb-4f3346ae766f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54814) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:18.151129 [ 62678 ] {8298d715-4405-4dae-bffb-4f3346ae766f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:18.171399 [ 62675 ] {9f5fa175-b9e3-4777-bda7-2b627302162d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:18.176865 [ 62685 ] {c5bade4b-67d6-40c2-9316-11589ce6a540} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2099008 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:18.218797 [ 62679 ] {960280fb-d516-41fc-a22b-28ed6ff85d6a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54828) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:18.242154 [ 62679 ] {960280fb-d516-41fc-a22b-28ed6ff85d6a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:18.727238 [ 69570 ] {ba850d8b-6761-45e2-b78f-9c67f2c0f397} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54846) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:18.819413 [ 69570 ] {ba850d8b-6761-45e2-b78f-9c67f2c0f397} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:20.370386 [ 1276 ] {158b984a-8eb1-40a9-830f-89cd9ea717c3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54858) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:20.422552 [ 1276 ] {158b984a-8eb1-40a9-830f-89cd9ea717c3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:20.431054 [ 12026 ] {42d72572-b908-4f49-bb4e-65746bd38ed8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578136 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54852) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:20.519133 [ 12026 ] {42d72572-b908-4f49-bb4e-65746bd38ed8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578136 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:20.519529 [ 62672 ] {dc118590-514c-4990-9359-3b84073e32b5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54866) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:20.814656 [ 62672 ] {dc118590-514c-4990-9359-3b84073e32b5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:20.940763 [ 5967 ] {d60e905f-7b9a-4879-a1c3-01e658475a45} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54878) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:21.088145 [ 50481 ] {96b6c629-fb31-4542-99b5-3ba15035cac8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54894) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:21.212140 [ 5967 ] {d60e905f-7b9a-4879-a1c3-01e658475a45} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:21.243593 [ 50481 ] {96b6c629-fb31-4542-99b5-3ba15035cac8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:22.268609 [ 62771 ] {86c0d69d-7b5f-4d17-b5db-56340662966a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102862 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54904) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:22.349034 [ 62771 ] {86c0d69d-7b5f-4d17-b5db-56340662966a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102862 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:23.145664 [ 62769 ] {26f2a6c5-3385-4948-810d-0a516821236a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54928) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:23.217115 [ 62680 ] {a3035f31-0a69-49be-b37f-9c1fd655675f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54936) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:23.303648 [ 62680 ] {a3035f31-0a69-49be-b37f-9c1fd655675f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:23.360425 [ 62769 ] {26f2a6c5-3385-4948-810d-0a516821236a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:23.434826 [ 62780 ] {3a83a730-a41f-4ed4-9fcb-25cea3d076fb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54916) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:23.856778 [ 62780 ] {3a83a730-a41f-4ed4-9fcb-25cea3d076fb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:23.921905 [ 69571 ] {dd7cb2ef-d5fb-4b8d-a89d-20abe0ec0f62} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54958) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:23.923701 [ 62681 ] {b1c7f20f-ea1e-45a9-8a44-99d114a6e82a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54948) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:23.989561 [ 62681 ] {b1c7f20f-ea1e-45a9-8a44-99d114a6e82a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:23.990941 [ 62677 ] {313d0b93-2da0-4257-ad1d-9eb91053d25a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54968) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:24.044808 [ 62677 ] {313d0b93-2da0-4257-ad1d-9eb91053d25a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:24.052996 [ 69571 ] {dd7cb2ef-d5fb-4b8d-a89d-20abe0ec0f62} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:24.367652 [ 62685 ] {bc949996-af66-42c4-ae21-5aa143662b2d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58042) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:24.395325 [ 62678 ] {7133a561-c4bd-4d83-8ddc-c1aced83ad9a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54972) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:24.532091 [ 60037 ] {85fbfe53-0365-4f8e-92af-421d2480eb6a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54988) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:24.594590 [ 60037 ] {85fbfe53-0365-4f8e-92af-421d2480eb6a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:24.595732 [ 62685 ] {bc949996-af66-42c4-ae21-5aa143662b2d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:24.619561 [ 62678 ] {7133a561-c4bd-4d83-8ddc-c1aced83ad9a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:25.193362 [ 62679 ] {53d39d09-48a8-4026-8193-01116bfcdf36} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58058) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:25.284228 [ 62679 ] {53d39d09-48a8-4026-8193-01116bfcdf36} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:26.466542 [ 62675 ] {017a0c41-d7b9-4e3b-9c44-29999aed9169} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58068) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:26.564759 [ 62675 ] {017a0c41-d7b9-4e3b-9c44-29999aed9169} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:26.815896 [ 69570 ] {e5f12a82-8993-4281-b5a6-55cf01febf5a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58072) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:26.819151 [ 12026 ] {57975c44-796a-424a-a109-a8817722e782} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58076) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:26.899152 [ 69570 ] {e5f12a82-8993-4281-b5a6-55cf01febf5a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:27.195723 [ 12026 ] {57975c44-796a-424a-a109-a8817722e782} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:27.243626 [ 1276 ] {077d7e4c-5ff8-4694-bdad-18a8d50a1eb1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58090) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:27.324396 [ 1276 ] {077d7e4c-5ff8-4694-bdad-18a8d50a1eb1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:27.429182 [ 62672 ] {c246095a-2da6-4059-9a6f-f7de0f8d1ad6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58102) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:27.548803 [ 62672 ] {c246095a-2da6-4059-9a6f-f7de0f8d1ad6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:28.589935 [ 50481 ] {6ac6744e-d81e-43f5-b54a-10a3d7b878eb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58108) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:28.683517 [ 50481 ] {6ac6744e-d81e-43f5-b54a-10a3d7b878eb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:29.636446 [ 62680 ] {d3f49968-c90b-47f9-b950-6a48e43d348e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58124) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:29.941089 [ 62680 ] {d3f49968-c90b-47f9-b950-6a48e43d348e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:30.106071 [ 5967 ] {37695d51-aaff-404f-8df9-420a6bba649e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58120) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:30.177897 [ 5967 ] {37695d51-aaff-404f-8df9-420a6bba649e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:30.476529 [ 62771 ] {35b5e350-3f93-4e06-a8e8-377307fa5f85} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58130) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:30.541495 [ 62771 ] {35b5e350-3f93-4e06-a8e8-377307fa5f85} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:30.676635 [ 62681 ] {077df795-d1c7-4fe5-a726-f5e7034e761a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58166) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:30.740061 [ 62681 ] {077df795-d1c7-4fe5-a726-f5e7034e761a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:30.774111 [ 62780 ] {d23722bf-bcbe-47c0-a988-e54b76069c00} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1181624 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 365 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58144) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:39:30.893263 [ 62780 ] {d23722bf-bcbe-47c0-a988-e54b76069c00} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1181624 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 365 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:39:31.052895 [ 62769 ] {6ca3d70c-99a2-4437-a531-88e40151497e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58158) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:31.158334 [ 62769 ] {6ca3d70c-99a2-4437-a531-88e40151497e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:31.442344 [ 675 ] {1dbbe2d6-eb05-4b01-87e3-6d5be0430fa6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58172) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:31.446931 [ 62673 ] {c1f3362f-1581-4ffa-bbef-3059e867c3f3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58184) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:31.519019 [ 675 ] {1dbbe2d6-eb05-4b01-87e3-6d5be0430fa6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:31.537854 [ 62677 ] {3038afbc-daf9-411b-8f13-468f1e67b072} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58186) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:31.616973 [ 62677 ] {3038afbc-daf9-411b-8f13-468f1e67b072} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:31.843493 [ 62673 ] {c1f3362f-1581-4ffa-bbef-3059e867c3f3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:33.003687 [ 62678 ] {9c52b515-72cc-4dca-b186-fae691a17f9e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 1578952 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58196) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:33.096563 [ 62678 ] {9c52b515-72cc-4dca-b186-fae691a17f9e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 1578952 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:33.333408 [ 60037 ] {96799720-07f1-40bd-bc71-696a1d01dc47} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58236) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:33.363910 [ 60037 ] {96799720-07f1-40bd-bc71-696a1d01dc47} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:33.431100 [ 62675 ] {9782919d-6391-43ef-85ff-7282534adb65} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58248) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:33.514506 [ 62675 ] {9782919d-6391-43ef-85ff-7282534adb65} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:33.831163 [ 62679 ] {d684fabf-abf9-4864-a058-0b2d94c48bad} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58224) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:33.909348 [ 62679 ] {d684fabf-abf9-4864-a058-0b2d94c48bad} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:33.960047 [ 62685 ] {eaad354b-177c-4c08-97d6-f6f541aeab1c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58212) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:34.027360 [ 62685 ] {eaad354b-177c-4c08-97d6-f6f541aeab1c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:34.363172 [ 69570 ] {ff0c6194-d335-4c76-8258-a1b5ad7c25f5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58254) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:34.452386 [ 69570 ] {ff0c6194-d335-4c76-8258-a1b5ad7c25f5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:35.487725 [ 12026 ] {65acf412-9775-488b-8355-d930cc3a1c40} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46192) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:35.643327 [ 12026 ] {65acf412-9775-488b-8355-d930cc3a1c40} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:35.903898 [ 1276 ] {fe6a9a97-a5d1-4baa-a3c4-1bc1a63a05b6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46202) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:35.961566 [ 1276 ] {fe6a9a97-a5d1-4baa-a3c4-1bc1a63a05b6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:36.533331 [ 62680 ] {f95bfc12-3250-40ac-b943-2c2529f5463c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46208) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:36.589730 [ 50481 ] {da95ec07-0524-46ab-840a-dfd39135ab29} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46226) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:36.694673 [ 62672 ] {8db123f5-683e-4c4c-a5b0-d8d44d09419f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46210) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:36.711587 [ 62680 ] {f95bfc12-3250-40ac-b943-2c2529f5463c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:36.805153 [ 62672 ] {8db123f5-683e-4c4c-a5b0-d8d44d09419f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:36.810137 [ 50481 ] {da95ec07-0524-46ab-840a-dfd39135ab29} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:37.415165 [ 62681 ] {a7c44e03-2a0b-42bd-9cb5-bb95058a27a7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46242) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:37.469165 [ 62681 ] {a7c44e03-2a0b-42bd-9cb5-bb95058a27a7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:38.024530 [ 675 ] {c878ec8e-3791-4953-869c-194889b5e040} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46270) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:38.030228 [ 5967 ] {05304a32-676a-4173-ad90-e54f74497026} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46256) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:38.121972 [ 5967 ] {05304a32-676a-4173-ad90-e54f74497026} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:38.360574 [ 675 ] {c878ec8e-3791-4953-869c-194889b5e040} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:38.781658 [ 62769 ] {90974f35-77cd-4665-ad99-e3bf9399f292} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46258) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:38.902115 [ 62769 ] {90974f35-77cd-4665-ad99-e3bf9399f292} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:40.500119 [ 60037 ] {355d8160-c9d4-4726-bd5a-2fbe86632e9c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46326) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:40.668966 [ 62678 ] {22ade041-5e9b-4915-a21a-f117adbaa72c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46314) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:40.722937 [ 62679 ] {6aafaf45-91d6-441b-a517-f7523a35a7bf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46354) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:40.776682 [ 60037 ] {355d8160-c9d4-4726-bd5a-2fbe86632e9c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:40.784711 [ 62678 ] {22ade041-5e9b-4915-a21a-f117adbaa72c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:40.852676 [ 62673 ] {b2e1b994-54f0-44c5-abc9-d5d9d39eb31e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46298) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:40.955702 [ 62679 ] {6aafaf45-91d6-441b-a517-f7523a35a7bf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:41.066350 [ 62673 ] {b2e1b994-54f0-44c5-abc9-d5d9d39eb31e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:41.186812 [ 62675 ] {d2a30617-d778-47e2-a8d0-77ce5aa2e1eb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46342) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:41.278539 [ 62675 ] {d2a30617-d778-47e2-a8d0-77ce5aa2e1eb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:41.616531 [ 62685 ] {f7c333b4-d0c4-42fc-adc1-2a601bb8dfa9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46356) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:41.671735 [ 62685 ] {f7c333b4-d0c4-42fc-adc1-2a601bb8dfa9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:42.719928 [ 12026 ] {25518b6d-15ea-482c-b1b6-1d2f006780a8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46382) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:42.844921 [ 12026 ] {25518b6d-15ea-482c-b1b6-1d2f006780a8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:42.938556 [ 69570 ] {e36d6afd-cc52-48cc-ba66-1928cf9813af} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578136 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46370) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:42.993620 [ 69570 ] {e36d6afd-cc52-48cc-ba66-1928cf9813af} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578136 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:43.017752 [ 1276 ] {48aa49f5-a86c-4d8e-9121-2b3eab55e818} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46398) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:43.136936 [ 62680 ] {306ca0d8-02fe-4dcd-9a74-84cf303de36c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46406) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:43.240874 [ 1276 ] {48aa49f5-a86c-4d8e-9121-2b3eab55e818} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:43.281566 [ 62680 ] {306ca0d8-02fe-4dcd-9a74-84cf303de36c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:43.721519 [ 62771 ] {663c6998-e4ad-4a75-aaad-fb9a93d1de92} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46418) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:44.139581 [ 62672 ] {3d386ba3-3b2b-430c-ba43-97c30f41688a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46420) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:44.145720 [ 62771 ] {663c6998-e4ad-4a75-aaad-fb9a93d1de92} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:44.226883 [ 62672 ] {3d386ba3-3b2b-430c-ba43-97c30f41688a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:44.638956 [ 62780 ] {e7cb15e8-9c0a-426e-98d7-52838a4abee7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53006) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:44.663094 [ 50481 ] {3619396b-389c-4abb-974a-b8ede3119a91} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46432) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:39:44.759172 [ 62780 ] {e7cb15e8-9c0a-426e-98d7-52838a4abee7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:44.816104 [ 50481 ] {3619396b-389c-4abb-974a-b8ede3119a91} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:39:44.979100 [ 69571 ] {9b808c83-a3bd-454c-b35e-f14fd57b4f86} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53014) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:45.020591 [ 69571 ] {9b808c83-a3bd-454c-b35e-f14fd57b4f86} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:46.575603 [ 62681 ] {32bd831a-6d51-48fc-928c-e5f12e3eb246} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103288 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53022) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:46.648726 [ 62769 ] {ef617cb6-818f-4ca7-adcc-22ff4228a424} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53016) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:46.679262 [ 62681 ] {32bd831a-6d51-48fc-928c-e5f12e3eb246} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103288 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:46.732698 [ 62678 ] {4fd51b70-f2de-402d-beae-ecf7c54a488a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53040) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:46.746218 [ 675 ] {7b6ad295-ba1f-44ec-be6b-84565fff534b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53028) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:46.751465 [ 62673 ] {6483bf8f-fbf2-44f8-8c27-c641299d9dd0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53042) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:46.785522 [ 62678 ] {4fd51b70-f2de-402d-beae-ecf7c54a488a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:46.927413 [ 675 ] {7b6ad295-ba1f-44ec-be6b-84565fff534b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:46.983448 [ 62769 ] {ef617cb6-818f-4ca7-adcc-22ff4228a424} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:46.994322 [ 62673 ] {6483bf8f-fbf2-44f8-8c27-c641299d9dd0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:47.092778 [ 62679 ] {763a6bf6-de43-4dc3-90f1-5d03ad3c447f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53046) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:47.167145 [ 62679 ] {763a6bf6-de43-4dc3-90f1-5d03ad3c447f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:48.340642 [ 62675 ] {b13b1b7c-72c7-4746-8c8c-e5fa521b9bc4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53088) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:48.415041 [ 69570 ] {a30ffb1a-2718-489a-8415-8704f21e1bed} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578792 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53096) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:48.490552 [ 62675 ] {b13b1b7c-72c7-4746-8c8c-e5fa521b9bc4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:48.616448 [ 69570 ] {a30ffb1a-2718-489a-8415-8704f21e1bed} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578792 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:48.724756 [ 62677 ] {b2f3c730-efda-4719-adfb-60b3d18da2aa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.11 MiB (attempt to allocate chunk of 1183112 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46284) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:39:48.880201 [ 60037 ] {eb3f08c5-13c2-4de4-b15d-f108640810d6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53078) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:48.969622 [ 62685 ] {ab8343cf-15fe-46f7-8a04-ecb441ed0219} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53062) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:49.018363 [ 62685 ] {ab8343cf-15fe-46f7-8a04-ecb441ed0219} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:49.060118 [ 60037 ] {eb3f08c5-13c2-4de4-b15d-f108640810d6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:49.086433 [ 62677 ] {b2f3c730-efda-4719-adfb-60b3d18da2aa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.11 MiB (attempt to allocate chunk of 1183112 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:39:50.421777 [ 62672 ] {601c0095-e334-47aa-acdf-95ec64cdad7d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53132) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:50.546779 [ 12026 ] {c330414d-5531-413d-8325-7b0eb4a23714} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53122) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:50.657465 [ 62680 ] {38a6f208-2ea8-4251-adf1-44d0f7b915b4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53108) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:50.681228 [ 62672 ] {601c0095-e334-47aa-acdf-95ec64cdad7d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:50.727225 [ 50481 ] {126bd200-68a3-4b44-93ec-180ed4013b2e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53144) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:50.746890 [ 62780 ] {f11cdafc-ec21-4f2d-ad3a-4d4c37a4585e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53142) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:50.794474 [ 12026 ] {c330414d-5531-413d-8325-7b0eb4a23714} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:50.803428 [ 62780 ] {f11cdafc-ec21-4f2d-ad3a-4d4c37a4585e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:50.881008 [ 50481 ] {126bd200-68a3-4b44-93ec-180ed4013b2e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:50.907777 [ 62680 ] {38a6f208-2ea8-4251-adf1-44d0f7b915b4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:53.497241 [ 62769 ] {cf2c6786-dfcc-41b7-a826-034dd8e17aff} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53178) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:53.540771 [ 62681 ] {5251e05f-006a-4be5-b98f-d0a909e9d658} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53154) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:53.580291 [ 675 ] {f9bb5218-d329-4692-9a0e-986d345b5c26} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53182) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:53.408602 [ 1276 ] {977a275a-3333-467f-94fd-2b0a13c1d8b3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53168) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:39:53.626372 [ 62681 ] {5251e05f-006a-4be5-b98f-d0a909e9d658} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:53.636126 [ 675 ] {f9bb5218-d329-4692-9a0e-986d345b5c26} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:53.641258 [ 62769 ] {cf2c6786-dfcc-41b7-a826-034dd8e17aff} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:53.872301 [ 1276 ] {977a275a-3333-467f-94fd-2b0a13c1d8b3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:39:55.862730 [ 62673 ] {0327459c-d0f6-4e5b-958d-c2cb37bb27ee} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56400) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:55.921193 [ 62673 ] {0327459c-d0f6-4e5b-958d-c2cb37bb27ee} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:56.081546 [ 62679 ] {47598fe7-1c38-4026-ac47-9e3cc5b70bc4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56406) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:56.119181 [ 62685 ] {a312ceb9-bcf6-4b08-ae67-8076e5e10562} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56422) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:56.143213 [ 62675 ] {27d48d0d-ba4a-4efc-9374-b774ad0588ba} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56412) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:56.169666 [ 62679 ] {47598fe7-1c38-4026-ac47-9e3cc5b70bc4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:56.200769 [ 62685 ] {a312ceb9-bcf6-4b08-ae67-8076e5e10562} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:56.265117 [ 62675 ] {27d48d0d-ba4a-4efc-9374-b774ad0588ba} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:56.274599 [ 60037 ] {f5af4b09-246e-46f6-aba7-5186a4c611bf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56432) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:56.323436 [ 60037 ] {f5af4b09-246e-46f6-aba7-5186a4c611bf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:57.360399 [ 62677 ] {a6653db5-2c81-47c9-bf8e-74bf03762585} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56436) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:57.467599 [ 62677 ] {a6653db5-2c81-47c9-bf8e-74bf03762585} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:57.486116 [ 62672 ] {35d7e1e7-0db5-40b8-8ffb-b41160efd6eb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56444) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:57.546301 [ 69570 ] {c80d6c02-b5ab-4de7-9bc0-0b288cbf3081} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56452) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:57.569588 [ 5967 ] {18fd53c8-ced3-4a84-9feb-f099f588baf0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56462) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:57.625879 [ 62672 ] {35d7e1e7-0db5-40b8-8ffb-b41160efd6eb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:57.645173 [ 5967 ] {18fd53c8-ced3-4a84-9feb-f099f588baf0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:57.658629 [ 69570 ] {c80d6c02-b5ab-4de7-9bc0-0b288cbf3081} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:57.718844 [ 62771 ] {efeb1155-7c5e-46e1-bacf-f9cb1eadd5b4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56464) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:57.775793 [ 62771 ] {efeb1155-7c5e-46e1-bacf-f9cb1eadd5b4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:59.038071 [ 62680 ] {40bcca0b-a693-448f-a918-c5bb199117ae} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56496) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:39:59.116070 [ 62680 ] {40bcca0b-a693-448f-a918-c5bb199117ae} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:00.254468 [ 50481 ] {ac4589b3-df25-4a21-ade2-04c1e6b75b75} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56470) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:00.328064 [ 50481 ] {ac4589b3-df25-4a21-ade2-04c1e6b75b75} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:00.395241 [ 62780 ] {987ac900-051e-4a3d-8a01-a936ef3908a0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56486) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:00.663345 [ 62780 ] {987ac900-051e-4a3d-8a01-a936ef3908a0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:01.625935 [ 62675 ] {8760fdc1-5919-44fe-b72d-76c22a2678aa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56536) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:01.738908 [ 62675 ] {8760fdc1-5919-44fe-b72d-76c22a2678aa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:01.791764 [ 62681 ] {9c069271-19e9-4c4c-b788-6cd1333ed754} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56520) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:01.841741 [ 62678 ] {9256da3f-d493-49b3-a009-6b0996865d57} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.75 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 97 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53162) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:40:01.923356 [ 62681 ] {9c069271-19e9-4c4c-b788-6cd1333ed754} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:01.952645 [ 675 ] {3dcf68c2-5ceb-4630-841f-4793ca6b77ab} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56522) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:02.023077 [ 62679 ] {aa341125-83db-422f-81ba-bcf14b491ba5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56532) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:02.049108 [ 62673 ] {d90933c7-4d7d-4ea0-9930-04fe0ba7d33a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56528) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:02.068740 [ 62679 ] {aa341125-83db-422f-81ba-bcf14b491ba5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:02.117147 [ 675 ] {3dcf68c2-5ceb-4630-841f-4793ca6b77ab} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:02.164665 [ 62678 ] {9256da3f-d493-49b3-a009-6b0996865d57} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.75 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 97 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:40:02.322254 [ 69571 ] {14fd13d0-018f-4e69-b751-d2361523b37e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.75 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_10_10_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 47 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53146) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:40:02.425362 [ 69571 ] {14fd13d0-018f-4e69-b751-d2361523b37e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.75 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_10_10_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 47 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:40:02.569988 [ 62673 ] {d90933c7-4d7d-4ea0-9930-04fe0ba7d33a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:02.747258 [ 5967 ] {86c1637c-d788-4f47-a415-196b925f09df} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56572) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:02.800359 [ 5967 ] {86c1637c-d788-4f47-a415-196b925f09df} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:03.784107 [ 62685 ] {d9d35735-8db5-44e8-954f-f1e723cb258a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56552) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:03.883295 [ 62672 ] {f20e1cbb-215e-465f-99d5-f94c1339ddf4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56568) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:03.903122 [ 62685 ] {d9d35735-8db5-44e8-954f-f1e723cb258a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:03.965830 [ 62672 ] {f20e1cbb-215e-465f-99d5-f94c1339ddf4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:04.135598 [ 62677 ] {7d4cc030-fd94-43dc-9c16-e399ded5edda} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56562) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:04.226386 [ 62677 ] {7d4cc030-fd94-43dc-9c16-e399ded5edda} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:04.816944 [ 69570 ] {304b703a-85bc-4a93-b963-ef7ea3eecbcc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2099232 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56580) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:05.230999 [ 69570 ] {304b703a-85bc-4a93-b963-ef7ea3eecbcc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2099232 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:05.671364 [ 62771 ] {6cce6a7f-6095-4e2a-8ba5-3ad417aa9264} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41586) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:05.818878 [ 62771 ] {6cce6a7f-6095-4e2a-8ba5-3ad417aa9264} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:06.782882 [ 50481 ] {dc61c4d5-d668-48f0-89cb-1f2f6e370eeb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41602) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:06.857550 [ 50481 ] {dc61c4d5-d668-48f0-89cb-1f2f6e370eeb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:07.227677 [ 62680 ] {23d16aa1-2209-4074-8c43-ba6d69afbce0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41598) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:07.333954 [ 62680 ] {23d16aa1-2209-4074-8c43-ba6d69afbce0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:08.100863 [ 60037 ] {69ea2d3b-6384-47a2-80c0-c25598c35d10} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41618) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:08.168437 [ 62681 ] {39eb4782-54b2-4fa9-9df4-f4c6c5281217} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41630) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:08.222558 [ 62681 ] {39eb4782-54b2-4fa9-9df4-f4c6c5281217} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:08.347386 [ 60037 ] {69ea2d3b-6384-47a2-80c0-c25598c35d10} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:08.475032 [ 62679 ] {2e66494f-503f-401f-be7b-17f3693c3d68} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41638) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:08.502962 [ 62780 ] {66bb0479-17dd-4d93-83dc-a924b5ddc050} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41614) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:08.551475 [ 62679 ] {2e66494f-503f-401f-be7b-17f3693c3d68} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:08.613638 [ 62780 ] {66bb0479-17dd-4d93-83dc-a924b5ddc050} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:08.887082 [ 62675 ] {5ae5e636-4bab-42ac-bd02-f925e160f6b2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41654) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:08.959924 [ 675 ] {b444fdd6-ff50-4369-9825-901a0da85bbc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41664) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:08.987001 [ 62673 ] {5bcaed53-4a42-428f-8791-b536903277ee} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41686) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:09.017542 [ 69571 ] {6c532d03-e991-4b5d-8f0a-b1af17c070f5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41678) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:40:09.018570 [ 675 ] {b444fdd6-ff50-4369-9825-901a0da85bbc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:09.046479 [ 62673 ] {5bcaed53-4a42-428f-8791-b536903277ee} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:09.087988 [ 62675 ] {5ae5e636-4bab-42ac-bd02-f925e160f6b2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:09.185690 [ 69571 ] {6c532d03-e991-4b5d-8f0a-b1af17c070f5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:40:09.339384 [ 5967 ] {5666790f-95e3-4884-a274-159c578ab685} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41688) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:09.520526 [ 5967 ] {5666790f-95e3-4884-a274-159c578ab685} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:09.626872 [ 62678 ] {b297669b-2f5c-47ef-beb0-b60daae6fc39} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41702) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:09.667909 [ 62769 ] {14b23de9-a233-491d-a5ff-2429d20b7c19} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.49 MiB (attempt to allocate chunk of 1176256 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56506) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:40:09.998942 [ 62769 ] {14b23de9-a233-491d-a5ff-2429d20b7c19} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.49 MiB (attempt to allocate chunk of 1176256 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:40:10.123269 [ 62678 ] {b297669b-2f5c-47ef-beb0-b60daae6fc39} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:10.489091 [ 62672 ] {bf16d936-b4d1-4d9b-a60f-3f0a3d47b44e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41712) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:10.795285 [ 62672 ] {bf16d936-b4d1-4d9b-a60f-3f0a3d47b44e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:11.332845 [ 69570 ] {7d5ad425-fc31-4cef-b0d3-9a06c04e2d4c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41732) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:11.447212 [ 69570 ] {7d5ad425-fc31-4cef-b0d3-9a06c04e2d4c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:11.577236 [ 62677 ] {ec5a0260-48f9-40b4-a660-45bcfa764a4f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41720) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:11.674415 [ 62677 ] {ec5a0260-48f9-40b4-a660-45bcfa764a4f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:12.584400 [ 62685 ] {0f076bc0-3075-4eb8-be49-11d887ce6397} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102744 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41742) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:12.963978 [ 62685 ] {0f076bc0-3075-4eb8-be49-11d887ce6397} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102744 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:13.588913 [ 12026 ] {fc42780c-e9fc-4648-843f-1e915f3d86f5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41748) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:13.669174 [ 12026 ] {fc42780c-e9fc-4648-843f-1e915f3d86f5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:14.528087 [ 62771 ] {98c2f360-9249-4adb-9023-51fa44717b1b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33468) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:14.596036 [ 62771 ] {98c2f360-9249-4adb-9023-51fa44717b1b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:14.829387 [ 50481 ] {14a1c652-0739-4d31-981c-5adcc24d88ae} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33484) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:14.854520 [ 1276 ] {e005ab0e-b61c-4124-9476-a84a45f292b1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33460) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:14.915447 [ 50481 ] {14a1c652-0739-4d31-981c-5adcc24d88ae} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:14.936371 [ 62681 ] {4c40ca28-e633-4d20-a3a4-30f57fa91f5c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33494) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:15.123231 [ 62673 ] {d2e99ad9-9628-41f6-9c51-fab3894bfb34} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33514) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:15.172490 [ 62681 ] {4c40ca28-e633-4d20-a3a4-30f57fa91f5c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:15.216361 [ 62673 ] {d2e99ad9-9628-41f6-9c51-fab3894bfb34} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:15.305704 [ 675 ] {82bf1503-e4de-446e-9c74-cfcef7a494ce} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33500) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:15.307410 [ 1276 ] {e005ab0e-b61c-4124-9476-a84a45f292b1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:15.335086 [ 62780 ] {75366efc-0f55-4b99-8c89-b523c8586911} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33498) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:15.368211 [ 62679 ] {fe4e3444-b4c6-4922-b684-7559295feb0a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33526) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:15.374264 [ 675 ] {82bf1503-e4de-446e-9c74-cfcef7a494ce} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:15.392376 [ 62780 ] {75366efc-0f55-4b99-8c89-b523c8586911} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:15.432324 [ 62679 ] {fe4e3444-b4c6-4922-b684-7559295feb0a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:15.478908 [ 69571 ] {08d42176-63a9-4223-94c0-e1c955589b4f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33542) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:15.532786 [ 69571 ] {08d42176-63a9-4223-94c0-e1c955589b4f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:16.203670 [ 62769 ] {267f1af8-d9da-4df4-b891-08127d9b6a03} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33570) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:16.460321 [ 62769 ] {267f1af8-d9da-4df4-b891-08127d9b6a03} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:16.791254 [ 5967 ] {3e68fd16-23ef-4b77-83cf-289f423d12cd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33556) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:16.926029 [ 5967 ] {3e68fd16-23ef-4b77-83cf-289f423d12cd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:17.475883 [ 62678 ] {0b3f2fbd-d9c0-4828-8244-95bd6a4c585b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33586) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:17.538856 [ 62678 ] {0b3f2fbd-d9c0-4828-8244-95bd6a4c585b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:18.292404 [ 69570 ] {9c4bb203-207a-4df0-b315-6432ef2faab2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33610) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:18.752322 [ 69570 ] {9c4bb203-207a-4df0-b315-6432ef2faab2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:19.455321 [ 62677 ] {9770b5c8-a71f-4324-8fbf-74d524abb85b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33622) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:19.565926 [ 62677 ] {9770b5c8-a71f-4324-8fbf-74d524abb85b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:20.484549 [ 62685 ] {24c8c698-8685-43ca-996e-5291e7741c88} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33638) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:20.584093 [ 62685 ] {24c8c698-8685-43ca-996e-5291e7741c88} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:21.169282 [ 62771 ] {e613d1ca-c489-45ea-aec6-99504ec478fd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33660) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:21.192724 [ 12026 ] {b5fc9c03-f53d-4beb-819d-154881633431} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33654) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:21.235027 [ 50481 ] {3c1f87fd-c9f0-4707-afe0-ee6546f0b58b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33674) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:21.243740 [ 12026 ] {b5fc9c03-f53d-4beb-819d-154881633431} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:21.283310 [ 62771 ] {e613d1ca-c489-45ea-aec6-99504ec478fd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:21.292967 [ 62681 ] {aca62b0f-0c62-4e49-981c-fdda27064a14} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33684) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:21.301204 [ 50481 ] {3c1f87fd-c9f0-4707-afe0-ee6546f0b58b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:21.394752 [ 62681 ] {aca62b0f-0c62-4e49-981c-fdda27064a14} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:21.589929 [ 62679 ] {3f302402-6678-4e23-99e4-6063d6673639} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33738) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:21.630847 [ 62679 ] {3f302402-6678-4e23-99e4-6063d6673639} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:21.744333 [ 675 ] {accb3383-09ff-4aa6-b53a-671b5cca71fd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33720) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:21.883235 [ 675 ] {accb3383-09ff-4aa6-b53a-671b5cca71fd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:22.071127 [ 1276 ] {098fb5bd-6efb-495a-88d5-cdc35a877de6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33704) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:22.088037 [ 62780 ] {ed12a0de-799a-41f6-ac2b-1464db69fc52} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33734) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:22.143474 [ 1276 ] {098fb5bd-6efb-495a-88d5-cdc35a877de6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:22.165018 [ 62780 ] {ed12a0de-799a-41f6-ac2b-1464db69fc52} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:22.267694 [ 62673 ] {2fed0ac8-733b-45d2-8a01-4c35ae5cc33f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33696) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:22.327282 [ 62673 ] {2fed0ac8-733b-45d2-8a01-4c35ae5cc33f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:23.054337 [ 69571 ] {933f06c6-2832-4c4b-ac3c-24e852d32a7f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33750) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:23.134911 [ 62769 ] {40827222-7b7c-4b25-8771-4d0e0c87a981} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.52 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33758) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:23.225311 [ 62769 ] {40827222-7b7c-4b25-8771-4d0e0c87a981} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.52 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:23.320721 [ 69571 ] {933f06c6-2832-4c4b-ac3c-24e852d32a7f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:23.725401 [ 5967 ] {a8249b70-48e3-4ce9-93c2-f557e8149111} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33762) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:23.809693 [ 5967 ] {a8249b70-48e3-4ce9-93c2-f557e8149111} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:25.315267 [ 69570 ] {a11715a5-ee9d-4a15-abf9-b6d67556319a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50660) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:25.429083 [ 69570 ] {a11715a5-ee9d-4a15-abf9-b6d67556319a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:25.481571 [ 62678 ] {83dff106-5c57-4818-b666-d8e942a162f5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50658) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:25.556197 [ 62678 ] {83dff106-5c57-4818-b666-d8e942a162f5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:26.689003 [ 62680 ] {044e2c55-3e01-4790-9064-7aaaceb90080} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50664) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:26.928492 [ 62680 ] {044e2c55-3e01-4790-9064-7aaaceb90080} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:26.965899 [ 60037 ] {29daeeb1-b9fa-4d74-aad1-9b0cb8042464} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50680) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:27.049055 [ 60037 ] {29daeeb1-b9fa-4d74-aad1-9b0cb8042464} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:27.139839 [ 62685 ] {2e7ce1ab-4b54-42bf-ae18-3e2d2f4e01e6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50702) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:27.161288 [ 62675 ] {94e96a61-b060-442f-b503-4332071f600b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50696) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:27.281076 [ 62675 ] {94e96a61-b060-442f-b503-4332071f600b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:27.367768 [ 62685 ] {2e7ce1ab-4b54-42bf-ae18-3e2d2f4e01e6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:27.419749 [ 12026 ] {7a14d959-f95b-42ab-8364-6b0bf2e81043} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50718) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:27.487819 [ 12026 ] {7a14d959-f95b-42ab-8364-6b0bf2e81043} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:27.519216 [ 62672 ] {33adbe10-15b0-448a-8fc6-225e8591bed8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.84 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33600) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:40:27.617680 [ 62672 ] {33adbe10-15b0-448a-8fc6-225e8591bed8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.84 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:40:27.988063 [ 62771 ] {4e104f30-f88e-4186-a36a-9a99761e6851} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50720) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:40:28.059711 [ 62771 ] {4e104f30-f88e-4186-a36a-9a99761e6851} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:40:28.078706 [ 675 ] {fb841fea-9b22-498c-ab23-b00de4a4cfeb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50754) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:28.158392 [ 675 ] {fb841fea-9b22-498c-ab23-b00de4a4cfeb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:28.326651 [ 1276 ] {a744a7e8-bfb9-4459-946e-52bf73ee1e96} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50758) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:28.424426 [ 1276 ] {a744a7e8-bfb9-4459-946e-52bf73ee1e96} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:28.574765 [ 62681 ] {75b66308-0d31-41c7-bdd9-415004f8104c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50738) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:28.688115 [ 62681 ] {75b66308-0d31-41c7-bdd9-415004f8104c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:30.255057 [ 62769 ] {88acee48-d306-4b06-9d18-bc05b29c4cd9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50776) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:30.340345 [ 62769 ] {88acee48-d306-4b06-9d18-bc05b29c4cd9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:30.527221 [ 62780 ] {41256ac2-d109-4c00-8b34-59e05998fb59} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50764) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:31.266925 [ 62780 ] {41256ac2-d109-4c00-8b34-59e05998fb59} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:31.314115 [ 69571 ] {cd831c0c-2177-47f2-b559-acb90a8434cf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50788) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:31.424640 [ 69571 ] {cd831c0c-2177-47f2-b559-acb90a8434cf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:32.220839 [ 5967 ] {3f68014a-c785-412d-892e-1514f91a85cc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50796) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:32.383665 [ 5967 ] {3f68014a-c785-412d-892e-1514f91a85cc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:32.433957 [ 69570 ] {0e29337f-d860-4d94-86ed-cc0ca3f98b08} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50798) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:32.512255 [ 69570 ] {0e29337f-d860-4d94-86ed-cc0ca3f98b08} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:33.421747 [ 62673 ] {c49f1579-4887-471f-95fd-15e845b51395} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50804) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:33.440109 [ 62680 ] {5d34d223-b0cb-4ebf-aa77-8c993dabc33f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50808) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:33.541306 [ 62680 ] {5d34d223-b0cb-4ebf-aa77-8c993dabc33f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:33.796460 [ 62673 ] {c49f1579-4887-471f-95fd-15e845b51395} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:34.030336 [ 60037 ] {b9719c4d-db43-4c4a-a486-c2229988f086} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50812) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:34.033563 [ 12026 ] {c5c5bb64-fbc6-4208-9537-ace48a01156f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50834) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:34.033712 [ 62685 ] {e95b373d-f68e-40a5-8a8a-3c8baec73c4c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50822) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:34.085145 [ 62685 ] {e95b373d-f68e-40a5-8a8a-3c8baec73c4c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:34.147081 [ 62675 ] {f9ce9b7a-3a15-4b7a-8f47-5c7616cb3edb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50814) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:34.184237 [ 60037 ] {b9719c4d-db43-4c4a-a486-c2229988f086} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:34.208385 [ 62675 ] {f9ce9b7a-3a15-4b7a-8f47-5c7616cb3edb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:34.246360 [ 12026 ] {c5c5bb64-fbc6-4208-9537-ace48a01156f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:34.572958 [ 675 ] {a76382a2-471a-4477-9e74-5fa72d78b221} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58872) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:34.644859 [ 62672 ] {b5e18395-66dd-4527-9401-b970abc32f4a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50850) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:34.712462 [ 62672 ] {b5e18395-66dd-4527-9401-b970abc32f4a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:34.777822 [ 675 ] {a76382a2-471a-4477-9e74-5fa72d78b221} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:35.025906 [ 1276 ] {e772dadd-9e62-458b-bbec-0c64d4a88cfd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103292 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58880) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:35.320303 [ 62771 ] {b2a5c1b3-f512-4f2a-be78-199c1d3dbdf8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50854) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:35.368126 [ 1276 ] {e772dadd-9e62-458b-bbec-0c64d4a88cfd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103292 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:35.392078 [ 62771 ] {b2a5c1b3-f512-4f2a-be78-199c1d3dbdf8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:36.363809 [ 62681 ] {62c3eba4-af95-4255-85ce-8985125c38b2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58890) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:36.479491 [ 62681 ] {62c3eba4-af95-4255-85ce-8985125c38b2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:36.991487 [ 62780 ] {f2150883-aec3-4f12-aeb7-21adaf1cc519} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58910) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:37.057646 [ 62780 ] {f2150883-aec3-4f12-aeb7-21adaf1cc519} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:37.311694 [ 62769 ] {52f09a09-62cd-4a54-bb45-3a9e4918b419} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58902) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:37.463805 [ 62769 ] {52f09a09-62cd-4a54-bb45-3a9e4918b419} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:38.600296 [ 5967 ] {4e6716b4-d06f-486d-8322-5fca8118e8b3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58926) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:38.726494 [ 5967 ] {4e6716b4-d06f-486d-8322-5fca8118e8b3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:39.024098 [ 69571 ] {27aa33fe-8bfb-4ecd-8b2a-7f54c088f6ce} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103342 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58922) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:39.084740 [ 69571 ] {27aa33fe-8bfb-4ecd-8b2a-7f54c088f6ce} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103342 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:39.286249 [ 50481 ] {d87eb30a-d38f-4dd7-a809-cc3863df975e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.25 MiB (attempt to allocate chunk of 1181592 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:50736) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:40:39.495118 [ 50481 ] {d87eb30a-d38f-4dd7-a809-cc3863df975e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.25 MiB (attempt to allocate chunk of 1181592 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 95 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:40:39.725801 [ 69570 ] {7196215d-1334-4750-b196-40453edffd62} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58942) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:39.808935 [ 69570 ] {7196215d-1334-4750-b196-40453edffd62} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:40.119752 [ 62680 ] {17ecdbc4-86e2-46f3-8a80-afc887806478} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58958) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:40.179770 [ 62678 ] {2b3b2741-5c12-4829-b2c8-2abd18868a7d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58968) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:40.225095 [ 62678 ] {2b3b2741-5c12-4829-b2c8-2abd18868a7d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:40.360660 [ 62680 ] {17ecdbc4-86e2-46f3-8a80-afc887806478} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:40.434640 [ 62677 ] {c798c651-8cf2-45bf-829f-9fdf1414bc2d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58966) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:40.498620 [ 62677 ] {c798c651-8cf2-45bf-829f-9fdf1414bc2d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:40.591730 [ 62679 ] {299a3e9a-1181-4081-8862-a6360bca44e5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58984) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:40.649971 [ 62679 ] {299a3e9a-1181-4081-8862-a6360bca44e5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:40.971001 [ 60037 ] {32de52ed-f4eb-4599-8c28-21bfecad9bac} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58998) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:41.088617 [ 60037 ] {32de52ed-f4eb-4599-8c28-21bfecad9bac} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:41.583958 [ 62675 ] {2a5730b1-a22d-4426-9e0d-8929a46c0a25} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59014) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:41.649835 [ 62675 ] {2a5730b1-a22d-4426-9e0d-8929a46c0a25} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:41.837284 [ 62685 ] {533c3b59-1174-41b3-9c7a-ddfd5f2c9576} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59028) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:41.891742 [ 62685 ] {533c3b59-1174-41b3-9c7a-ddfd5f2c9576} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:42.472246 [ 12026 ] {86bf9636-6d29-4531-babe-0a8ae279210e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59032) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:42.562586 [ 12026 ] {86bf9636-6d29-4531-babe-0a8ae279210e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:42.840807 [ 62672 ] {75ebff35-5a9c-41c1-978a-e5db81909047} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59042) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:42.858967 [ 1276 ] {2c2e0853-a117-4c34-80ce-1dde2142668e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103454 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59044) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:43.149438 [ 62672 ] {75ebff35-5a9c-41c1-978a-e5db81909047} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:43.366095 [ 1276 ] {2c2e0853-a117-4c34-80ce-1dde2142668e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103454 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:43.974248 [ 62771 ] {a862843f-d3e8-4c28-ad79-ab06386c32d9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59052) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:43.984085 [ 62780 ] {cfc49d06-71b9-483c-868e-f9f595232a59} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59068) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:44.184244 [ 62771 ] {a862843f-d3e8-4c28-ad79-ab06386c32d9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:44.226564 [ 62780 ] {cfc49d06-71b9-483c-868e-f9f595232a59} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:45.469237 [ 62769 ] {27613ecf-396a-4967-aa73-2d6b41ab1aec} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47764) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:45.534341 [ 62769 ] {27613ecf-396a-4967-aa73-2d6b41ab1aec} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:45.728910 [ 5967 ] {f33f50d3-850a-4ade-a202-a2b07d3360a4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47778) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:45.789857 [ 5967 ] {f33f50d3-850a-4ade-a202-a2b07d3360a4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:45.990482 [ 69571 ] {ce3febe1-12e8-4be2-9454-1a7fa5811976} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2099444 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47784) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:46.045944 [ 69571 ] {ce3febe1-12e8-4be2-9454-1a7fa5811976} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2099444 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:46.065370 [ 50481 ] {f7839fec-6a0b-41d8-9d51-d18e47301f46} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47792) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:46.153797 [ 50481 ] {f7839fec-6a0b-41d8-9d51-d18e47301f46} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:46.646686 [ 69570 ] {95a3a645-23ae-477b-879f-2afadf075a97} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47802) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:46.780526 [ 69570 ] {95a3a645-23ae-477b-879f-2afadf075a97} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:46.992129 [ 62678 ] {c5a20317-d411-4cc3-9aaa-803978e6e7fb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47814) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:47.140966 [ 62680 ] {1699846c-4555-43c2-90a4-22d89082de7c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47816) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:47.154492 [ 62678 ] {c5a20317-d411-4cc3-9aaa-803978e6e7fb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:47.183034 [ 62680 ] {1699846c-4555-43c2-90a4-22d89082de7c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:47.237946 [ 62677 ] {51378aa1-e88b-4bab-8d4a-5d9ba001f0ae} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47824) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:47.298126 [ 62677 ] {51378aa1-e88b-4bab-8d4a-5d9ba001f0ae} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:47.515274 [ 62679 ] {8116097f-3ba8-473c-b997-d1a8a4bf3013} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47836) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:47.542168 [ 60037 ] {0311f749-008b-41e9-b1ec-3cee20a47efe} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47850) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:47.549824 [ 62675 ] {280d24fd-4b22-4402-9fbf-63bd613fd67f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47852) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:47.605513 [ 62679 ] {8116097f-3ba8-473c-b997-d1a8a4bf3013} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:47.611782 [ 60037 ] {0311f749-008b-41e9-b1ec-3cee20a47efe} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:47.623210 [ 62675 ] {280d24fd-4b22-4402-9fbf-63bd613fd67f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:48.283943 [ 62685 ] {ff4f5350-5001-4c66-8208-e8adcccc1a98} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47860) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:48.400362 [ 62685 ] {ff4f5350-5001-4c66-8208-e8adcccc1a98} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:49.022360 [ 62672 ] {e92fe2ac-7679-40e7-90bd-212a7a4fe99a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47868) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:49.120416 [ 62672 ] {e92fe2ac-7679-40e7-90bd-212a7a4fe99a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:49.276225 [ 12026 ] {25f3f9bb-82a4-43ea-b128-9050611e081d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47862) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:49.386051 [ 12026 ] {25f3f9bb-82a4-43ea-b128-9050611e081d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:50.058221 [ 1276 ] {fb38cacd-504c-431e-b678-75831ad8b48b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103016 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47880) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:50.197226 [ 1276 ] {fb38cacd-504c-431e-b678-75831ad8b48b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103016 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:50.267567 [ 62771 ] {6183ca9d-8438-4184-9ff1-d6cc8a5bb2fc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47890) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:40:50.430694 [ 62771 ] {6183ca9d-8438-4184-9ff1-d6cc8a5bb2fc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:40:51.812638 [ 62780 ] {179a0c9e-18fb-4280-8202-14f1f8c051cc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47900) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:51.894660 [ 62780 ] {179a0c9e-18fb-4280-8202-14f1f8c051cc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:52.223151 [ 62769 ] {938a4076-e816-4c7d-8172-4f086199d8da} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47914) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:52.308505 [ 62769 ] {938a4076-e816-4c7d-8172-4f086199d8da} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:52.441221 [ 69571 ] {e3652b64-89f7-4aee-84f7-030c725f6609} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47934) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:52.525027 [ 69571 ] {e3652b64-89f7-4aee-84f7-030c725f6609} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:52.532076 [ 5967 ] {8904074b-5673-459b-872e-cc0d48a8b6f0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47924) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:52.543614 [ 5967 ] {8904074b-5673-459b-872e-cc0d48a8b6f0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:53.590078 [ 675 ] {ff057a00-d0b2-4983-b9d6-cdd53f595b8c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47964) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:53.717905 [ 62681 ] {a427e4d8-8167-4dd8-b535-013f7da6e190} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47952) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:53.748995 [ 675 ] {ff057a00-d0b2-4983-b9d6-cdd53f595b8c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:53.897749 [ 62681 ] {a427e4d8-8167-4dd8-b535-013f7da6e190} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:53.954845 [ 50481 ] {08f49e94-b45e-4d1e-87a3-69da7a5527ec} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47940) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:53.956639 [ 62673 ] {e7dc52f1-5363-4e06-a680-5c0334e373c8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47978) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:40:54.009222 [ 50481 ] {08f49e94-b45e-4d1e-87a3-69da7a5527ec} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:54.043929 [ 62680 ] {b5a16337-5d15-4a95-82ec-9f9aedf47b8a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47994) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:40:54.129702 [ 62680 ] {b5a16337-5d15-4a95-82ec-9f9aedf47b8a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:40:54.214300 [ 62677 ] {fc4efccb-03bc-4485-87ed-f4ee7a3c4152} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48006) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:54.266237 [ 62677 ] {fc4efccb-03bc-4485-87ed-f4ee7a3c4152} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:54.321538 [ 62673 ] {e7dc52f1-5363-4e06-a680-5c0334e373c8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:40:54.379335 [ 62678 ] {32043fd4-ea6e-422b-8d6a-d285b3dbc9a5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48016) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:54.441102 [ 62678 ] {32043fd4-ea6e-422b-8d6a-d285b3dbc9a5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:55.529174 [ 69570 ] {68fb55c5-8ada-47d8-95f3-8d08d990a159} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55706) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:55.914472 [ 60037 ] {2c6cd07d-5be3-4013-afa9-617aa5988aa8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55712) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:55.982713 [ 69570 ] {68fb55c5-8ada-47d8-95f3-8d08d990a159} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:56.052569 [ 60037 ] {2c6cd07d-5be3-4013-afa9-617aa5988aa8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:56.782979 [ 62685 ] {b5391349-081e-4c19-8a4f-b7b076b14b60} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55722) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:56.850906 [ 62685 ] {b5391349-081e-4c19-8a4f-b7b076b14b60} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:57.559492 [ 62675 ] {2c7a631a-f03b-4f36-bd27-19548e1f73d8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1182536 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 81 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55714) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:40:58.038022 [ 62675 ] {2c7a631a-f03b-4f36-bd27-19548e1f73d8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1182536 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 81 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:40:58.443367 [ 12026 ] {83a1f9d0-d136-4f02-ace7-64da50914f21} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55736) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:58.527816 [ 12026 ] {83a1f9d0-d136-4f02-ace7-64da50914f21} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:58.863822 [ 62771 ] {e17ad199-44b8-4f3c-8242-79ba153ff003} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2104404 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55750) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:58.884918 [ 1276 ] {33947caa-d1bb-423e-9880-a20f266e33e5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55738) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:58.982457 [ 62672 ] {9a3bf984-9d4f-4c53-ba4e-f50134ded075} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55760) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:59.032310 [ 1276 ] {33947caa-d1bb-423e-9880-a20f266e33e5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:59.452238 [ 62771 ] {e17ad199-44b8-4f3c-8242-79ba153ff003} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2104404 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:40:59.811259 [ 62672 ] {9a3bf984-9d4f-4c53-ba4e-f50134ded075} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:00.169738 [ 675 ] {d21def88-f729-40b1-9c22-43bfae0246a4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55776) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:00.241803 [ 675 ] {d21def88-f729-40b1-9c22-43bfae0246a4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:00.330785 [ 5967 ] {aeeea82d-a31d-4304-9cb2-b62e0680bca8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.89 MiB (attempt to allocate chunk of 1182536 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 81 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55764) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:00.455774 [ 5967 ] {aeeea82d-a31d-4304-9cb2-b62e0680bca8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.89 MiB (attempt to allocate chunk of 1182536 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 81 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:00.806446 [ 62677 ] {71b4bd22-f1d6-4600-a91f-cf0f5d4ba08a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55814) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:00.819185 [ 62680 ] {9baa2c32-572d-436a-9738-29c508ebb8ca} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 57 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55812) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:00.903879 [ 62677 ] {71b4bd22-f1d6-4600-a91f-cf0f5d4ba08a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:00.917887 [ 62680 ] {9baa2c32-572d-436a-9738-29c508ebb8ca} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 57 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:00.927725 [ 50481 ] {150ee01b-224c-40c1-b96d-ebdcd60aee7c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55806) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:41:01.006029 [ 50481 ] {150ee01b-224c-40c1-b96d-ebdcd60aee7c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:41:01.306517 [ 62673 ] {bb6bb8fa-0f94-494f-861a-9e4fa366c675} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55818) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:01.375037 [ 62673 ] {bb6bb8fa-0f94-494f-861a-9e4fa366c675} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:03.908509 [ 69570 ] {d1b93295-b2e7-4432-8497-01023a846084} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55836) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:03.962086 [ 69570 ] {d1b93295-b2e7-4432-8497-01023a846084} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:03.981686 [ 62678 ] {e96c620e-356b-4982-8780-be580aae7437} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55826) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:04.199746 [ 62678 ] {e96c620e-356b-4982-8780-be580aae7437} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:04.215693 [ 60037 ] {1d6ad6fb-c394-4769-9c2a-caa0500d3f81} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55844) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:04.274908 [ 62685 ] {6f1acd53-4bf3-4b1b-8a8e-a4cf38e9cde6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55848) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:04.318414 [ 62685 ] {6f1acd53-4bf3-4b1b-8a8e-a4cf38e9cde6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:04.531015 [ 60037 ] {1d6ad6fb-c394-4769-9c2a-caa0500d3f81} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:04.998954 [ 62675 ] {8fc482c8-8b25-4b65-85b8-abed5bb41c89} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53168) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:05.025084 [ 12026 ] {345d8778-76b0-4f85-b79a-084b5cfc4002} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53176) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:05.055804 [ 62675 ] {8fc482c8-8b25-4b65-85b8-abed5bb41c89} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:05.741395 [ 12026 ] {345d8778-76b0-4f85-b79a-084b5cfc4002} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:05.779611 [ 62771 ] {ffbd544d-5e08-4c4d-915a-9a7d9eb0a4ea} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53180) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:05.836341 [ 62771 ] {ffbd544d-5e08-4c4d-915a-9a7d9eb0a4ea} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:05.914316 [ 62679 ] {6ea44934-70ce-4fca-85b8-45d5ebd72e18} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.99 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 71 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55698) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:05.943094 [ 1276 ] {a96b8fd5-5258-4fa7-982e-de22bcc6606b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53178) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:05.999633 [ 62679 ] {6ea44934-70ce-4fca-85b8-45d5ebd72e18} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 53.99 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 71 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:06.221013 [ 1276 ] {a96b8fd5-5258-4fa7-982e-de22bcc6606b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:06.702694 [ 62672 ] {5d17fdd7-0668-40fa-be20-681b5b9f6b3b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53184) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:06.842354 [ 62672 ] {5d17fdd7-0668-40fa-be20-681b5b9f6b3b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:07.130640 [ 69571 ] {ec5dcb1b-95c9-4e76-980f-366b58b34bb0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53206) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:07.189896 [ 62769 ] {e2c72a45-a9f5-4ea5-8a8a-e192b2d7e9fc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103968 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53210) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:07.245117 [ 675 ] {1503c0d4-64a5-4443-8e20-617baf8e6285} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53186) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:07.261612 [ 62769 ] {e2c72a45-a9f5-4ea5-8a8a-e192b2d7e9fc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103968 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:07.293234 [ 69571 ] {ec5dcb1b-95c9-4e76-980f-366b58b34bb0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:07.490245 [ 675 ] {1503c0d4-64a5-4443-8e20-617baf8e6285} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:07.509466 [ 62780 ] {d9d1d2da-7e8b-4652-8095-794097175497} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53194) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:07.647852 [ 50481 ] {499dbc87-9d29-485e-9a10-3c2517f05c0d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53218) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:07.672608 [ 62780 ] {d9d1d2da-7e8b-4652-8095-794097175497} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:07.802051 [ 50481 ] {499dbc87-9d29-485e-9a10-3c2517f05c0d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:09.495565 [ 62681 ] {dbf5acb6-ca6f-4146-85e9-0014bad67bf3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.73 MiB (attempt to allocate chunk of 1177776 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 108 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55792) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:09.601262 [ 62673 ] {b8c3ae6c-5a9d-45dd-b1e9-e8aa4f262f53} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53234) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:09.674319 [ 62673 ] {b8c3ae6c-5a9d-45dd-b1e9-e8aa4f262f53} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:09.709372 [ 62681 ] {dbf5acb6-ca6f-4146-85e9-0014bad67bf3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.73 MiB (attempt to allocate chunk of 1177776 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 108 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:09.747453 [ 62680 ] {3c447186-a32e-4f24-a0eb-534c812248c6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53250) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:09.880582 [ 62680 ] {3c447186-a32e-4f24-a0eb-534c812248c6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:09.942345 [ 62678 ] {4a15cbd0-d472-4538-a4dc-647c5508812a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53280) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:41:10.016549 [ 62677 ] {4d9dc393-a32a-4726-93b3-82d7a896899e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53264) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:10.034961 [ 62678 ] {4a15cbd0-d472-4538-a4dc-647c5508812a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:41:10.087878 [ 62677 ] {4d9dc393-a32a-4726-93b3-82d7a896899e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:10.853524 [ 69570 ] {edba84bd-7dc7-423f-a72f-557b4415a78d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53286) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:10.955742 [ 69570 ] {edba84bd-7dc7-423f-a72f-557b4415a78d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:11.595121 [ 60037 ] {e4b9b239-79dd-4761-b233-d1d175122d5c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53296) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:11.869954 [ 60037 ] {e4b9b239-79dd-4761-b233-d1d175122d5c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:12.762231 [ 62685 ] {63880c4e-4bd2-4ee0-b9dc-98ae2acd249b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53312) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:12.865548 [ 62685 ] {63880c4e-4bd2-4ee0-b9dc-98ae2acd249b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:13.243201 [ 62679 ] {b51fe660-ac41-4abe-a591-e242693e9293} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53320) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:13.307551 [ 62679 ] {b51fe660-ac41-4abe-a591-e242693e9293} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:13.862278 [ 12026 ] {17fd3d14-0960-44ec-b65b-4e012d35ff46} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53332) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:13.988776 [ 12026 ] {17fd3d14-0960-44ec-b65b-4e012d35ff46} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:14.769758 [ 62769 ] {87df0011-d394-410c-afd7-88b0ddf79ef7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53350) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:14.882010 [ 62769 ] {87df0011-d394-410c-afd7-88b0ddf79ef7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:15.025290 [ 69571 ] {cb463ded-9d5a-4518-ad35-27c7bf0c1ad9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53364) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:15.050208 [ 675 ] {e551cb10-cec8-4be7-b858-fe5fd6d48ac5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53374) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:15.126801 [ 69571 ] {cb463ded-9d5a-4518-ad35-27c7bf0c1ad9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:15.131992 [ 675 ] {e551cb10-cec8-4be7-b858-fe5fd6d48ac5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:15.139427 [ 1276 ] {5d593d3e-b57e-4ac4-a1d5-692148691dfd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53344) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:15.266615 [ 62780 ] {36839b88-e34f-422d-9015-08f9ea968ae9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53384) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:15.283867 [ 1276 ] {5d593d3e-b57e-4ac4-a1d5-692148691dfd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:15.330406 [ 62780 ] {36839b88-e34f-422d-9015-08f9ea968ae9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:16.563480 [ 62673 ] {79632949-30a7-40d4-86c9-14126feff3fc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54394) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:16.662159 [ 62680 ] {c9d14d48-b020-4f35-8fb6-1f115dd84081} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102856 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54416) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:16.724514 [ 62680 ] {c9d14d48-b020-4f35-8fb6-1f115dd84081} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102856 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:16.736894 [ 62678 ] {10979dd9-3268-4870-8e88-a9ff82094345} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578440 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54422) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:16.804418 [ 62678 ] {10979dd9-3268-4870-8e88-a9ff82094345} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578440 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:16.871607 [ 50481 ] {75fa2ac2-9ec1-4e1b-92d9-393d0caae98a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54388) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:16.872698 [ 62673 ] {79632949-30a7-40d4-86c9-14126feff3fc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:16.943888 [ 50481 ] {75fa2ac2-9ec1-4e1b-92d9-393d0caae98a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:16.999256 [ 62677 ] {404ac348-72e1-42c2-b791-27fe9b5c6e7d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54428) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:17.338834 [ 62681 ] {88016254-399a-487e-bd99-8427728238c1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2100004 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54410) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:17.371313 [ 62677 ] {404ac348-72e1-42c2-b791-27fe9b5c6e7d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:17.393311 [ 62681 ] {88016254-399a-487e-bd99-8427728238c1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2100004 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:18.983029 [ 69570 ] {47b76dea-8212-4e85-b36d-2d720f8f2fb0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 434 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54442) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:19.174683 [ 60037 ] {a600d3eb-09b0-4a32-9f5d-d390ac920638} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54458) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:19.298385 [ 69570 ] {47b76dea-8212-4e85-b36d-2d720f8f2fb0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 434 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:19.497532 [ 60037 ] {a600d3eb-09b0-4a32-9f5d-d390ac920638} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:19.647594 [ 62685 ] {566185f7-754d-4f1b-aff3-a5e7a13e4ddd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54460) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:19.750133 [ 62685 ] {566185f7-754d-4f1b-aff3-a5e7a13e4ddd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:20.505997 [ 62769 ] {9253603e-f224-4e4f-b3c5-2cec4b6a5402} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54486) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:20.569564 [ 62769 ] {9253603e-f224-4e4f-b3c5-2cec4b6a5402} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:20.595364 [ 62679 ] {9c56c3c4-f7df-4cc4-b636-f35f4abc3af8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54474) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:20.688340 [ 12026 ] {417dd062-6e4f-44a8-96d2-b171b7350130} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54484) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:20.746827 [ 62679 ] {9c56c3c4-f7df-4cc4-b636-f35f4abc3af8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:20.750869 [ 12026 ] {417dd062-6e4f-44a8-96d2-b171b7350130} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:20.879104 [ 62672 ] {71defe2e-3f35-4492-bed3-c215f41dbebc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54504) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:20.926098 [ 62672 ] {71defe2e-3f35-4492-bed3-c215f41dbebc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:20.953151 [ 62771 ] {5f4cbb07-d4ad-4932-b585-9274233053b2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54500) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:21.162802 [ 5967 ] {d4790e26-be39-4215-933d-50cac3d86a79} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1579308 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54492) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:21.218470 [ 62771 ] {5f4cbb07-d4ad-4932-b585-9274233053b2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:21.381999 [ 5967 ] {d4790e26-be39-4215-933d-50cac3d86a79} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1579308 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:22.360643 [ 62675 ] {b08bc869-8a82-4b80-a0ed-531299316988} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.13 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 71 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53306) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:22.612062 [ 62675 ] {b08bc869-8a82-4b80-a0ed-531299316988} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.13 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 71 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:22.672635 [ 62780 ] {d60ee27e-d8fc-4131-86d3-d2ddb4581a86} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54510) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:22.723971 [ 69571 ] {4bf21638-5525-4855-a8f1-3fd2fa370138} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54526) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:22.755619 [ 62780 ] {d60ee27e-d8fc-4131-86d3-d2ddb4581a86} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:22.786650 [ 675 ] {ac4b58db-e5c0-41e9-97a3-5c05434767af} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54506) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:22.951007 [ 675 ] {ac4b58db-e5c0-41e9-97a3-5c05434767af} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:23.080351 [ 69571 ] {4bf21638-5525-4855-a8f1-3fd2fa370138} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:23.126056 [ 62680 ] {b2cf6ae8-8feb-45a4-8b79-a459ccdcd7b4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54564) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:23.190289 [ 62673 ] {dca4e449-7c00-4f2c-aef3-ac5398953c50} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.89 MiB (attempt to allocate chunk of 2102856 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54534) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:23.223723 [ 62680 ] {b2cf6ae8-8feb-45a4-8b79-a459ccdcd7b4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:23.407640 [ 50481 ] {7bc24206-d163-4cf9-8303-26f41d86e781} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2099232 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54550) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:23.409714 [ 62673 ] {dca4e449-7c00-4f2c-aef3-ac5398953c50} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.89 MiB (attempt to allocate chunk of 2102856 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:23.463345 [ 50481 ] {7bc24206-d163-4cf9-8303-26f41d86e781} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2099232 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:25.477822 [ 62677 ] {d9a1bec3-5e34-4f47-9aaf-4167c606403e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.89 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37898) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:25.567111 [ 62678 ] {9d451fbd-e7b7-4c6f-a50f-09467e40b3be} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37914) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:25.636416 [ 62677 ] {d9a1bec3-5e34-4f47-9aaf-4167c606403e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.89 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:25.716639 [ 62678 ] {9d451fbd-e7b7-4c6f-a50f-09467e40b3be} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:25.767195 [ 62681 ] {fdb7fb77-01d4-42d7-87ba-c7d5947e18f2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37894) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:25.872445 [ 62681 ] {fdb7fb77-01d4-42d7-87ba-c7d5947e18f2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:27.175774 [ 69570 ] {4f544823-90b8-4900-b88f-4c235fc5ec5b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37928) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:27.305207 [ 69570 ] {4f544823-90b8-4900-b88f-4c235fc5ec5b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:27.456484 [ 62769 ] {b867c113-aebd-49de-8b70-c7338dd4f080} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37944) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:27.473373 [ 60037 ] {61b43a5f-015a-4dc7-9b45-4cae05ef63b0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37952) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:27.533232 [ 62769 ] {b867c113-aebd-49de-8b70-c7338dd4f080} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:27.542891 [ 60037 ] {61b43a5f-015a-4dc7-9b45-4cae05ef63b0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:27.582802 [ 62679 ] {d264c851-c66d-4fa3-bc17-55cace550942} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37966) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:27.707296 [ 62771 ] {d334a72f-969e-4e34-8bd5-c26802a6f650} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37980) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:27.711032 [ 62679 ] {d264c851-c66d-4fa3-bc17-55cace550942} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:27.770081 [ 62771 ] {d334a72f-969e-4e34-8bd5-c26802a6f650} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:27.941120 [ 62672 ] {28b7b33c-6cfe-4136-8a82-837254f13b68} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37968) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:28.164833 [ 62672 ] {28b7b33c-6cfe-4136-8a82-837254f13b68} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:30.142562 [ 62680 ] {7afb6262-ccdb-4bfa-bec9-3c90d5172c6b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38036) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:30.223828 [ 62675 ] {3dd11ece-5a7b-4dc2-bb88-e7ba50d1b42a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37992) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:30.307569 [ 675 ] {dc4698d1-1434-4d4a-9c1c-c37fa81ffbde} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38010) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:41:30.379711 [ 62680 ] {7afb6262-ccdb-4bfa-bec9-3c90d5172c6b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:30.406634 [ 69571 ] {20269c1a-c627-4344-918b-c3068dd81992} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38022) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:30.408604 [ 675 ] {dc4698d1-1434-4d4a-9c1c-c37fa81ffbde} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:41:30.416950 [ 62675 ] {3dd11ece-5a7b-4dc2-bb88-e7ba50d1b42a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:30.505469 [ 69571 ] {20269c1a-c627-4344-918b-c3068dd81992} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:30.820335 [ 62673 ] {3710a8f1-5b2a-4a8b-9b15-83b10b32c0a2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38048) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:31.022824 [ 62673 ] {3710a8f1-5b2a-4a8b-9b15-83b10b32c0a2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:32.985782 [ 50481 ] {1b14bfde-0a3b-4311-a524-b1236efd3a4f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103320 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38050) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:33.083132 [ 50481 ] {1b14bfde-0a3b-4311-a524-b1236efd3a4f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103320 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:33.215364 [ 62677 ] {08d7722e-612b-40f2-bf08-82a7cb33c6f1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38060) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:33.291747 [ 62677 ] {08d7722e-612b-40f2-bf08-82a7cb33c6f1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:33.699667 [ 62678 ] {32fec3c6-ac26-430c-8176-3444c7db3cef} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 288 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38076) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:33.941709 [ 62678 ] {32fec3c6-ac26-430c-8176-3444c7db3cef} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 288 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:34.193868 [ 69570 ] {615571e4-8916-4233-b424-39fd5e07f7a4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2102856 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38092) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:34.271745 [ 69570 ] {615571e4-8916-4233-b424-39fd5e07f7a4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2102856 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:34.497108 [ 62681 ] {b7fbb37f-5e12-4ba6-afbd-d1d116b39608} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38082) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:34.530535 [ 62769 ] {13323c66-f445-48db-ae6f-9ab35d1569e0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38122) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:34.540611 [ 62685 ] {d02b4ada-cbf3-4592-807c-351b491f847b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38108) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:34.562710 [ 62681 ] {b7fbb37f-5e12-4ba6-afbd-d1d116b39608} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:34.587802 [ 62679 ] {a828e462-b9e9-43d8-9386-7ca2d2b7bd89} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38124) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:34.593701 [ 62769 ] {13323c66-f445-48db-ae6f-9ab35d1569e0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:34.631659 [ 62679 ] {a828e462-b9e9-43d8-9386-7ca2d2b7bd89} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:34.729618 [ 60037 ] {652c52b7-65f5-4472-be88-674df6b9586a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38130) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:34.739314 [ 62685 ] {d02b4ada-cbf3-4592-807c-351b491f847b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:34.795086 [ 60037 ] {652c52b7-65f5-4472-be88-674df6b9586a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:36.230675 [ 62672 ] {23cbf386-d74a-41ba-99ee-ec228d826ddd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41294) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:36.378350 [ 62672 ] {23cbf386-d74a-41ba-99ee-ec228d826ddd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:36.482372 [ 1276 ] {2432dc69-fdcb-4c83-861e-b697750ae8cd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2099492 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41270) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:36.516587 [ 675 ] {8d809387-50a9-432d-a04c-76899da26ed7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41304) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:36.522574 [ 1276 ] {2432dc69-fdcb-4c83-861e-b697750ae8cd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2099492 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:36.532060 [ 12026 ] {9e301509-858a-4f1d-bb77-7ec9327ab7bc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.39 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41266) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:36.566942 [ 675 ] {8d809387-50a9-432d-a04c-76899da26ed7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:36.611273 [ 12026 ] {9e301509-858a-4f1d-bb77-7ec9327ab7bc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.39 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:36.614107 [ 62771 ] {da722049-d982-4cde-ac46-5520a4694789} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41284) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:36.890906 [ 62771 ] {da722049-d982-4cde-ac46-5520a4694789} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:38.355953 [ 50481 ] {63a6039c-1b9a-4daa-bca8-e1db99fc1c74} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2099168 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41324) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:38.417278 [ 69571 ] {904d3949-f077-4a60-93aa-cac5dc3d3617} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41308) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:38.429874 [ 50481 ] {63a6039c-1b9a-4daa-bca8-e1db99fc1c74} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2099168 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:38.503018 [ 69571 ] {904d3949-f077-4a60-93aa-cac5dc3d3617} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:38.627970 [ 62780 ] {eda16579-303c-4210-9782-6aaaf1abcb3f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.86 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 63 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37996) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:38.747902 [ 62780 ] {eda16579-303c-4210-9782-6aaaf1abcb3f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.86 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_7_7_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 63 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:39.015138 [ 5967 ] {eadc0cc5-253d-4688-8e42-61bbfb61aaf8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 59.51 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 251 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37986) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:39.143736 [ 5967 ] {eadc0cc5-253d-4688-8e42-61bbfb61aaf8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 59.51 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 251 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:41:39.966767 [ 62673 ] {fafaa523-3907-4244-9a1a-abf85b5ef2a7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41334) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:40.070986 [ 62673 ] {fafaa523-3907-4244-9a1a-abf85b5ef2a7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:40.535340 [ 62680 ] {724ee8b7-cf60-43d4-b8fe-d5386ab2be0f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41342) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:40.657652 [ 62680 ] {724ee8b7-cf60-43d4-b8fe-d5386ab2be0f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:40.742441 [ 62677 ] {dc32a91a-5789-473c-a485-2d87b8501c55} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41354) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:40.795173 [ 62769 ] {aa25ca2c-9d64-4e8e-a83c-4ebf779adef4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41374) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:40.835565 [ 62677 ] {dc32a91a-5789-473c-a485-2d87b8501c55} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:40.862475 [ 62769 ] {aa25ca2c-9d64-4e8e-a83c-4ebf779adef4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:40.907125 [ 62678 ] {e6e587ff-ea93-474e-8c7c-1883a64d44ea} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41388) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:41.001681 [ 62679 ] {1373255d-c4d0-4fa6-85b3-2b1c50608da8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41386) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:41.028020 [ 62678 ] {e6e587ff-ea93-474e-8c7c-1883a64d44ea} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:41.092698 [ 62681 ] {703d9a18-d411-4637-a406-21f3babfda8a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41368) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:41.185945 [ 62681 ] {703d9a18-d411-4637-a406-21f3babfda8a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:41.263039 [ 62679 ] {1373255d-c4d0-4fa6-85b3-2b1c50608da8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:43.030837 [ 675 ] {761b66c5-5b84-4bb7-a5b3-66f7ceaf858a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41420) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:43.242797 [ 675 ] {761b66c5-5b84-4bb7-a5b3-66f7ceaf858a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:43.311417 [ 60037 ] {469d1aa2-dc64-4edd-a24a-7f241305b71b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41400) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:43.344718 [ 1276 ] {e5b61a78-f385-4eed-810c-801266d06e0a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41418) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:43.433748 [ 62672 ] {a7a06a38-4025-4881-818e-f3fd0573c8df} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41402) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:43.466522 [ 60037 ] {469d1aa2-dc64-4edd-a24a-7f241305b71b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:43.657853 [ 1276 ] {e5b61a78-f385-4eed-810c-801266d06e0a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:43.783328 [ 12026 ] {cb6af14d-18ea-4a07-9885-2f6b481080c5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41424) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:43.827575 [ 62672 ] {a7a06a38-4025-4881-818e-f3fd0573c8df} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:44.153449 [ 12026 ] {cb6af14d-18ea-4a07-9885-2f6b481080c5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:44.823158 [ 50481 ] {8438b4ac-f383-479b-8817-0b36acea2040} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54648) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:44.823210 [ 62771 ] {7f7325df-d379-403b-9473-971d949f8535} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54644) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:44.872005 [ 69571 ] {471fc5d5-96a1-4bd8-bb9c-07ac47dbfed6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54650) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:44.902207 [ 62771 ] {7f7325df-d379-403b-9473-971d949f8535} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:44.964008 [ 69571 ] {471fc5d5-96a1-4bd8-bb9c-07ac47dbfed6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:45.138017 [ 50481 ] {8438b4ac-f383-479b-8817-0b36acea2040} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:45.215265 [ 62780 ] {237336e5-944d-4840-a506-54408613d15d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54666) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:45.287382 [ 62780 ] {237336e5-944d-4840-a506-54408613d15d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:47.034521 [ 5967 ] {ca596249-37b4-448a-8fc2-ca620f6b28d6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54678) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:47.035142 [ 62680 ] {3df7aca4-6223-42c0-8874-33601d2bfadd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54696) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:47.034922 [ 62673 ] {eace55fd-d421-4aea-834f-04a3b4fb0388} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54692) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:41:47.083052 [ 62678 ] {b972d0e9-b689-4e68-b014-3fa7c70fbfa2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54730) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:47.153517 [ 62680 ] {3df7aca4-6223-42c0-8874-33601d2bfadd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:47.154047 [ 62678 ] {b972d0e9-b689-4e68-b014-3fa7c70fbfa2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:47.196356 [ 62673 ] {eace55fd-d421-4aea-834f-04a3b4fb0388} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:41:47.352109 [ 62681 ] {8294dacc-5ada-4dc5-9950-6a04dbf4c5bc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54734) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:47.383536 [ 62769 ] {351817d0-8208-4fba-8fd4-067ab99747fe} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54718) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:47.444062 [ 5967 ] {ca596249-37b4-448a-8fc2-ca620f6b28d6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:47.470644 [ 62677 ] {f540345b-dbe8-49ed-943f-e84d13ec7fce} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54702) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:41:47.494876 [ 62769 ] {351817d0-8208-4fba-8fd4-067ab99747fe} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:47.556680 [ 62681 ] {8294dacc-5ada-4dc5-9950-6a04dbf4c5bc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:47.767703 [ 62677 ] {f540345b-dbe8-49ed-943f-e84d13ec7fce} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:41:49.496701 [ 69570 ] {7d539c96-94d4-46a8-901d-6c6475a20ea7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54762) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:49.596466 [ 69570 ] {7d539c96-94d4-46a8-901d-6c6475a20ea7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:49.610406 [ 62679 ] {efe19454-d457-42b6-ba09-3728ea477338} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54748) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:49.621484 [ 62675 ] {ca701c14-c94f-4bdd-917f-42349630e0ee} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54764) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:49.687655 [ 62679 ] {efe19454-d457-42b6-ba09-3728ea477338} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:49.854239 [ 62685 ] {778ad71d-7906-4248-afd5-296f3cafe64f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54778) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:49.904036 [ 62685 ] {778ad71d-7906-4248-afd5-296f3cafe64f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:50.027900 [ 62675 ] {ca701c14-c94f-4bdd-917f-42349630e0ee} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:50.539287 [ 60037 ] {ecbb613e-e93a-4347-9e78-86bdd3a5f7a2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54788) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:50.601431 [ 60037 ] {ecbb613e-e93a-4347-9e78-86bdd3a5f7a2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:51.497930 [ 12026 ] {023a407b-ce82-44f5-b2e1-3ab0b15e06a7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54792) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:51.758694 [ 12026 ] {023a407b-ce82-44f5-b2e1-3ab0b15e06a7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098672 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:51.790014 [ 62672 ] {af395930-5bbb-4894-985f-afe7a72c6ec2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54830) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:51.876032 [ 62672 ] {af395930-5bbb-4894-985f-afe7a72c6ec2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:52.288350 [ 62771 ] {2a0e873e-413c-4d22-b3cf-016de50fec06} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54816) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:52.333549 [ 62771 ] {2a0e873e-413c-4d22-b3cf-016de50fec06} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:52.508301 [ 1276 ] {f37ac6ae-edde-494e-b457-95ee3d024f73} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54800) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:52.605256 [ 1276 ] {f37ac6ae-edde-494e-b457-95ee3d024f73} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:53.734515 [ 675 ] {d0166421-9576-4926-a889-9989bbb83f58} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54840) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:53.969344 [ 675 ] {d0166421-9576-4926-a889-9989bbb83f58} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103980 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:54.120473 [ 62780 ] {fe708cb9-8b7a-41a0-999c-6128c5f53660} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54852) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:54.279380 [ 69571 ] {3f06dc94-8367-4744-a154-adbabe0391c8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54864) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:54.287217 [ 62681 ] {5b2fe071-a449-4b2b-acf6-fc1970dcc38a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54882) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:54.288845 [ 62769 ] {1f945dde-022d-4cb8-b14c-531462460819} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54878) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:54.362165 [ 62681 ] {5b2fe071-a449-4b2b-acf6-fc1970dcc38a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:54.401906 [ 50481 ] {87fefc47-7b07-4151-b7ed-50bd0f49ecf3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54868) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:54.409878 [ 62780 ] {fe708cb9-8b7a-41a0-999c-6128c5f53660} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:54.478363 [ 50481 ] {87fefc47-7b07-4151-b7ed-50bd0f49ecf3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:54.502046 [ 69571 ] {3f06dc94-8367-4744-a154-adbabe0391c8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:54.641501 [ 62769 ] {1f945dde-022d-4cb8-b14c-531462460819} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:54.659849 [ 5967 ] {497bd542-1383-4712-a083-1d83fb5c60da} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54870) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:54.714633 [ 5967 ] {497bd542-1383-4712-a083-1d83fb5c60da} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:56.614404 [ 69570 ] {f3a33808-723e-4cdc-b256-99b9e00e4dca} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45754) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:56.773073 [ 69570 ] {f3a33808-723e-4cdc-b256-99b9e00e4dca} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:56.876686 [ 62673 ] {8c258940-8d8b-4dc1-82e0-2e88762d265a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45742) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:56.947899 [ 62679 ] {271592ab-c6f1-4fcd-978a-432004347de5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45756) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:56.970077 [ 62673 ] {8c258940-8d8b-4dc1-82e0-2e88762d265a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:57.107001 [ 62679 ] {271592ab-c6f1-4fcd-978a-432004347de5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:57.207140 [ 62685 ] {c7e97894-407e-4ae4-aa38-ff68ba90d7af} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45758) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:57.778419 [ 62685 ] {c7e97894-407e-4ae4-aa38-ff68ba90d7af} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:57.902677 [ 62675 ] {8ae1f4f4-83aa-4658-a3cd-b4d660c1a8c5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45768) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:58.054140 [ 62675 ] {8ae1f4f4-83aa-4658-a3cd-b4d660c1a8c5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:58.344064 [ 62672 ] {1fd76cfc-6c14-4a22-a9df-8583b81cdc2b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45784) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:58.363904 [ 12026 ] {beaee2da-e2c7-48f9-8368-22e3b23722db} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45774) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:58.457128 [ 12026 ] {beaee2da-e2c7-48f9-8368-22e3b23722db} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:58.488069 [ 62771 ] {a2c0cd5b-d3dd-4942-8d92-90e1921e19d3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45788) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:58.750538 [ 62672 ] {1fd76cfc-6c14-4a22-a9df-8583b81cdc2b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:58.849440 [ 60037 ] {ef52dc5f-6efe-4899-9610-c105d8c55b1f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45772) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:41:58.991624 [ 62771 ] {a2c0cd5b-d3dd-4942-8d92-90e1921e19d3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:41:59.067379 [ 60037 ] {ef52dc5f-6efe-4899-9610-c105d8c55b1f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:42:00.342646 [ 50481 ] {50c607e0-e593-4341-b48c-0d8fe94761d4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45826) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:00.403529 [ 50481 ] {50c607e0-e593-4341-b48c-0d8fe94761d4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:00.668452 [ 1276 ] {50d8b150-6d61-41b8-b7ba-076724f23047} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45802) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:42:00.731856 [ 1276 ] {50d8b150-6d61-41b8-b7ba-076724f23047} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:42:00.737395 [ 62680 ] {5d105324-a9b8-44c4-8aba-5ce2b9faf7be} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45822) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:00.811175 [ 62681 ] {a40bcd70-53d0-4034-8005-c7c1b49c0c73} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45816) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:00.837431 [ 62780 ] {dbc0bd14-cb5f-4d1b-bf0b-6f10bb92edd1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45834) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:00.888407 [ 62681 ] {a40bcd70-53d0-4034-8005-c7c1b49c0c73} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:00.961265 [ 69571 ] {80967df6-8da4-42d3-b37a-741713909448} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45836) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:00.981931 [ 62780 ] {dbc0bd14-cb5f-4d1b-bf0b-6f10bb92edd1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:00.990220 [ 62680 ] {5d105324-a9b8-44c4-8aba-5ce2b9faf7be} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:01.034906 [ 675 ] {46adc297-e565-4379-b579-173e0099b900} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45810) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:01.116771 [ 675 ] {46adc297-e565-4379-b579-173e0099b900} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:01.239075 [ 69571 ] {80967df6-8da4-42d3-b37a-741713909448} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:02.797349 [ 5967 ] {dc50ee0a-5c33-49c4-b678-7b7b37521ad0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45850) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:02.919729 [ 5967 ] {dc50ee0a-5c33-49c4-b678-7b7b37521ad0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:03.059201 [ 62769 ] {b0811951-d9a3-4e27-b65a-0cde71821613} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45864) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:03.066644 [ 62677 ] {b6ae78b0-5f6d-44fd-b959-1dd47b70c000} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45874) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:03.105412 [ 62769 ] {b0811951-d9a3-4e27-b65a-0cde71821613} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:03.152127 [ 62677 ] {b6ae78b0-5f6d-44fd-b959-1dd47b70c000} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:04.130095 [ 62679 ] {67813da8-145b-456f-9a9b-4491ca2507b0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45890) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:04.217046 [ 62679 ] {67813da8-145b-456f-9a9b-4491ca2507b0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:04.229442 [ 62678 ] {10628ebf-5ff1-4602-948d-8a25a2c49541} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2098960 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45880) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:04.323553 [ 62678 ] {10628ebf-5ff1-4602-948d-8a25a2c49541} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2098960 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:05.070753 [ 69570 ] {8590ba38-27a5-4c13-ac5d-8e46f4f2dcea} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103920 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58910) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:05.197657 [ 69570 ] {8590ba38-27a5-4c13-ac5d-8e46f4f2dcea} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103920 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:05.374824 [ 62685 ] {a82becd4-bee0-4749-98cf-c9a79dc40288} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58918) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:05.491175 [ 62675 ] {17ebc977-f249-43d5-a813-dae9bcd46020} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58916) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:05.582728 [ 62685 ] {a82becd4-bee0-4749-98cf-c9a79dc40288} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:05.639820 [ 62675 ] {17ebc977-f249-43d5-a813-dae9bcd46020} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:05.939553 [ 12026 ] {2043c38e-6e09-4c83-a880-888084c869fe} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58924) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:06.014316 [ 12026 ] {2043c38e-6e09-4c83-a880-888084c869fe} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:07.171272 [ 60037 ] {6ef11e65-33e5-4f89-b58c-70d2773ddfa4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58934) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:07.218716 [ 50481 ] {7d7136f0-ceb6-4f19-adfd-3187275b8003} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58958) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:07.330640 [ 60037 ] {6ef11e65-33e5-4f89-b58c-70d2773ddfa4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:07.486086 [ 62771 ] {2bf6cf6b-1b3d-43c2-8c73-3adaaad671da} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58946) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:07.601107 [ 62771 ] {2bf6cf6b-1b3d-43c2-8c73-3adaaad671da} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:07.647163 [ 62672 ] {eedb00aa-cd48-4173-9611-dd91bee5ce79} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58956) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:07.683989 [ 50481 ] {7d7136f0-ceb6-4f19-adfd-3187275b8003} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:07.772431 [ 675 ] {a787b2a2-0327-41a7-8ce5-beffb85ec9f9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58974) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:07.834540 [ 1276 ] {eda0eeb9-a2b5-4a7a-880d-7ec2aa1f4087} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58954) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:07.884826 [ 1276 ] {eda0eeb9-a2b5-4a7a-880d-7ec2aa1f4087} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:07.899869 [ 62780 ] {a286be48-da43-4dec-ad45-fa127c2a2dd0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58968) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:07.918284 [ 62672 ] {eedb00aa-cd48-4173-9611-dd91bee5ce79} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:08.153117 [ 675 ] {a787b2a2-0327-41a7-8ce5-beffb85ec9f9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:08.269437 [ 62780 ] {a286be48-da43-4dec-ad45-fa127c2a2dd0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:09.995364 [ 69571 ] {5b15b88a-f195-43c6-b13e-36a3f16e1502} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58978) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:10.041799 [ 69571 ] {5b15b88a-f195-43c6-b13e-36a3f16e1502} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:10.151140 [ 5967 ] {f69fdd40-4901-41c1-b18f-3f84317d8003} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58990) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:10.307148 [ 5967 ] {f69fdd40-4901-41c1-b18f-3f84317d8003} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:10.375148 [ 62677 ] {58853aa0-d8c1-4c6e-b5b0-6d85158da280} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59012) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:10.444315 [ 62677 ] {58853aa0-d8c1-4c6e-b5b0-6d85158da280} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:10.683198 [ 62769 ] {b99bd15b-75dd-47c4-a67d-71d94a6f4160} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59006) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:10.749493 [ 62769 ] {b99bd15b-75dd-47c4-a67d-71d94a6f4160} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:10.907058 [ 62679 ] {ff92cee3-8cf2-4279-8630-a52f2fc29dcf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59018) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:10.979575 [ 62679 ] {ff92cee3-8cf2-4279-8630-a52f2fc29dcf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:11.630234 [ 69570 ] {8bd75a3d-5eee-466a-874c-21fa775094d4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59044) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:11.723099 [ 69570 ] {8bd75a3d-5eee-466a-874c-21fa775094d4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:11.943369 [ 62675 ] {b66a54b7-6a2b-4339-99e8-b4caab528a36} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59058) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:12.064520 [ 62685 ] {6b2a8627-7ac6-4c6e-bf48-dbf1d9c90e71} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59048) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:12.151842 [ 62675 ] {b66a54b7-6a2b-4339-99e8-b4caab528a36} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:12.232320 [ 62678 ] {5cc4cd25-d78a-4447-91c8-612080ed17b3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59034) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:12.289584 [ 62678 ] {5cc4cd25-d78a-4447-91c8-612080ed17b3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:12.344644 [ 62685 ] {6b2a8627-7ac6-4c6e-bf48-dbf1d9c90e71} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:14.015097 [ 62771 ] {04cb6e9b-1ddb-4961-b085-ada9fd2d554c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59076) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:14.027275 [ 50481 ] {46d5f0f9-1f2d-4c62-84ad-0c64a5f9da90} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59078) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:14.078568 [ 62771 ] {04cb6e9b-1ddb-4961-b085-ada9fd2d554c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:14.087815 [ 50481 ] {46d5f0f9-1f2d-4c62-84ad-0c64a5f9da90} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:14.117226 [ 62681 ] {7c3acc7c-cb50-4892-9ead-0c6087d83fb9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59090) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:14.166481 [ 12026 ] {7742ffc0-8682-4490-a678-dac18dded1ea} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59060) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:14.166767 [ 60037 ] {8a5e0ac0-a0b1-4176-93a8-0b831cfd6efd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59064) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:14.211870 [ 1276 ] {dff19eb6-7072-4258-8f34-cf455dbe91d4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59106) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:14.221004 [ 12026 ] {7742ffc0-8682-4490-a678-dac18dded1ea} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:14.275415 [ 60037 ] {8a5e0ac0-a0b1-4176-93a8-0b831cfd6efd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:14.314663 [ 1276 ] {dff19eb6-7072-4258-8f34-cf455dbe91d4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:14.328803 [ 62681 ] {7c3acc7c-cb50-4892-9ead-0c6087d83fb9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:14.489882 [ 62672 ] {fbbce336-765f-4ee4-91f8-16e0d00c643e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56818) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:14.551499 [ 62672 ] {fbbce336-765f-4ee4-91f8-16e0d00c643e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:16.278237 [ 62673 ] {fe648279-b0fe-44ee-889e-a368f98eb399} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56838) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:16.328666 [ 62680 ] {abbfd9d5-ff62-4fda-880c-d80eeadc0681} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56854) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:16.384635 [ 62673 ] {fe648279-b0fe-44ee-889e-a368f98eb399} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:16.469744 [ 62680 ] {abbfd9d5-ff62-4fda-880c-d80eeadc0681} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:16.565441 [ 675 ] {3209c7bb-ecff-4404-aa6f-4f536dd26745} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56820) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:16.649893 [ 675 ] {3209c7bb-ecff-4404-aa6f-4f536dd26745} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:16.818819 [ 5967 ] {d55d3c4a-7399-4351-8175-1d30f5f72b34} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56864) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:16.901300 [ 5967 ] {d55d3c4a-7399-4351-8175-1d30f5f72b34} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:17.231196 [ 62780 ] {d297d7a2-c968-4e51-b50a-b0697bc427c2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56836) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:17.491263 [ 62780 ] {d297d7a2-c968-4e51-b50a-b0697bc427c2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:17.724929 [ 62769 ] {3b5a6ec0-2288-4c99-80f2-d3d99c953d63} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56868) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:17.856531 [ 62769 ] {3b5a6ec0-2288-4c99-80f2-d3d99c953d63} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:18.540523 [ 62679 ] {de429474-0bb6-4363-8659-ed89405b8209} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2104140 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56884) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:18.563410 [ 62678 ] {eb4eb64d-7674-4552-ac75-87badb65e081} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56892) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:18.649554 [ 62679 ] {de429474-0bb6-4363-8659-ed89405b8209} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2104140 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:18.674300 [ 62678 ] {eb4eb64d-7674-4552-ac75-87badb65e081} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.38 MiB (attempt to allocate chunk of 1578488 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:18.818832 [ 62677 ] {d8df360a-f1b3-4781-9fbf-15cc9f798155} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56880) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:18.939978 [ 62677 ] {d8df360a-f1b3-4781-9fbf-15cc9f798155} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:20.217304 [ 1276 ] {3983e725-bb63-467a-9dfc-3d20e86be609} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2104416 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56966) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:20.217511 [ 62675 ] {34b9c5d6-799c-42b8-9ead-e4cb40802dec} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56916) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:20.277343 [ 1276 ] {3983e725-bb63-467a-9dfc-3d20e86be609} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2104416 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:20.303838 [ 62675 ] {34b9c5d6-799c-42b8-9ead-e4cb40802dec} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:20.565609 [ 69570 ] {39781401-c583-4e08-8757-c6deaeb92113} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56900) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:20.580645 [ 12026 ] {92fecd06-4e67-4ef9-9054-19f6084640bf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56942) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:20.604542 [ 62771 ] {8d19d05f-a60e-4d98-993a-e279c36f17de} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56972) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:20.647723 [ 12026 ] {92fecd06-4e67-4ef9-9054-19f6084640bf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:20.759633 [ 60037 ] {e70d3c4c-d7d7-4e98-b30a-ec98682e5b65} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56958) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:20.783456 [ 62771 ] {8d19d05f-a60e-4d98-993a-e279c36f17de} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:20.856857 [ 60037 ] {e70d3c4c-d7d7-4e98-b30a-ec98682e5b65} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:20.865291 [ 69570 ] {39781401-c583-4e08-8757-c6deaeb92113} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:20.941104 [ 62685 ] {4cda90c7-ecb7-4942-b113-b297f54c05da} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56932) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:20.995379 [ 62685 ] {4cda90c7-ecb7-4942-b113-b297f54c05da} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:22.695351 [ 62680 ] {ce2758a5-c88d-4ae6-98e4-81500e637175} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56992) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:22.844650 [ 62680 ] {ce2758a5-c88d-4ae6-98e4-81500e637175} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:23.019335 [ 62673 ] {3e7f4e2f-51f6-4afe-af1f-f3178f4e25f8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2104140 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56976) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:23.095051 [ 675 ] {cf6044d9-450e-4c4e-9df0-f011f2c28faa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56994) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:23.154583 [ 675 ] {cf6044d9-450e-4c4e-9df0-f011f2c28faa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:23.192193 [ 62673 ] {3e7f4e2f-51f6-4afe-af1f-f3178f4e25f8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2104140 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:23.553168 [ 5967 ] {fa09443a-93ab-422b-a5fa-1ca3b9287bae} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:57008) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:23.686948 [ 5967 ] {fa09443a-93ab-422b-a5fa-1ca3b9287bae} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:23.756011 [ 62672 ] {01287ac5-8d91-4567-a45c-dc3a0d2eb8aa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56974) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:23.829225 [ 62672 ] {01287ac5-8d91-4567-a45c-dc3a0d2eb8aa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:23.908759 [ 62780 ] {2bda4036-e951-41c0-9cdc-8782102b0343} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:57012) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:24.021316 [ 62780 ] {2bda4036-e951-41c0-9cdc-8782102b0343} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:24.780757 [ 62769 ] {bb78c18d-f365-457a-8f12-c1ef13480bc1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52868) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:24.888652 [ 62678 ] {a529e174-ae54-455a-96b6-fe07bf09adc8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52892) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:24.929497 [ 62769 ] {bb78c18d-f365-457a-8f12-c1ef13480bc1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:24.945523 [ 62678 ] {a529e174-ae54-455a-96b6-fe07bf09adc8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:25.683134 [ 62679 ] {12059df9-50c3-4efa-b14f-b161ec5027f1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52882) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:25.784537 [ 62679 ] {12059df9-50c3-4efa-b14f-b161ec5027f1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:26.751877 [ 1276 ] {f187aba4-d9e8-4e0f-8a06-6a0fdfae42fb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52924) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:26.863672 [ 1276 ] {f187aba4-d9e8-4e0f-8a06-6a0fdfae42fb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:26.934511 [ 62771 ] {3c068a60-72a3-48d6-8d04-767b575c6d5e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52928) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:26.954271 [ 62677 ] {f60418bc-71d0-4c87-bbc3-c63bfa22fead} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52904) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:26.993148 [ 69571 ] {be5dfbff-fc46-424a-bdc4-d22d5022ad25} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52916) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:27.029135 [ 62677 ] {f60418bc-71d0-4c87-bbc3-c63bfa22fead} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:27.047004 [ 62771 ] {3c068a60-72a3-48d6-8d04-767b575c6d5e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:27.101988 [ 69571 ] {be5dfbff-fc46-424a-bdc4-d22d5022ad25} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:27.151669 [ 69570 ] {b41c2586-7d47-479f-a9a8-32a60a71b843} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52936) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:27.226605 [ 69570 ] {b41c2586-7d47-479f-a9a8-32a60a71b843} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:27.240149 [ 62675 ] {8f27d74f-906b-4363-944d-54c8495f0cde} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52918) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:27.291633 [ 12026 ] {c399f2b4-59e7-4f9f-8e44-802c4ad87ad6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52922) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:27.310109 [ 62675 ] {8f27d74f-906b-4363-944d-54c8495f0cde} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:27.432648 [ 12026 ] {c399f2b4-59e7-4f9f-8e44-802c4ad87ad6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:29.024345 [ 62685 ] {22cc9f06-0cc9-4db5-88e1-3e928afdcb29} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52952) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:29.085152 [ 60037 ] {83c0abeb-c57b-420b-98da-904660998836} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103454 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52954) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:29.177648 [ 60037 ] {83c0abeb-c57b-420b-98da-904660998836} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103454 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:29.247760 [ 62685 ] {22cc9f06-0cc9-4db5-88e1-3e928afdcb29} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:29.536295 [ 50481 ] {7cbfbf32-4211-48d7-a2c7-81665740b30e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52962) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:29.617858 [ 50481 ] {7cbfbf32-4211-48d7-a2c7-81665740b30e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:29.891223 [ 62681 ] {65065345-8b79-425c-8f26-4afe27548574} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52978) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:30.108387 [ 62681 ] {65065345-8b79-425c-8f26-4afe27548574} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:30.395695 [ 62673 ] {5049af31-dd33-4679-b057-e8c0bb9f6914} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53000) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:30.496293 [ 62673 ] {5049af31-dd33-4679-b057-e8c0bb9f6914} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:30.515389 [ 675 ] {3e76fcab-2443-4803-b853-e99f72f5ebf0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52994) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:30.582502 [ 675 ] {3e76fcab-2443-4803-b853-e99f72f5ebf0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:31.923870 [ 62780 ] {ed681312-a566-4f66-ae85-b6974f671976} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53008) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:32.068102 [ 5967 ] {0757df32-73a7-47f0-a094-dbc5943bc601} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53020) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:32.203430 [ 5967 ] {0757df32-73a7-47f0-a094-dbc5943bc601} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:32.365463 [ 62780 ] {ed681312-a566-4f66-ae85-b6974f671976} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:33.612122 [ 62769 ] {4fc01bca-aab0-432d-9cdd-a5d1bebb0383} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53024) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:33.751057 [ 62769 ] {4fc01bca-aab0-432d-9cdd-a5d1bebb0383} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:33.776504 [ 62677 ] {9f1071f4-20ed-4e94-80bf-29a4477c2685} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53042) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:33.867165 [ 62677 ] {9f1071f4-20ed-4e94-80bf-29a4477c2685} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:33.907403 [ 62679 ] {fa6a1261-6b0f-442c-9d74-6d0a0604b2e3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53054) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:33.978336 [ 62675 ] {136cc4d1-1768-4147-8f19-733e4ab48d9b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53070) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:34.027243 [ 62679 ] {fa6a1261-6b0f-442c-9d74-6d0a0604b2e3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:34.072091 [ 62675 ] {136cc4d1-1768-4147-8f19-733e4ab48d9b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:34.195385 [ 69570 ] {639e2250-9d36-4f47-b3c7-63ed1c61a300} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53060) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:34.260083 [ 69570 ] {639e2250-9d36-4f47-b3c7-63ed1c61a300} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:34.271194 [ 62678 ] {0ea522a8-195c-472d-b923-c82737b94d30} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53040) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:34.318694 [ 1276 ] {3703064a-bf26-465f-8e24-8d7317c09c95} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103796 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53058) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:34.394695 [ 1276 ] {3703064a-bf26-465f-8e24-8d7317c09c95} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103796 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:34.536342 [ 62678 ] {0ea522a8-195c-472d-b923-c82737b94d30} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:35.911499 [ 62685 ] {10d5384b-5a12-40cd-a5e2-3264aef17932} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56186) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:36.134908 [ 62685 ] {10d5384b-5a12-40cd-a5e2-3264aef17932} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:36.235554 [ 60037 ] {e0e2b61b-cc0d-4ce4-8bca-46ab5d837f89} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56178) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:36.299893 [ 60037 ] {e0e2b61b-cc0d-4ce4-8bca-46ab5d837f89} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2098624 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:36.367188 [ 12026 ] {7f2eb7be-9d79-4c02-a5aa-c818ded53e9f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56176) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:36.538640 [ 12026 ] {7f2eb7be-9d79-4c02-a5aa-c818ded53e9f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:36.598052 [ 62681 ] {5e9a4639-f952-4561-84e0-884529eea948} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56206) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:36.891829 [ 62681 ] {5e9a4639-f952-4561-84e0-884529eea948} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:37.182763 [ 50481 ] {c1ef4a5b-5f0b-4e3e-97fb-fbe608f614bd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56194) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:37.398756 [ 50481 ] {c1ef4a5b-5f0b-4e3e-97fb-fbe608f614bd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:37.555017 [ 62673 ] {42bc8bc1-4661-45dc-8aa6-1521e7cc870f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56208) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:42:37.887608 [ 62673 ] {42bc8bc1-4661-45dc-8aa6-1521e7cc870f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:42:38.175430 [ 675 ] {e22b810d-c362-4114-b708-dd01099daf3d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56216) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:38.244897 [ 675 ] {e22b810d-c362-4114-b708-dd01099daf3d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:38.636655 [ 5967 ] {ba5a27ca-f4f4-4a3f-ad96-efd3ed8b1969} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56218) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:38.694009 [ 5967 ] {ba5a27ca-f4f4-4a3f-ad96-efd3ed8b1969} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:40.206022 [ 62677 ] {fd5d9531-6d00-484c-ab32-39d651013c08} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56258) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:40.206836 [ 62679 ] {8f4948ab-4499-421d-a585-884eb397d97b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56268) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:40.243494 [ 62679 ] {8f4948ab-4499-421d-a585-884eb397d97b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:40.266371 [ 62780 ] {c101b4a0-d5c9-4585-a97b-cf94cb619a25} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56230) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:40.281765 [ 62677 ] {fd5d9531-6d00-484c-ab32-39d651013c08} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:40.333338 [ 62780 ] {c101b4a0-d5c9-4585-a97b-cf94cb619a25} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:40.333032 [ 62675 ] {570f0a06-4771-4dc0-9640-c6d2190fb789} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56272) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:40.415447 [ 69570 ] {cf0c2684-801a-420b-98e0-3494fd85ece3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56278) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:40.447486 [ 62769 ] {aa533b96-65ed-476e-95e2-82b0e09f50fa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56244) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:40.457219 [ 69570 ] {cf0c2684-801a-420b-98e0-3494fd85ece3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:40.572271 [ 1276 ] {2d7932d2-fe20-46b1-a047-0dfb41744c14} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56290) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:40.621675 [ 62675 ] {570f0a06-4771-4dc0-9640-c6d2190fb789} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:40.650646 [ 62769 ] {aa533b96-65ed-476e-95e2-82b0e09f50fa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:40.678649 [ 1276 ] {2d7932d2-fe20-46b1-a047-0dfb41744c14} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:42.018631 [ 62680 ] {2fb18933-8c24-4860-808f-a7e019b33ad0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 55.12 MiB (attempt to allocate chunk of 1181592 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 559 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53016) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:42:42.093302 [ 62678 ] {88fa17da-d736-4403-a6ef-75771fd5f7a4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56292) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:42.122018 [ 62680 ] {2fb18933-8c24-4860-808f-a7e019b33ad0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 55.12 MiB (attempt to allocate chunk of 1181592 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 559 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:42:42.161752 [ 62678 ] {88fa17da-d736-4403-a6ef-75771fd5f7a4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:42.292596 [ 62685 ] {427c51c8-6591-4790-8d89-fffb1fcc019d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56294) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:42.473268 [ 62685 ] {427c51c8-6591-4790-8d89-fffb1fcc019d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:42.523379 [ 62672 ] {226779ff-df26-46e6-bf11-0cad503a732b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56308) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:42.527398 [ 62771 ] {d2896ac3-e9c8-44e0-9d18-a9eecc8ed34f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56300) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:42.599063 [ 62771 ] {d2896ac3-e9c8-44e0-9d18-a9eecc8ed34f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:42.828224 [ 62672 ] {226779ff-df26-46e6-bf11-0cad503a732b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:43.788101 [ 69571 ] {b9f401a7-cd71-4762-86c8-e470bd6b3bb2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56314) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:43.862162 [ 69571 ] {b9f401a7-cd71-4762-86c8-e470bd6b3bb2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:44.687475 [ 60037 ] {502a5da6-ac00-434c-aa3a-145bff434f41} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56318) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:44.928840 [ 60037 ] {502a5da6-ac00-434c-aa3a-145bff434f41} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:45.046333 [ 50481 ] {f6e69119-9998-4d4c-8299-f71c5389c1b2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60950) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:45.239867 [ 50481 ] {f6e69119-9998-4d4c-8299-f71c5389c1b2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:45.560755 [ 62681 ] {8577af8c-ac9e-4a80-a670-7765179126f9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60956) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:45.719737 [ 62681 ] {8577af8c-ac9e-4a80-a670-7765179126f9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:46.484810 [ 62673 ] {0a0fbe4c-ecac-400e-bbfb-57130b0f3265} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60986) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:46.691771 [ 62679 ] {76c449dc-2bc0-49ba-9f76-969ab835d910} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32796) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:46.699976 [ 5967 ] {a0b94fe0-a40e-449c-aee5-cc49d6d6354e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32768) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:46.754427 [ 62679 ] {76c449dc-2bc0-49ba-9f76-969ab835d910} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:46.764754 [ 62673 ] {0a0fbe4c-ecac-400e-bbfb-57130b0f3265} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:46.792372 [ 5967 ] {a0b94fe0-a40e-449c-aee5-cc49d6d6354e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:46.817736 [ 675 ] {180b16bb-b660-496c-b11e-47b0563be6a7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:60972) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:46.867352 [ 62769 ] {fe51aba5-3ddb-4450-b9c8-913487eb8827} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32812) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:46.914962 [ 62677 ] {f3047b15-6e0e-4a3a-917c-6683e6e3c775} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 211 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32786) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:42:46.990944 [ 675 ] {180b16bb-b660-496c-b11e-47b0563be6a7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:47.025112 [ 62769 ] {fe51aba5-3ddb-4450-b9c8-913487eb8827} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:47.122443 [ 62677 ] {f3047b15-6e0e-4a3a-917c-6683e6e3c775} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 211 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:42:47.362692 [ 62780 ] {356beaaa-84d6-49d9-9dff-445b5d886f48} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32774) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:47.378919 [ 69570 ] {5ce70a34-e76f-4f72-9139-1c615e20b5a8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32824) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:47.455824 [ 69570 ] {5ce70a34-e76f-4f72-9139-1c615e20b5a8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:47.655520 [ 62780 ] {356beaaa-84d6-49d9-9dff-445b5d886f48} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:47.818609 [ 62685 ] {fe12d74f-09a5-4c10-958b-e778c740e7a3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32846) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:47.847835 [ 62685 ] {fe12d74f-09a5-4c10-958b-e778c740e7a3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:48.302984 [ 62680 ] {0e7577cf-e235-4a95-89f5-a09701c73ab6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32830) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:42:48.372682 [ 62680 ] {0e7577cf-e235-4a95-89f5-a09701c73ab6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:42:48.922508 [ 62771 ] {5b632636-85e8-4948-93d1-0be8b6b66c08} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32860) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:48.980560 [ 62678 ] {4e880de1-07a2-4a2c-afcd-f9882cdeca92} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32836) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:42:49.141002 [ 62771 ] {5b632636-85e8-4948-93d1-0be8b6b66c08} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:49.167510 [ 62678 ] {4e880de1-07a2-4a2c-afcd-f9882cdeca92} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:42:50.018169 [ 62672 ] {7b87a764-7ca5-4feb-9bfb-a3f11297db6d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1177824 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 31 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32864) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:42:50.284690 [ 62672 ] {7b87a764-7ca5-4feb-9bfb-a3f11297db6d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1177824 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_8_8_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 31 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:42:51.160464 [ 69571 ] {1aa5b616-cc2a-44e2-a307-f0623db434a4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32874) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:51.236964 [ 69571 ] {1aa5b616-cc2a-44e2-a307-f0623db434a4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:51.263325 [ 60037 ] {8aa8caa9-5e70-4062-aa4e-98bdf12ad05b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32886) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:51.418078 [ 60037 ] {8aa8caa9-5e70-4062-aa4e-98bdf12ad05b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:51.843409 [ 50481 ] {198d60f5-c8a4-4aba-addb-ec7708dcf4e5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32898) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:51.898926 [ 50481 ] {198d60f5-c8a4-4aba-addb-ec7708dcf4e5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:53.242055 [ 62681 ] {a3f53f44-7830-4b58-b288-d05739934b39} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32904) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:53.511934 [ 5967 ] {c7499d5a-eb34-4ced-aa5a-5d85a7bacbd5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32920) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:53.530749 [ 62681 ] {a3f53f44-7830-4b58-b288-d05739934b39} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:53.568779 [ 62675 ] {6ffd3abb-6fd2-46bb-8744-031027c0be96} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32908) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:53.591236 [ 5967 ] {c7499d5a-eb34-4ced-aa5a-5d85a7bacbd5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:53.605422 [ 675 ] {cf0bd124-cc74-4b14-9038-9d45566e95d9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32934) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:53.696674 [ 62675 ] {6ffd3abb-6fd2-46bb-8744-031027c0be96} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:53.764300 [ 675 ] {cf0bd124-cc74-4b14-9038-9d45566e95d9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:53.769111 [ 62677 ] {6399b27d-ce10-4b45-968c-a01fb267a6a7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32950) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:53.837891 [ 62677 ] {6399b27d-ce10-4b45-968c-a01fb267a6a7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:53.902903 [ 62673 ] {618e96f6-1f31-43b6-8afd-975b1c0e77f7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32914) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:53.915959 [ 62769 ] {6454321a-878e-4bb2-ad23-05eff1fb49f2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32948) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:53.953355 [ 62769 ] {6454321a-878e-4bb2-ad23-05eff1fb49f2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:53.985895 [ 62673 ] {618e96f6-1f31-43b6-8afd-975b1c0e77f7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:54.078460 [ 62679 ] {0e0fb814-9747-4511-b05d-eacca1b12896} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32954) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:54.207920 [ 62679 ] {0e0fb814-9747-4511-b05d-eacca1b12896} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:55.295124 [ 62685 ] {50eda0a2-1a24-44d4-ae84-e7c9d024bb74} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42038) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:55.354546 [ 62780 ] {ef9ccbee-9a80-4c3e-82da-bfc2f682eb30} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32960) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:55.448844 [ 62780 ] {ef9ccbee-9a80-4c3e-82da-bfc2f682eb30} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:55.612073 [ 62685 ] {50eda0a2-1a24-44d4-ae84-e7c9d024bb74} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:55.795392 [ 69570 ] {bc8d8ecd-f075-4635-bc3f-016fe8bd74c7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42054) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:55.975196 [ 69570 ] {bc8d8ecd-f075-4635-bc3f-016fe8bd74c7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:56.180640 [ 12026 ] {4db897ad-812a-4546-b836-ffd65dc83764} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42056) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:56.340324 [ 12026 ] {4db897ad-812a-4546-b836-ffd65dc83764} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:56.717096 [ 1276 ] {8604f86a-039e-475d-9362-3c1d98c348e8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42064) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:56.818130 [ 1276 ] {8604f86a-039e-475d-9362-3c1d98c348e8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102936 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:57.534419 [ 62771 ] {87270717-348c-47d1-a579-6bd91ea37a1c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42080) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:57.751143 [ 62672 ] {341f0ae6-c46f-4f9e-b86b-bbae7fbb5aa0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42092) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:57.773829 [ 62771 ] {87270717-348c-47d1-a579-6bd91ea37a1c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:58.161005 [ 62672 ] {341f0ae6-c46f-4f9e-b86b-bbae7fbb5aa0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:58.300549 [ 69571 ] {21b9894f-3fe4-4355-8d31-b2723207c3c3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42106) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:58.450870 [ 69571 ] {21b9894f-3fe4-4355-8d31-b2723207c3c3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:59.626361 [ 50481 ] {12d19f97-0928-4344-8cb4-fcfb6071818b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42128) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:59.679779 [ 675 ] {bb5b88a2-9af4-4cea-bfc6-84d096d36b6f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102888 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42148) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:59.745741 [ 50481 ] {12d19f97-0928-4344-8cb4-fcfb6071818b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:59.787643 [ 60037 ] {b1df2a34-6be7-4c18-8d54-45a7e75dc314} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42122) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:42:59.866869 [ 60037 ] {b1df2a34-6be7-4c18-8d54-45a7e75dc314} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:00.014158 [ 62681 ] {1632e4ff-9826-4b4b-ac74-1a46bb801af7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42132) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:00.072840 [ 62681 ] {1632e4ff-9826-4b4b-ac74-1a46bb801af7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:00.075156 [ 62680 ] {8af2f2bf-4051-4fde-b826-253626dd762d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42146) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:00.127535 [ 675 ] {bb5b88a2-9af4-4cea-bfc6-84d096d36b6f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102888 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:00.143091 [ 62680 ] {8af2f2bf-4051-4fde-b826-253626dd762d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:00.210895 [ 5967 ] {39b60465-61b3-4890-b0eb-bd69122a7d6b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42152) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:00.219462 [ 62769 ] {736a8f42-e42a-4280-90f5-80b3065d8352} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42158) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:00.261539 [ 5967 ] {39b60465-61b3-4890-b0eb-bd69122a7d6b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:00.277491 [ 62769 ] {736a8f42-e42a-4280-90f5-80b3065d8352} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:00.614792 [ 62673 ] {54c5a055-99ff-4e40-b80e-20778cbf0ffa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42170) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:00.672609 [ 62673 ] {54c5a055-99ff-4e40-b80e-20778cbf0ffa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:01.550870 [ 62677 ] {a4bf5058-feaf-4b8c-872b-4739e14b9792} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42180) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:01.659591 [ 62677 ] {a4bf5058-feaf-4b8c-872b-4739e14b9792} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:01.958037 [ 62780 ] {ae35a94e-975c-4b46-bf48-b82cfcdb7cf8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42186) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:02.039930 [ 62780 ] {ae35a94e-975c-4b46-bf48-b82cfcdb7cf8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:02.207975 [ 62685 ] {f4e2d228-9d35-40a9-82b2-ba1ed6d21d36} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42200) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:02.438854 [ 62685 ] {f4e2d228-9d35-40a9-82b2-ba1ed6d21d36} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:02.590068 [ 69570 ] {b3404901-7124-4464-aca2-25266192c267} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42214) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:02.684147 [ 69570 ] {b3404901-7124-4464-aca2-25266192c267} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:02.839144 [ 12026 ] {be5c1a34-10d3-47be-b72a-cfe567500f71} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42230) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:02.988431 [ 12026 ] {be5c1a34-10d3-47be-b72a-cfe567500f71} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:04.575104 [ 62771 ] {e4e5275b-1bb3-41f0-b832-95a1a0bf3d15} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42258) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:04.584937 [ 1276 ] {f7e41d62-f426-4e73-a2aa-5a31af2c8d36} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42246) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:04.648938 [ 62771 ] {e4e5275b-1bb3-41f0-b832-95a1a0bf3d15} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:04.654685 [ 1276 ] {f7e41d62-f426-4e73-a2aa-5a31af2c8d36} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:04.883145 [ 62672 ] {09846cbe-1268-4fee-8a29-c4bf5bfa33ff} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35030) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:05.054785 [ 62672 ] {09846cbe-1268-4fee-8a29-c4bf5bfa33ff} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:06.381252 [ 69571 ] {3b472708-7582-4713-bcfa-dad4836e7726} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35032) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:06.521356 [ 69571 ] {3b472708-7582-4713-bcfa-dad4836e7726} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:06.610165 [ 62681 ] {65a6e6c3-bda0-4fd6-8455-c6c1980cd61a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35046) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:06.667511 [ 62680 ] {68f01cea-0242-42c8-a2a2-1c0db4052d42} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35056) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:06.705951 [ 62681 ] {65a6e6c3-bda0-4fd6-8455-c6c1980cd61a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:06.812889 [ 62678 ] {76f8fc0b-e856-4fd2-a2e0-d31a1c013350} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35050) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:06.877650 [ 50481 ] {ca115878-8630-46be-b20b-d1b7135e52a0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35034) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:06.877268 [ 675 ] {c14c9a3e-8675-44bb-b497-50bc9f1d3476} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35054) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:06.883158 [ 62678 ] {76f8fc0b-e856-4fd2-a2e0-d31a1c013350} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:06.888144 [ 62680 ] {68f01cea-0242-42c8-a2a2-1c0db4052d42} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:06.943349 [ 675 ] {c14c9a3e-8675-44bb-b497-50bc9f1d3476} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:06.996846 [ 5967 ] {a26e8c3c-56df-4a16-a48e-0bae87609724} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35068) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:07.100124 [ 50481 ] {ca115878-8630-46be-b20b-d1b7135e52a0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:07.157843 [ 5967 ] {a26e8c3c-56df-4a16-a48e-0bae87609724} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:07.292969 [ 60037 ] {f2c4123a-e64b-408a-9fb0-2edbb8d69aab} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1181880 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 288 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35042) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:43:07.384462 [ 60037 ] {f2c4123a-e64b-408a-9fb0-2edbb8d69aab} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1181880 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 288 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:43:08.835095 [ 62679 ] {c426eec7-aeac-496b-9128-04fded7d0316} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35108) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:08.933906 [ 62679 ] {c426eec7-aeac-496b-9128-04fded7d0316} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:08.939109 [ 62673 ] {f0181ba2-b19d-499d-abc7-5d2fb1679d1a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35080) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:09.218551 [ 62673 ] {f0181ba2-b19d-499d-abc7-5d2fb1679d1a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:09.587287 [ 62677 ] {910abeda-836b-46e1-b567-f45855c3c4ad} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35102) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:09.653266 [ 62675 ] {7c62abc7-bc3b-421e-b316-9edc3bf5f958} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35114) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:09.806315 [ 62677 ] {910abeda-836b-46e1-b567-f45855c3c4ad} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:10.002597 [ 62675 ] {7c62abc7-bc3b-421e-b316-9edc3bf5f958} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:11.488261 [ 62685 ] {d7d5e4a6-22ec-4b5d-83ed-2e54161fa511} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35130) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:11.516827 [ 69570 ] {249b5a18-f65e-47f2-a036-355a64851dbe} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35138) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:11.678719 [ 62685 ] {d7d5e4a6-22ec-4b5d-83ed-2e54161fa511} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:11.702039 [ 69570 ] {249b5a18-f65e-47f2-a036-355a64851dbe} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:12.055024 [ 12026 ] {bc718270-40c0-4540-a69c-ccade78ecb85} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35154) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:12.090652 [ 12026 ] {bc718270-40c0-4540-a69c-ccade78ecb85} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:13.233737 [ 62672 ] {97d797ee-6bb6-4c58-b241-86ddb886e81c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35190) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:13.288492 [ 62672 ] {97d797ee-6bb6-4c58-b241-86ddb886e81c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:13.352095 [ 675 ] {584b0683-ba85-4928-8321-1043c51c3e85} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35208) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:13.351647 [ 62780 ] {1a46ea5b-fb49-4e7a-9780-fc37218400cd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35228) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:13.382657 [ 62681 ] {4b377481-789c-45e5-9b7e-e0d3a5f12caa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35206) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:13.430217 [ 62681 ] {4b377481-789c-45e5-9b7e-e0d3a5f12caa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:13.441005 [ 62780 ] {1a46ea5b-fb49-4e7a-9780-fc37218400cd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:13.474561 [ 1276 ] {e4739514-4bd6-421e-ac64-0e1b4ecef602} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35162) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:13.483059 [ 69571 ] {82445488-9841-4cb8-a32a-1e588909ef3a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35200) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:13.538831 [ 1276 ] {e4739514-4bd6-421e-ac64-0e1b4ecef602} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:13.598428 [ 69571 ] {82445488-9841-4cb8-a32a-1e588909ef3a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:13.645300 [ 62771 ] {d72accca-3a57-4cfe-8c20-521ae7af2c7a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35174) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:13.682096 [ 62771 ] {d72accca-3a57-4cfe-8c20-521ae7af2c7a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:13.715572 [ 675 ] {584b0683-ba85-4928-8321-1043c51c3e85} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:13.887782 [ 50481 ] {8c9daac1-7ace-40e9-9c88-19c95ce94500} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35220) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:14.106231 [ 50481 ] {8c9daac1-7ace-40e9-9c88-19c95ce94500} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1578184 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:16.091802 [ 62673 ] {4f15c762-7fa7-4ad8-b965-a357a27bda8d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33224) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:16.116251 [ 62677 ] {00ccd9ef-8075-45fa-8718-de98fbf631cc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33228) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:16.171198 [ 62679 ] {01a16122-51a7-4553-9fe3-edda491c318f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1181848 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 23 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33210) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:43:16.211573 [ 62673 ] {4f15c762-7fa7-4ad8-b965-a357a27bda8d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:16.427331 [ 62677 ] {00ccd9ef-8075-45fa-8718-de98fbf631cc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:16.481594 [ 62679 ] {01a16122-51a7-4553-9fe3-edda491c318f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 1181848 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 23 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:43:18.082420 [ 62675 ] {bba021cc-9309-4e9f-a4f5-f9a23d6b0724} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33240) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:18.201798 [ 62675 ] {bba021cc-9309-4e9f-a4f5-f9a23d6b0724} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:18.303937 [ 62685 ] {fd4282c5-3633-45fc-aaf3-d17ca6ef9bc8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33252) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:18.412582 [ 62685 ] {fd4282c5-3633-45fc-aaf3-d17ca6ef9bc8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102424 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:18.691232 [ 69570 ] {c4cdd9d4-0096-4c29-aa8c-0c65637befb8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33258) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:18.760893 [ 69570 ] {c4cdd9d4-0096-4c29-aa8c-0c65637befb8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:18.942543 [ 62769 ] {914f996d-e293-4bdc-bc03-70c88f0dea67} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.73 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_10_10_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 47 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35094) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:43:19.251261 [ 62769 ] {914f996d-e293-4bdc-bc03-70c88f0dea67} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.73 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_10_10_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 47 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:43:19.756153 [ 62681 ] {6ed97cd3-6ae3-4daf-a4b9-22dde0d43092} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33284) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:19.835861 [ 69571 ] {b8eb5aa7-4a80-4363-9c6b-ec81ef8a3acf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33300) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:19.884099 [ 62771 ] {a1e2026a-86f0-4ccb-a2ae-d36c49090d50} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33314) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:19.884109 [ 12026 ] {7606ce09-64bc-4262-b02e-abf30d5e6240} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33264) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:19.941540 [ 62681 ] {6ed97cd3-6ae3-4daf-a4b9-22dde0d43092} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:19.945895 [ 62771 ] {a1e2026a-86f0-4ccb-a2ae-d36c49090d50} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:19.947990 [ 69571 ] {b8eb5aa7-4a80-4363-9c6b-ec81ef8a3acf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:19.958028 [ 12026 ] {7606ce09-64bc-4262-b02e-abf30d5e6240} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:19.984657 [ 62672 ] {ae1e2cf0-2698-4e17-957b-324203dd8850} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33266) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:20.039285 [ 1276 ] {1af44012-2555-48ff-a5de-eaecc51a7dd4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33296) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:20.085847 [ 62672 ] {ae1e2cf0-2698-4e17-957b-324203dd8850} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:20.098510 [ 1276 ] {1af44012-2555-48ff-a5de-eaecc51a7dd4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:23.046377 [ 62780 ] {a18d6750-6b1c-47d2-a8c3-2f2c30ba2cfa} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33342) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:23.097930 [ 62780 ] {a18d6750-6b1c-47d2-a8c3-2f2c30ba2cfa} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:23.329902 [ 50481 ] {88bcf04e-1092-4275-a4e1-71e1c54af343} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33328) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:23.558941 [ 50481 ] {88bcf04e-1092-4275-a4e1-71e1c54af343} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:23.626442 [ 62677 ] {06a8bf92-0fb7-44a7-ab67-f3b87852ccc8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33358) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:23.745263 [ 62677 ] {06a8bf92-0fb7-44a7-ab67-f3b87852ccc8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:24.429678 [ 5967 ] {4d09fe03-80f7-475f-9287-cedeae301e8e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51970) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:24.510598 [ 5967 ] {4d09fe03-80f7-475f-9287-cedeae301e8e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:24.629287 [ 62673 ] {eadb21df-7116-4a6f-859d-9c988244cf07} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51964) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:24.690824 [ 62673 ] {eadb21df-7116-4a6f-859d-9c988244cf07} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:25.614088 [ 12026 ] {eeccfb41-6c84-405e-955b-449d71121b48} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52030) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:25.609238 [ 62769 ] {315cf97a-db9b-44cf-9c53-4e6d0ee96c1f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51994) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:25.667464 [ 69570 ] {d2d3ae41-4e5d-4845-ada9-205575591880} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52018) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:25.735735 [ 60037 ] {006d2885-1f3c-4cbc-a30d-78a5278f3140} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 55.11 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33198) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:43:25.738643 [ 62679 ] {9ab7b2e2-3db6-45f5-a593-13093856105f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51990) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:25.822302 [ 12026 ] {eeccfb41-6c84-405e-955b-449d71121b48} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:25.866010 [ 62685 ] {7c529812-ac22-4a25-bd41-77b08adced8e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52012) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:25.866370 [ 62769 ] {315cf97a-db9b-44cf-9c53-4e6d0ee96c1f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:25.884227 [ 60037 ] {006d2885-1f3c-4cbc-a30d-78a5278f3140} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 55.11 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:43:25.891604 [ 62679 ] {9ab7b2e2-3db6-45f5-a593-13093856105f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:25.892743 [ 69570 ] {d2d3ae41-4e5d-4845-ada9-205575591880} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:25.950003 [ 62771 ] {0f68de0f-4ac9-450b-ba9a-39891511e6e9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52042) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:25.976378 [ 62675 ] {72bb999d-0c2b-4423-813c-72b67b106055} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51996) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:26.006915 [ 62771 ] {0f68de0f-4ac9-450b-ba9a-39891511e6e9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:26.042860 [ 62675 ] {72bb999d-0c2b-4423-813c-72b67b106055} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:26.051550 [ 62685 ] {7c529812-ac22-4a25-bd41-77b08adced8e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:27.986953 [ 1276 ] {92767520-5c83-4f58-9cbf-a46eb7c1e3be} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52052) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:28.097463 [ 1276 ] {92767520-5c83-4f58-9cbf-a46eb7c1e3be} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103548 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:29.011268 [ 62672 ] {68505379-2e02-4bb9-8831-13663fa26ef2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52054) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:29.338563 [ 62680 ] {49f277ac-7f7c-4590-8f85-8df07f9d2aef} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.87 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33268) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:29.488453 [ 62680 ] {49f277ac-7f7c-4590-8f85-8df07f9d2aef} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.87 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:29.618103 [ 62672 ] {68505379-2e02-4bb9-8831-13663fa26ef2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:29.864493 [ 69571 ] {99caa575-4600-4d70-85a4-1b3c2f8bb59e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52068) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:29.914997 [ 675 ] {4a12c8fe-2f73-4cc2-a2f0-f1d05f7a7997} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.37 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 174 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33320) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:43:29.915220 [ 62677 ] {656b1877-4fea-4275-bc60-f3dfbad14413} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52082) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:30.004227 [ 62677 ] {656b1877-4fea-4275-bc60-f3dfbad14413} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:30.041199 [ 675 ] {4a12c8fe-2f73-4cc2-a2f0-f1d05f7a7997} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.37 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 174 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:43:30.120423 [ 69571 ] {99caa575-4600-4d70-85a4-1b3c2f8bb59e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:30.285965 [ 5967 ] {b4b18a26-9df0-4640-85fd-6b74a02c703c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52094) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:30.460570 [ 5967 ] {b4b18a26-9df0-4640-85fd-6b74a02c703c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:31.256536 [ 50481 ] {67a45284-4843-477c-8027-0958f00cbab5} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52128) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:31.299454 [ 62673 ] {812d045b-3632-4fec-bc3d-99b6eef03caf} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103480 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52102) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:31.310861 [ 50481 ] {67a45284-4843-477c-8027-0958f00cbab5} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:31.373008 [ 62673 ] {812d045b-3632-4fec-bc3d-99b6eef03caf} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103480 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:31.562654 [ 62675 ] {4fe32f1e-0ca6-40ee-99d7-1e9da07a5f92} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52172) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:31.687781 [ 62675 ] {4fe32f1e-0ca6-40ee-99d7-1e9da07a5f92} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:31.707119 [ 12026 ] {25d0eb02-df5e-4a61-9b41-a6bc633af6e9} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52104) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:31.788118 [ 12026 ] {25d0eb02-df5e-4a61-9b41-a6bc633af6e9} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:31.829217 [ 62681 ] {cc187de9-59b6-4ff4-adad-997808561e6a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52138) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:31.901276 [ 62679 ] {593f953b-3130-4a34-8a61-8779c2656c07} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52148) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:31.949796 [ 62681 ] {cc187de9-59b6-4ff4-adad-997808561e6a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:31.992033 [ 62679 ] {593f953b-3130-4a34-8a61-8779c2656c07} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:32.138223 [ 62769 ] {30df69f4-5d7a-40b6-8f30-5d1fe58e07e1} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52118) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:32.251865 [ 62769 ] {30df69f4-5d7a-40b6-8f30-5d1fe58e07e1} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:32.944835 [ 69570 ] {d483e437-dbc6-49a9-9d2d-1db5b2ebdfe4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52156) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:33.060607 [ 69570 ] {d483e437-dbc6-49a9-9d2d-1db5b2ebdfe4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:33.635166 [ 62685 ] {0c300a00-5c16-41b7-b44e-671afe799a37} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52186) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:33.688576 [ 62685 ] {0c300a00-5c16-41b7-b44e-671afe799a37} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:34.696689 [ 1276 ] {a7a6ee88-b432-4be0-9205-5817f7b209eb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39232) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:34.853227 [ 1276 ] {a7a6ee88-b432-4be0-9205-5817f7b209eb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:35.590627 [ 62678 ] {33e95fcb-c819-47d8-9d0e-a6b6f0abddcc} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.13 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51986) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:43:35.667980 [ 60037 ] {f4cd6120-72a0-403c-a0b2-7458bac90566} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39272) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:35.796625 [ 62678 ] {33e95fcb-c819-47d8-9d0e-a6b6f0abddcc} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.13 MiB (attempt to allocate chunk of 1181896 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_9_9_0/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 116 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:43:35.904173 [ 62672 ] {e2b74ea3-7cb6-44db-b99c-4bc88464b555} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39254) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:35.911242 [ 60037 ] {f4cd6120-72a0-403c-a0b2-7458bac90566} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:35.972037 [ 62672 ] {e2b74ea3-7cb6-44db-b99c-4bc88464b555} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:36.030870 [ 62771 ] {76a92f4d-1d5b-48a8-84b5-9dc6458e1976} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39242) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:36.113761 [ 62771 ] {76a92f4d-1d5b-48a8-84b5-9dc6458e1976} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:36.120085 [ 62677 ] {1ff735e4-4ab3-49cb-a9b3-ab14a2c8fb9d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39268) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:36.185678 [ 62677 ] {1ff735e4-4ab3-49cb-a9b3-ab14a2c8fb9d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:36.743092 [ 69571 ] {63065334-ed32-41bd-ac08-8114f2df92b7} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 673 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39276) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:43:36.830120 [ 69571 ] {63065334-ed32-41bd-ac08-8114f2df92b7} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 1181928 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 673 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:43:37.635582 [ 62780 ] {6043e005-ce26-4161-ab34-55cee94a3fef} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39308) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:37.704119 [ 62780 ] {6043e005-ce26-4161-ab34-55cee94a3fef} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:37.736344 [ 5967 ] {d155baa9-f72e-4984-87af-dad7251d0e9d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39292) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:37.814825 [ 50481 ] {907bca2b-5146-4d73-8a96-3c2cc5be32ed} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.40 MiB (attempt to allocate chunk of 1182144 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 57 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39298) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:43:37.870153 [ 5967 ] {d155baa9-f72e-4984-87af-dad7251d0e9d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:37.965990 [ 675 ] {e3d6c03d-c7a7-4127-b9ed-fae3a5cb0780} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39306) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:38.062917 [ 675 ] {e3d6c03d-c7a7-4127-b9ed-fae3a5cb0780} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:38.063081 [ 62680 ] {6f491c7f-3dd1-4bb1-a1f6-4fac433d19e2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39320) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:38.118347 [ 50481 ] {907bca2b-5146-4d73-8a96-3c2cc5be32ed} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.40 MiB (attempt to allocate chunk of 1182144 bytes), maximum: 50.00 MiB.: (while reading from part /var/lib/clickhouse/store/e72/e72cd1c3-3f2b-42f0-a350-c7008ed43b6a/all_1_6_1/ in table test_moilt85f.t (e72cd1c3-3f2b-42f0-a350-c7008ed43b6a) located on disk default of type local, from mark 57 with max_rows_to_read = 65536): While executing MergeTreeThread. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x0000000013870efa in /usr/bin/clickhouse 11. /build/src/Common/PODArray.h:165: void DB::PODArrayBase<8ul, 4096ul, Allocator, 63ul, 64ul>::realloc<>(unsigned long) @ 0x000000000b19cd02 in /usr/bin/clickhouse 12. /build/src/DataTypes/Serializations/SerializationString.cpp:246: DB::SerializationString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const @ 0x000000001ba8febf in /usr/bin/clickhouse 13. /build/src/DataTypes/Serializations/ISerialization.cpp:132: DB::ISerialization::deserializeBinaryBulkWithMultipleStreams(COW::immutable_ptr&, unsigned long, DB::ISerialization::DeserializeBinaryBulkSettings&, std::shared_ptr&, std::unordered_map::immutable_ptr, std::hash, std::equal_to, std::allocator::immutable_ptr>>>*) const @ 0x000000001ba14e72 in /usr/bin/clickhouse 14. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:376: DB::MergeTreeReaderCompact::readData(DB::NameAndTypePair const&, COW::immutable_ptr&, unsigned long, unsigned long, unsigned long, unsigned long, std::optional>) @ 0x000000001e096c8b in /usr/bin/clickhouse 15. /build/src/Storages/MergeTree/MergeTreeReaderCompact.cpp:234: DB::MergeTreeReaderCompact::readRows(unsigned long, unsigned long, bool, unsigned long, std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e095fee in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:105: DB::MergeTreeRangeReader::DelayedStream::readRows(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&, unsigned long) @ 0x000000001e0d1c0c in /usr/bin/clickhouse 17. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:179: DB::MergeTreeRangeReader::DelayedStream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d1ee4 in /usr/bin/clickhouse 18. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:291: DB::MergeTreeRangeReader::Stream::finalize(std::vector::immutable_ptr, std::allocator::immutable_ptr>>&) @ 0x000000001e0d27a5 in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1147: DB::MergeTreeRangeReader::startReadingChain(unsigned long, DB::MarkRanges&) @ 0x000000001e0dc331 in /usr/bin/clickhouse 20. /build/src/Storages/MergeTree/MergeTreeRangeReader.cpp:1036: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x000000001e0daa66 in /usr/bin/clickhouse 21. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:398: DB::IMergeTreeSelectAlgorithm::readFromPartImpl() @ 0x000000001e0c7faf in /usr/bin/clickhouse 22. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:441: DB::IMergeTreeSelectAlgorithm::readFromPart() @ 0x000000001e0c87b1 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp:165: DB::IMergeTreeSelectAlgorithm::read() @ 0x000000001e0c6a99 in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MergeTreeSource.cpp:226: DB::MergeTreeSource::tryGenerate() @ 0x000000001eea444a in /usr/bin/clickhouse 25. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 26. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 29. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 30. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 2024.05.01 13:43:38.134271 [ 62680 ] {6f491c7f-3dd1-4bb1-a1f6-4fac433d19e2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:38.584230 [ 62679 ] {47d454e3-b44f-4510-a013-773a13d2dde2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39346) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:38.642679 [ 62679 ] {47d454e3-b44f-4510-a013-773a13d2dde2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:38.812128 [ 62673 ] {9fff01e5-a4ed-444d-a148-5349c9501125} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39332) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:38.916094 [ 62673 ] {9fff01e5-a4ed-444d-a148-5349c9501125} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:40.199386 [ 62769 ] {42071745-d2e8-4554-bbed-85b89c56c58a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39352) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:40.290020 [ 62769 ] {42071745-d2e8-4554-bbed-85b89c56c58a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:41.047417 [ 62675 ] {1608b677-3a8c-4538-aa24-a694fe147719} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103336 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39366) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:41.146469 [ 62685 ] {249c9356-29a9-43f0-8e05-11505500bc13} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39380) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:41.171124 [ 62675 ] {1608b677-3a8c-4538-aa24-a694fe147719} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103336 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:41.200309 [ 62685 ] {249c9356-29a9-43f0-8e05-11505500bc13} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:42.447184 [ 62678 ] {397b98cf-7450-49b7-add4-6c27ede2dbcb} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39404) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:42.550959 [ 62678 ] {397b98cf-7450-49b7-add4-6c27ede2dbcb} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102472 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:42.686621 [ 62771 ] {4b93b7e0-3e64-4c11-8288-cf38df13c930} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39420) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:42.695935 [ 1276 ] {142746c5-c774-4056-ac8b-f4de7927e4ee} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39410) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:42.720589 [ 69570 ] {4c9131d6-ce0f-46fd-a126-6afd95675222} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39394) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:42.780578 [ 1276 ] {142746c5-c774-4056-ac8b-f4de7927e4ee} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:42.798616 [ 69570 ] {4c9131d6-ce0f-46fd-a126-6afd95675222} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102958 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:42.848264 [ 62771 ] {4b93b7e0-3e64-4c11-8288-cf38df13c930} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:42.860364 [ 12026 ] {eab26d18-d64e-45a7-a550-8642fde86540} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39406) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:42.986711 [ 12026 ] {eab26d18-d64e-45a7-a550-8642fde86540} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:43.767031 [ 62677 ] {173e5ee2-48f5-4444-b026-fd6f9899af78} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39434) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:43.899280 [ 62677 ] {173e5ee2-48f5-4444-b026-fd6f9899af78} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:44.432995 [ 5967 ] {ba3cb40d-5a36-40fd-abdb-c17ff4b51959} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102888 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39468) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:44.514304 [ 5967 ] {ba3cb40d-5a36-40fd-abdb-c17ff4b51959} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102888 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:44.718964 [ 62672 ] {d7b5ff42-98cf-4e55-a7fa-51a6439d0fb0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39448) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:44.761022 [ 62780 ] {afb103b7-914f-4a2b-b0db-3b76328942e2} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39456) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:44.815242 [ 62672 ] {d7b5ff42-98cf-4e55-a7fa-51a6439d0fb0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:44.828335 [ 675 ] {b25a3ead-c5aa-4e0f-851c-03b0a4996c0b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39480) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:44.834021 [ 62780 ] {afb103b7-914f-4a2b-b0db-3b76328942e2} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:44.997363 [ 62679 ] {b62f557b-4c0e-4010-ac3d-1db62f4de90d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:57982) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:45.092723 [ 62679 ] {b62f557b-4c0e-4010-ac3d-1db62f4de90d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:45.135563 [ 675 ] {b25a3ead-c5aa-4e0f-851c-03b0a4996c0b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:45.258287 [ 50481 ] {72c192da-e7f6-4d62-86b4-6965479bf4c0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39486) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:45.323715 [ 50481 ] {72c192da-e7f6-4d62-86b4-6965479bf4c0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.88 MiB (attempt to allocate chunk of 0 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 13:43:45.643182 [ 62680 ] {61bb4d33-a900-416e-9ca2-c3e19ae7a74b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:57976) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:45.877548 [ 62680 ] {61bb4d33-a900-416e-9ca2-c3e19ae7a74b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.02 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:46.603203 [ 62673 ] {2861931d-7931-4d3f-995c-b6d68b9ff5cd} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:57992) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:46.812336 [ 62673 ] {2861931d-7931-4d3f-995c-b6d68b9ff5cd} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:47.243921 [ 62769 ] {7a0e6ac4-2144-439f-8fb1-7898dbf15a07} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58006) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:47.294496 [ 62769 ] {7a0e6ac4-2144-439f-8fb1-7898dbf15a07} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:48.210776 [ 69571 ] {e15bc9ba-fd01-49a9-a2e5-5607d57a1c75} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58016) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:48.534971 [ 69571 ] {e15bc9ba-fd01-49a9-a2e5-5607d57a1c75} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:48.838912 [ 62685 ] {9d6cef94-9e45-4ae2-bd38-ee79bdb6d26c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58036) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:48.943012 [ 62675 ] {c46121de-7ce8-40d8-b7af-98d214b2ab1f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58028) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:48.951261 [ 1276 ] {ccfa3426-57f7-4a6e-8a25-0a1601600fc6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58042) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:49.013452 [ 62675 ] {c46121de-7ce8-40d8-b7af-98d214b2ab1f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:49.100598 [ 69570 ] {119552c7-1002-4363-b0b7-8d410faed8d3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58038) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:49.194914 [ 62678 ] {3fb9967c-3004-4112-95c1-dd4e5f454ede} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58032) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:49.195265 [ 1276 ] {ccfa3426-57f7-4a6e-8a25-0a1601600fc6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:49.224914 [ 69570 ] {119552c7-1002-4363-b0b7-8d410faed8d3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:49.256966 [ 62678 ] {3fb9967c-3004-4112-95c1-dd4e5f454ede} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:49.264745 [ 62685 ] {9d6cef94-9e45-4ae2-bd38-ee79bdb6d26c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:49.858209 [ 12026 ] {b773aeb5-40e8-4f5c-b1a9-73aec005ff44} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58052) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:49.938276 [ 12026 ] {b773aeb5-40e8-4f5c-b1a9-73aec005ff44} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:50.740887 [ 62677 ] {92f2ab2e-b447-4ff0-bfd6-340121676eb0} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58058) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:50.933910 [ 62677 ] {92f2ab2e-b447-4ff0-bfd6-340121676eb0} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.00 MiB (attempt to allocate chunk of 2103384 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:51.222033 [ 5967 ] {884ec0c5-7702-4dea-98b6-2706930b1bc6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58066) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:51.248823 [ 62771 ] {7aa8026f-89bb-4df1-8244-c9c91ce10a93} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1579260 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58070) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:51.334750 [ 62771 ] {7aa8026f-89bb-4df1-8244-c9c91ce10a93} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.50 MiB (attempt to allocate chunk of 1579260 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:51.355543 [ 5967 ] {884ec0c5-7702-4dea-98b6-2706930b1bc6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:51.870103 [ 675 ] {04732045-57e4-4ed6-9ac1-3b345a5dd856} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58098) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:52.033487 [ 675 ] {04732045-57e4-4ed6-9ac1-3b345a5dd856} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 51.51 MiB (attempt to allocate chunk of 2103596 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:52.043125 [ 60037 ] {9f40c899-14c5-40ed-9644-e0910fc59669} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58078) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:52.103974 [ 60037 ] {9f40c899-14c5-40ed-9644-e0910fc59669} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:52.140797 [ 62681 ] {30aa010f-4228-4ac7-a0b7-c0e84f057c16} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58092) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:52.264304 [ 50481 ] {5dea91d2-0933-47c7-aa1a-073c2e91bef8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58108) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:52.335655 [ 62681 ] {30aa010f-4228-4ac7-a0b7-c0e84f057c16} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:52.700570 [ 50481 ] {5dea91d2-0933-47c7-aa1a-073c2e91bef8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:54.113278 [ 62780 ] {b1a56658-2e62-4269-9264-0bb1e3b2f486} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58122) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:54.238078 [ 62780 ] {b1a56658-2e62-4269-9264-0bb1e3b2f486} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:54.278369 [ 62680 ] {ee04e24b-17de-4d67-84e8-ff54ac55d95a} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58134) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:54.633761 [ 62680 ] {ee04e24b-17de-4d67-84e8-ff54ac55d95a} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:55.297354 [ 62673 ] {c8213d68-6a66-4c0a-8627-c07c1acf2ef8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54352) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:55.479546 [ 62673 ] {c8213d68-6a66-4c0a-8627-c07c1acf2ef8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103502 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:55.678828 [ 1276 ] {93c01175-338f-4e6d-8f40-ccc7f57410f8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54402) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:55.683893 [ 62769 ] {1e369acd-4bed-4bfa-9c08-bf9ce4261391} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54364) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:55.753961 [ 62769 ] {1e369acd-4bed-4bfa-9c08-bf9ce4261391} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:55.820241 [ 1276 ] {93c01175-338f-4e6d-8f40-ccc7f57410f8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2103160 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:55.851592 [ 62675 ] {825c3cec-fad2-4288-8784-051fe7efebde} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54382) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:55.903592 [ 62675 ] {825c3cec-fad2-4288-8784-051fe7efebde} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.01 MiB (attempt to allocate chunk of 2103112 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:55.936731 [ 69570 ] {3823ee00-e103-4c2c-a01a-93681fc30462} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54394) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:55.997475 [ 69570 ] {3823ee00-e103-4c2c-a01a-93681fc30462} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.029206 [ 62679 ] {395dc675-60d3-465a-b7c8-ac134decf84d} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54368) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.088878 [ 62678 ] {88308376-deeb-4bbd-9c54-84324f6b6b25} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54404) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.100879 [ 62679 ] {395dc675-60d3-465a-b7c8-ac134decf84d} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.117462 [ 62678 ] {88308376-deeb-4bbd-9c54-84324f6b6b25} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.346888 [ 62771 ] {2560d2c5-8625-41d1-8782-c39f63380d10} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54424) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.367468 [ 62685 ] {d1851a67-57df-4fba-86e5-b45d06879b9f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54410) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.396915 [ 62685 ] {d1851a67-57df-4fba-86e5-b45d06879b9f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102680 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.400304 [ 5967 ] {82a35963-73f8-46f7-b585-f4a4c883a55e} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54428) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.420631 [ 62677 ] {2cb5cdad-2b3f-4b59-a053-8dce2bf1b8a4} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54414) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.437940 [ 5967 ] {82a35963-73f8-46f7-b585-f4a4c883a55e} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.438543 [ 62771 ] {2560d2c5-8625-41d1-8782-c39f63380d10} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.465223 [ 62677 ] {2cb5cdad-2b3f-4b59-a053-8dce2bf1b8a4} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.485874 [ 675 ] {581ec297-1d83-434b-9b17-aeffcbd39d79} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54438) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.497380 [ 62681 ] {abad9867-9cd1-4829-a48e-58d859e4c143} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54450) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.508763 [ 675 ] {581ec297-1d83-434b-9b17-aeffcbd39d79} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102728 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.510277 [ 60037 ] {9fdc045a-1b24-4eb8-a23c-4e6a1dd6faee} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54448) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.520576 [ 62681 ] {abad9867-9cd1-4829-a48e-58d859e4c143} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.527360 [ 60037 ] {9fdc045a-1b24-4eb8-a23c-4e6a1dd6faee} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 52.01 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.552296 [ 50481 ] {9809c38a-12a7-40fa-a0c1-bd3b4d44497b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54464) (in query: select count(distinct s) from test_moilt85f.t settings max_memory_usage = '50Mi'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:43:56.563978 [ 50481 ] {9809c38a-12a7-40fa-a0c1-bd3b4d44497b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 50.00 MiB (attempt to allocate chunk of 2102776 bytes), maximum: 50.00 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableCell, UInt128TrivialHash, HashTableNoState>, UInt128TrivialHash, HashTableGrower<3ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016cb3c2a in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::AggregateFunctionUniq>::addBatchSinglePlace(unsigned long, unsigned long, char*, DB::IColumn const**, DB::Arena*, long) const @ 0x0000000016c80240 in /usr/bin/clickhouse 14. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeWithoutKeyImpl(char*&, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, DB::Arena*) const @ 0x000000001c0d388e in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1586: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015baf in /usr/bin/clickhouse 16. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 17. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:44:11.888340 [ 5967 ] {2c83844b-1a13-4776-b634-183c24cc6ef0} executeQuery: Code: 36. DB::Exception: Replicated database requires 3 arguments: zookeeper path, shard name and replica name. (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53792) (comment: 02762_replicated_database_no_args.sql) (in query: create database replicated_db_no_args engine=Replicated;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [86]) @ 0x000000000f1f51be in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseFactory.cpp:289: DB::DatabaseFactory::getImpl(DB::ASTCreateQuery const&, String const&, std::shared_ptr) @ 0x000000001c7fe422 in /usr/bin/clickhouse 7. /build/src/Databases/DatabaseFactory.cpp:110: DB::DatabaseFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr) @ 0x000000001c7fc2cf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:279: DB::InterpreterCreateQuery::createDatabase(DB::ASTCreateQuery&) @ 0x000000001c7da360 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1698: DB::InterpreterCreateQuery::execute() @ 0x000000001c7eda7f in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:44:11.889272 [ 5967 ] {2c83844b-1a13-4776-b634-183c24cc6ef0} TCPHandler: Code: 36. DB::Exception: Replicated database requires 3 arguments: zookeeper path, shard name and replica name. (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [86]) @ 0x000000000f1f51be in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseFactory.cpp:289: DB::DatabaseFactory::getImpl(DB::ASTCreateQuery const&, String const&, std::shared_ptr) @ 0x000000001c7fe422 in /usr/bin/clickhouse 7. /build/src/Databases/DatabaseFactory.cpp:110: DB::DatabaseFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr) @ 0x000000001c7fc2cf in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:279: DB::InterpreterCreateQuery::createDatabase(DB::ASTCreateQuery&) @ 0x000000001c7da360 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1698: DB::InterpreterCreateQuery::execute() @ 0x000000001c7eda7f in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:44:48.648540 [ 943 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr2&part=all_2_2_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:48.651791 [ 945 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr2&part=all_2_2_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:48.673171 [ 939 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr2&part=all_2_2_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:48.816661 [ 943 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr2&part=all_2_2_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:49.435237 [ 945 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr2&part=all_2_2_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:49.784442 [ 942 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr2&part=all_2_2_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:49.953314 [ 939 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr2&part=all_2_2_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:50.375880 [ 943 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr2&part=all_2_2_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:50.546478 [ 945 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr2&part=all_2_2_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:50.548193 [ 942 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr2&part=all_2_2_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:50.578964 [ 940 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr2&part=all_2_2_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:50.580155 [ 945 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr2&part=all_2_2_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:50.609546 [ 939 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr4&part=all_4_4_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:50.624365 [ 944 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr4&part=all_4_4_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:52.661806 [ 945 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr1&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:52.662805 [ 943 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr1&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:52.663883 [ 942 ] {} test_jdyytcur.r3 (3d8cbd05-3ed3-499f-8292-7f760772114b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr1&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:52.689219 [ 944 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr1&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:52.691926 [ 939 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr1&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:53.256145 [ 940 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr1&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:53.377443 [ 938 ] {} test_jdyytcur.r3 (3d8cbd05-3ed3-499f-8292-7f760772114b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr1&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:53.488463 [ 944 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr1&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:53.702218 [ 945 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr1&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:53.925520 [ 940 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr1&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:54.305323 [ 938 ] {} test_jdyytcur.r3 (3d8cbd05-3ed3-499f-8292-7f760772114b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr1&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:54.351299 [ 944 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr1&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:54.383658 [ 945 ] {} test_jdyytcur.r2 (407ce003-2395-4a47-9433-8f0d4a35845e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr1&part=all_6_6_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:54.383931 [ 940 ] {} test_jdyytcur.r2 (407ce003-2395-4a47-9433-8f0d4a35845e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr1&part=all_8_8_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:54.385745 [ 939 ] {} test_jdyytcur.r2 (407ce003-2395-4a47-9433-8f0d4a35845e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr1&part=all_7_7_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:56.405259 [ 943 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_12_12_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:56.406641 [ 945 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_12_12_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:56.521745 [ 947 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_12_12_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:56.522568 [ 940 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_12_12_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:56.523830 [ 944 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:56.645907 [ 943 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_12_12_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:56.648395 [ 938 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:56.649132 [ 942 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_12_12_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:56.650296 [ 940 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:56.650505 [ 947 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:57.051604 [ 944 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:57.054381 [ 938 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_12_12_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:57.055063 [ 939 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:57.238272 [ 944 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:57.240585 [ 947 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_12_12_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:57.240751 [ 943 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:57.719852 [ 945 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:57.721033 [ 939 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_12_12_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:57.834136 [ 938 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:57.835053 [ 947 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_12_12_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:57.897411 [ 945 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_12_12_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:57.897453 [ 939 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:57.897553 [ 942 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_13_13_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:58.102865 [ 943 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_12_12_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:58.105323 [ 947 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:58.135039 [ 945 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_12_12_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:58.142908 [ 943 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:58.146773 [ 947 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_12_12_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:58.267810 [ 940 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_12_12_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:58.267797 [ 926 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {407ce003-2395-4a47-9433-8f0d4a35845e::all_0_14_3}: Code: 234. DB::Exception: No active replica has part all_0_14_3 or covering part (cannot execute queue-0000000017: MERGE_PARTS with virtual parts [all_0_14_3]). (NO_REPLICA_HAS_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&&) @ 0x000000001abfb6c8 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:1933: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7caef8 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c35 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c15 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001ddf6bf5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001ddf6bbd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:58.267872 [ 945 ] {} test_jdyytcur.r5 (8c7f3f50-6e3f-4132-952e-4a4fbec01251): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:58.267957 [ 939 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_14_14_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:58.443612 [ 922 ] {} 572b9d4f-14f9-4e99-a159-567963cda1c9::all_0_14_3 (MergeFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_0_14_3&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:58.443774 [ 944 ] {} test_jdyytcur.r1 (eaf781a0-ff91-4acc-8643-87fe28603342): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_0_14_3&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:58.443873 [ 943 ] {} test_jdyytcur.r2 (407ce003-2395-4a47-9433-8f0d4a35845e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_0_14_3&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:44:58.444596 [ 922 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {572b9d4f-14f9-4e99-a159-567963cda1c9::all_0_14_3}: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr3&part=all_0_14_3&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.385227 [ 947 ] {} test_jdyytcur.r2 (407ce003-2395-4a47-9433-8f0d4a35845e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_18_18_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.387185 [ 938 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_18_18_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.494595 [ 940 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_18_18_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.497321 [ 939 ] {} test_jdyytcur.r2 (407ce003-2395-4a47-9433-8f0d4a35845e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_18_18_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.525150 [ 943 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_18_18_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.543636 [ 939 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_18_18_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.543915 [ 929 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {3d8cbd05-3ed3-499f-8292-7f760772114b::all_0_19_4}: Code: 234. DB::Exception: No active replica has part all_0_19_4 or covering part (cannot execute queue-0000000023: MERGE_PARTS with virtual parts [all_0_19_4]). (NO_REPLICA_HAS_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&&) @ 0x000000001abfb6c8 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:1933: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7caef8 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c35 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c15 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001ddf6bf5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001ddf6bbd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.545773 [ 925 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {eaf781a0-ff91-4acc-8643-87fe28603342::all_0_19_4}: Code: 234. DB::Exception: No active replica has part all_0_19_4 or covering part (cannot execute queue-0000000023: MERGE_PARTS with virtual parts [all_0_19_4]). (NO_REPLICA_HAS_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&&) @ 0x000000001abfb6c8 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:1933: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7caef8 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c35 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c15 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001ddf6bf5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001ddf6bbd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.547472 [ 945 ] {} test_jdyytcur.r2 (407ce003-2395-4a47-9433-8f0d4a35845e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_18_18_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.552412 [ 927 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {3d8cbd05-3ed3-499f-8292-7f760772114b::all_0_19_4}: Code: 234. DB::Exception: No active replica has part all_0_19_4 or covering part (cannot execute queue-0000000023: MERGE_PARTS with virtual parts [all_0_19_4]). (NO_REPLICA_HAS_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&&) @ 0x000000001abfb6c8 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:1933: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7caef8 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c35 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c15 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001ddf6bf5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001ddf6bbd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.554143 [ 916 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {eaf781a0-ff91-4acc-8643-87fe28603342::all_0_19_4}: Code: 234. DB::Exception: No active replica has part all_0_19_4 or covering part (cannot execute queue-0000000023: MERGE_PARTS with virtual parts [all_0_19_4]). (NO_REPLICA_HAS_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&&) @ 0x000000001abfb6c8 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:1933: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7caef8 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c35 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c15 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001ddf6bf5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001ddf6bbd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.560132 [ 926 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {3d8cbd05-3ed3-499f-8292-7f760772114b::all_0_19_4}: Code: 234. DB::Exception: No active replica has part all_0_19_4 or covering part (cannot execute queue-0000000023: MERGE_PARTS with virtual parts [all_0_19_4]). (NO_REPLICA_HAS_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&&) @ 0x000000001abfb6c8 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:1933: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7caef8 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c35 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c15 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001ddf6bf5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001ddf6bbd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.561707 [ 915 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {eaf781a0-ff91-4acc-8643-87fe28603342::all_0_19_4}: Code: 234. DB::Exception: No active replica has part all_0_19_4 or covering part (cannot execute queue-0000000023: MERGE_PARTS with virtual parts [all_0_19_4]). (NO_REPLICA_HAS_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&&) @ 0x000000001abfb6c8 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:1933: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7caef8 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c35 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c15 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001ddf6bf5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001ddf6bbd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.675065 [ 947 ] {} test_jdyytcur.r2 (407ce003-2395-4a47-9433-8f0d4a35845e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_20_20_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.677857 [ 920 ] {} 407ce003-2395-4a47-9433-8f0d4a35845e::all_0_19_4 (MergeFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_0_19_4&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.678425 [ 923 ] {} 572b9d4f-14f9-4e99-a159-567963cda1c9::all_0_19_4 (MergeFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_0_19_4&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.678771 [ 938 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_20_20_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.679467 [ 923 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {572b9d4f-14f9-4e99-a159-567963cda1c9::all_0_19_4}: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_0_19_4&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.682667 [ 920 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {407ce003-2395-4a47-9433-8f0d4a35845e::all_0_19_4}: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_0_19_4&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.687790 [ 945 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_0_19_4&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.689024 [ 942 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_20_20_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.689472 [ 940 ] {} test_jdyytcur.r2 (407ce003-2395-4a47-9433-8f0d4a35845e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_0_19_4&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:00.694280 [ 943 ] {} test_jdyytcur.r2 (407ce003-2395-4a47-9433-8f0d4a35845e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_20_20_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:01.158701 [ 945 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_20_20_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:01.158938 [ 925 ] {} 572b9d4f-14f9-4e99-a159-567963cda1c9::all_0_19_4 (MergeFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_0_19_4&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:01.160102 [ 925 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {572b9d4f-14f9-4e99-a159-567963cda1c9::all_0_19_4}: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_0_19_4&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:01.169648 [ 942 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_20_20_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:01.170809 [ 939 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_0_19_4&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:01.659828 [ 926 ] {} 572b9d4f-14f9-4e99-a159-567963cda1c9::all_0_19_4 (MergeFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_0_19_4&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:01.660722 [ 926 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {572b9d4f-14f9-4e99-a159-567963cda1c9::all_0_19_4}: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_0_19_4&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:01.665194 [ 943 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_20_20_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:01.671208 [ 944 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_0_19_4&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:01.778111 [ 942 ] {} test_jdyytcur.r2 (407ce003-2395-4a47-9433-8f0d4a35845e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_20_20_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:01.778312 [ 920 ] {} 407ce003-2395-4a47-9433-8f0d4a35845e::all_0_19_4 (MergeFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_0_19_4&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:01.779261 [ 920 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {407ce003-2395-4a47-9433-8f0d4a35845e::all_0_19_4}: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_0_19_4&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:01.789018 [ 938 ] {} test_jdyytcur.r2 (407ce003-2395-4a47-9433-8f0d4a35845e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_20_20_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:01.789500 [ 939 ] {} test_jdyytcur.r2 (407ce003-2395-4a47-9433-8f0d4a35845e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr5&part=all_0_19_4&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:04.430786 [ 916 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {eaf781a0-ff91-4acc-8643-87fe28603342::all_0_24_5}: Code: 234. DB::Exception: No active replica has part all_0_24_5 or covering part (cannot execute queue-0000000029: MERGE_PARTS with virtual parts [all_0_24_5]). (NO_REPLICA_HAS_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&&) @ 0x000000001abfb6c8 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:1933: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7caef8 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c35 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c15 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001ddf6bf5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001ddf6bbd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:04.431306 [ 917 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {8c7f3f50-6e3f-4132-952e-4a4fbec01251::all_0_24_5}: Code: 234. DB::Exception: No active replica has part all_0_24_5 or covering part (cannot execute queue-0000000029: MERGE_PARTS with virtual parts [all_0_24_5]). (NO_REPLICA_HAS_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&&) @ 0x000000001abfb6c8 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:1933: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7caef8 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c35 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c15 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001ddf6bf5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001ddf6bbd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:04.435403 [ 922 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {407ce003-2395-4a47-9433-8f0d4a35845e::all_0_24_5}: Code: 234. DB::Exception: No active replica has part all_0_24_5 or covering part (cannot execute queue-0000000029: MERGE_PARTS with virtual parts [all_0_24_5]). (NO_REPLICA_HAS_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&&) @ 0x000000001abfb6c8 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:1933: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7caef8 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c35 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c15 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001ddf6bf5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001ddf6bbd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:04.445435 [ 923 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {eaf781a0-ff91-4acc-8643-87fe28603342::all_0_24_5}: Code: 234. DB::Exception: No active replica has part all_0_24_5 or covering part (cannot execute queue-0000000029: MERGE_PARTS with virtual parts [all_0_24_5]). (NO_REPLICA_HAS_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&&) @ 0x000000001abfb6c8 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:1933: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7caef8 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c35 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c15 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001ddf6bf5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001ddf6bbd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:04.448818 [ 915 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {8c7f3f50-6e3f-4132-952e-4a4fbec01251::all_0_24_5}: Code: 234. DB::Exception: No active replica has part all_0_24_5 or covering part (cannot execute queue-0000000029: MERGE_PARTS with virtual parts [all_0_24_5]). (NO_REPLICA_HAS_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&&) @ 0x000000001abfb6c8 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:1933: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7caef8 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c35 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c15 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001ddf6bf5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001ddf6bbd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:04.470265 [ 920 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {407ce003-2395-4a47-9433-8f0d4a35845e::all_0_24_5}: Code: 234. DB::Exception: No active replica has part all_0_24_5 or covering part (cannot execute queue-0000000029: MERGE_PARTS with virtual parts [all_0_24_5]). (NO_REPLICA_HAS_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&, String&&) @ 0x000000001abfb6c8 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:1933: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7caef8 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:155: DB::ReplicatedMergeMutateTaskBase::executeImpl()::$_1::operator()(bool) const @ 0x000000001e214934 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:179: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e2136ff in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse 12. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf6c58 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>()()) std::__invoke[abi:v15000]::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c35 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&>(DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()&) @ 0x000000001ddf6c15 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001ddf6bf5 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001ddf6bbd in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 20. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000013a5edc0 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:04.567487 [ 947 ] {} test_jdyytcur.r3 (3d8cbd05-3ed3-499f-8292-7f760772114b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr2&part=all_26_26_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:04.578382 [ 938 ] {} test_jdyytcur.r4 (572b9d4f-14f9-4e99-a159-567963cda1c9): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr2&part=all_26_26_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:45:05.543778 [ 943 ] {} test_jdyytcur.r3 (3d8cbd05-3ed3-499f-8292-7f760772114b): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 86. DB::HTTPException: Received error from remote server /?endpoint=DataPartsExchange%3Adefault%3A%2Fclickhouse%2Ftables%2F02725_start_stop_fetches_test_jdyytcur%2Fr%2Freplicas%2Fr2&part=all_26_26_0&client_protocol_version=8&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 236. DB::Exception: Transferring part to replica was cancelled. (ABORTED) (version 23.8.11.29.altinitystable (altinity build)). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String const&, int&&, String const&, String const&) @ 0x0000000013ca6084 in /usr/bin/clickhouse 6. /build/src/IO/HTTPCommon.cpp:418: DB::HTTPException::makeExceptionMessage(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013c9a2ab in /usr/bin/clickhouse 7. /build/src/IO/HTTPCommon.h:31: DB::HTTPException::HTTPException(int, String const&, Poco::Net::HTTPResponse::HTTPStatus, String const&, String const&) @ 0x0000000013ca5e51 in /usr/bin/clickhouse 8. /build/src/IO/HTTPCommon.cpp:407: DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::basic_istream>&, bool) @ 0x0000000013c9a14b in /usr/bin/clickhouse 9. /build/src/IO/HTTPCommon.cpp:386: DB::receiveResponse(Poco::Net::HTTPClientSession&, Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, bool) @ 0x0000000013c99f66 in /usr/bin/clickhouse 10. /build/src/IO/ReadWriteBufferFromHTTP.cpp:162: DB::detail::ReadWriteBufferFromHTTPBase>>::callImpl(std::shared_ptr>&, Poco::URI, Poco::Net::HTTPResponse&, String const&, bool) @ 0x0000000017c688ab in /usr/bin/clickhouse 11. /build/src/IO/ReadWriteBufferFromHTTP.cpp:341: DB::detail::ReadWriteBufferFromHTTPBase>>::call(std::shared_ptr>&, Poco::Net::HTTPResponse&, String const&, bool, bool) @ 0x0000000017c6be50 in /usr/bin/clickhouse 12. /build/src/IO/ReadWriteBufferFromHTTP.cpp:378: DB::detail::ReadWriteBufferFromHTTPBase>>::initialize() @ 0x0000000017c6a7e0 in /usr/bin/clickhouse 13. /build/src/IO/ReadWriteBufferFromHTTP.cpp:296: DB::detail::ReadWriteBufferFromHTTPBase>>::ReadWriteBufferFromHTTPBase(std::shared_ptr>, Poco::URI, Poco::Net::HTTPBasicCredentials const&, String const&, std::function>&)>, unsigned long, DB::ReadSettings const&, std::vector>, DB::RemoteHostFilter const*, bool, bool, bool, std::optional, Poco::Net::HTTPClientSession::ProxyConfig) @ 0x0000000017c6a512 in /usr/bin/clickhouse 14. /build/src/IO/ReadWriteBufferFromHTTP.cpp:926: DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, String const&, std::function>&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x0000000017c5ba13 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000](Poco::URI&, String const&, std::nullptr_t&&, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials&, unsigned long long&&, int&&, unsigned long&&) @ 0x000000001dccb506 in /usr/bin/clickhouse 16. /build/src/Storages/MergeTree/DataPartsExchange.cpp:521: DB::DataPartsExchange::Fetcher::fetchSelectedPart(std::shared_ptr const&, std::shared_ptr, String const&, String const&, String const&, String const&, int, DB::ConnectionTimeouts const&, String const&, String const&, String const&, std::shared_ptr, bool, String const&, std::optional*, bool, std::shared_ptr) @ 0x000000001dcbe68c in /usr/bin/clickhouse 17. /build/src/Storages/StorageReplicatedMergeTree.cpp:4589: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3::operator()() const @ 0x000000001d878529 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>()()) std::__invoke[abi:v15000] const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878195 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&>(DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3&) @ 0x000000001d878155 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>::operator()[abi:v15000]() @ 0x000000001d878115 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker ()>::__call_impl const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool)::$_3, std::shared_ptr ()>>(std::__function::__policy_storage const*) @ 0x000000001d8780e0 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func ()>::operator()[abi:v15000]() const @ 0x000000001d8caab6 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function ()>::operator()() const @ 0x000000001d883935 in /usr/bin/clickhouse 24. /build/src/Storages/StorageReplicatedMergeTree.cpp:4613: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5d94 in /usr/bin/clickhouse 25. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 26. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 27. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:46:10.936081 [ 62685 ] {71042a39-ab79-4212-9bbe-1cd98c125ab9} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41466) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:46:10.936912 [ 62685 ] {71042a39-ab79-4212-9bbe-1cd98c125ab9} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:49:11.241491 [ 60037 ] {4cf48d74-cbe9-423d-98b6-92ea65dc59f6} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack UUID into column with type Int32.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59766) (comment: 02422_msgpack_uuid_wrong_column.sql) (in query: select * from file(02422_data.msgpack, auto, 'x Int32');), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:338: DB::insertUUID(DB::IColumn&, std::shared_ptr, char const*, unsigned long) @ 0x000000001e86bedf in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:486: DB::MsgPackVisitor::visit_ext(char const*, unsigned int) @ 0x000000001e86bc24 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:453: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8852be in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 13:49:11.246269 [ 60037 ] {4cf48d74-cbe9-423d-98b6-92ea65dc59f6} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack UUID into column with type Int32.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:338: DB::insertUUID(DB::IColumn&, std::shared_ptr, char const*, unsigned long) @ 0x000000001e86bedf in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:486: DB::MsgPackVisitor::visit_ext(char const*, unsigned int) @ 0x000000001e86bc24 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:453: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8852be in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 13:49:14.580541 [ 60037 ] {5d2ac9c5-b5a8-4a83-8b94-8c061459405f} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59774) (in query: select _path, _file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:49:14.581489 [ 60037 ] {5d2ac9c5-b5a8-4a83-8b94-8c061459405f} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:49:33.505837 [ 60037 ] {b2570b3b-1e65-487a-8b16-7cd652c467a8} executeQuery: Code: 471. DB::Exception: Invalid value '0' for max_read_buffer_size. (INVALID_SETTING_VALUE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36582) (comment: 02411_merge_tree_zero_max_read_buffer_size.sql) (in query: SELECT * FROM data_02411 FORMAT Null SETTINGS max_read_buffer_size=0;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&>(int, FormatStringHelperImpl const&>::type>, DB::SettingFieldNumber const&) @ 0x000000001bde6b93 in /usr/bin/clickhouse 6. /build/src/Interpreters/Context.cpp:4589: DB::Context::getReadSettings() const @ 0x000000001bdd6520 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:114: DB::getMergeTreeReaderSettings(std::shared_ptr const&, DB::SelectQueryInfo const&) @ 0x000000001ee2d74d in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:259: DB::ReadFromMergeTree::ReadFromMergeTree(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector>, std::vector>, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr, std::shared_ptr, unsigned long, unsigned long, bool, std::shared_ptr, std::equal_to, std::allocator>>>, Poco::Logger*, std::shared_ptr, bool) @ 0x000000001ee2c8ee in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000], std::allocator>>, std::vector, std::allocator>>, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&>(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&) @ 0x000000001df58338 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1304: DB::MergeTreeDataSelectExecutor::readFromParts(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, std::shared_ptr, bool) const @ 0x000000001df4590b in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:168: DB::MergeTreeDataSelectExecutor::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, DB::QueryProcessingStage::Enum, std::shared_ptr, std::equal_to, std::allocator>>>, bool) const @ 0x000000001df4216c in /usr/bin/clickhouse 12. /build/src/Storages/StorageMergeTree.cpp:252: DB::StorageMergeTree::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001e2fa2bf in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:49:33.507142 [ 60037 ] {b2570b3b-1e65-487a-8b16-7cd652c467a8} TCPHandler: Code: 471. DB::Exception: Invalid value '0' for max_read_buffer_size. (INVALID_SETTING_VALUE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception const&>(int, FormatStringHelperImpl const&>::type>, DB::SettingFieldNumber const&) @ 0x000000001bde6b93 in /usr/bin/clickhouse 6. /build/src/Interpreters/Context.cpp:4589: DB::Context::getReadSettings() const @ 0x000000001bdd6520 in /usr/bin/clickhouse 7. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:114: DB::getMergeTreeReaderSettings(std::shared_ptr const&, DB::SelectQueryInfo const&) @ 0x000000001ee2d74d in /usr/bin/clickhouse 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:259: DB::ReadFromMergeTree::ReadFromMergeTree(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector>, std::vector>, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr, std::shared_ptr, unsigned long, unsigned long, bool, std::shared_ptr, std::equal_to, std::allocator>>>, Poco::Logger*, std::shared_ptr, bool) @ 0x000000001ee2c8ee in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000], std::allocator>>, std::vector, std::allocator>>, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&>(std::vector, std::allocator>>&&, std::vector, std::allocator>>&&, std::vector>&, std::vector>&, DB::MergeTreeData const&, DB::SelectQueryInfo const&, std::shared_ptr const&, std::shared_ptr&, unsigned long const&, unsigned long const&, bool&, std::shared_ptr, std::equal_to, std::allocator>>>&, Poco::Logger* const&, std::shared_ptr&, bool&) @ 0x000000001df58338 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:1304: DB::MergeTreeDataSelectExecutor::readFromParts(std::vector, std::allocator>>, std::vector, std::allocator>>, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, std::shared_ptr, std::equal_to, std::allocator>>>, std::shared_ptr, bool) const @ 0x000000001df4590b in /usr/bin/clickhouse 11. /build/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp:168: DB::MergeTreeDataSelectExecutor::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo const&, std::shared_ptr, unsigned long, unsigned long, DB::QueryProcessingStage::Enum, std::shared_ptr, std::equal_to, std::allocator>>>, bool) const @ 0x000000001df4216c in /usr/bin/clickhouse 12. /build/src/Storages/StorageMergeTree.cpp:252: DB::StorageMergeTree::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001e2fa2bf in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 27. ? @ 0x00007fcde32fbac3 in ? 28. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:49:40.080726 [ 60037 ] {0dd7c37c-2a34-4565-befd-3cb5d3ba859c} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35298) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:49:40.081672 [ 60037 ] {0dd7c37c-2a34-4565-befd-3cb5d3ba859c} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:49:41.862254 [ 60037 ] {f6052de8-2b61-4210-a814-ec66c89525d9} executeQuery: std::exception. Code: 1001, type: avro::Exception, e.what() = Cannot read compressed data, expected at least 4 bytes, got 0 (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35300) (comment: 02373_heap_buffer_overflow_in_avro.sh) (in query: select * from file(corrupted.avro)), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/contrib/llvm-project/libcxx/src/support/runtime/stdexcept_default.ipp:33: std::runtime_error::runtime_error(String const&) @ 0x00000000288576bd in /usr/bin/clickhouse 3. /build/contrib/avro/lang/c++/api/Exception.hh:36: avro::Exception::Exception(String const&) @ 0x000000001e6fede5 in /usr/bin/clickhouse 4. /build/contrib/avro/lang/c++/impl/DataFile.cc:418: avro::DataFileReaderBase::readDataBlock() @ 0x000000002515c775 in /usr/bin/clickhouse 5. /build/contrib/avro/lang/c++/impl/DataFile.cc:322: avro::DataFileReaderBase::hasMore() @ 0x000000002515d602 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/AvroRowInputFormat.cpp:906: DB::AvroRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e6eb5f0 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 8. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 10. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 15. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 16. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 17. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:49:41.865606 [ 60037 ] {f6052de8-2b61-4210-a814-ec66c89525d9} TCPHandler: Code: 1001. DB::Exception: avro::Exception: Cannot read compressed data, expected at least 4 bytes, got 0. (STD_EXCEPTION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/contrib/llvm-project/libcxx/src/support/runtime/stdexcept_default.ipp:33: std::runtime_error::runtime_error(String const&) @ 0x00000000288576bd in /usr/bin/clickhouse 3. /build/contrib/avro/lang/c++/api/Exception.hh:36: avro::Exception::Exception(String const&) @ 0x000000001e6fede5 in /usr/bin/clickhouse 4. /build/contrib/avro/lang/c++/impl/DataFile.cc:418: avro::DataFileReaderBase::readDataBlock() @ 0x000000002515c775 in /usr/bin/clickhouse 5. /build/contrib/avro/lang/c++/impl/DataFile.cc:322: avro::DataFileReaderBase::hasMore() @ 0x000000002515d602 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/AvroRowInputFormat.cpp:906: DB::AvroRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e6eb5f0 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 8. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 10. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 15. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 16. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 17. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 2024.05.01 13:49:46.311362 [ 60037 ] {e654d4b4-a129-443a-b832-c8ddb7396188} executeQuery: Code: 497. DB::Exception: u_02311: Not enough privileges. To execute this query, it's necessary to have the grant INSERT(path, name, value) ON system.zookeeper. (ACCESS_DENIED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35326) (in query: insert into system.zookeeper (path, name, value) values ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:517: auto bool DB::ContextAccess::checkAccessImplHelper>, std::basic_string_view>, std::vector>>(DB::AccessFlags, std::basic_string_view> const&, std::basic_string_view> const&, std::vector> const&) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04f06d in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:557: bool DB::ContextAccess::checkAccessImplHelper>, std::basic_string_view>, std::vector>>(DB::AccessFlags, std::basic_string_view> const&, std::basic_string_view> const&, std::vector> const&) const @ 0x000000001b04da36 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:628: bool DB::ContextAccess::checkAccessImpl>, std::vector>>(DB::AccessFlags const&, std::basic_string_view>, std::basic_string_view> const&, std::vector> const&) const @ 0x000000001b015130 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:700: DB::ContextAccess::checkAccess(DB::AccessFlags const&, std::basic_string_view>, std::basic_string_view>, std::vector> const&) const @ 0x000000001b0105b1 in /usr/bin/clickhouse 10. /build/src/Interpreters/Context.cpp:1186: void DB::Context::checkAccessImpl>>(DB::AccessFlags const&, String const&, String const&, std::vector> const&) const @ 0x000000001bdda84e in /usr/bin/clickhouse 11. /build/src/Interpreters/Context.cpp:1198: DB::Context::checkAccess(DB::AccessFlags const&, DB::StorageID const&, std::vector> const&) const @ 0x000000001bdbb160 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterInsertQuery.cpp:398: DB::InterpreterInsertQuery::execute() @ 0x000000001ca7515a in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:49:46.312202 [ 60037 ] {e654d4b4-a129-443a-b832-c8ddb7396188} TCPHandler: Code: 497. DB::Exception: u_02311: Not enough privileges. To execute this query, it's necessary to have the grant INSERT(path, name, value) ON system.zookeeper. (ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Access/ContextAccess.cpp:517: auto bool DB::ContextAccess::checkAccessImplHelper>, std::basic_string_view>, std::vector>>(DB::AccessFlags, std::basic_string_view> const&, std::basic_string_view> const&, std::vector> const&) const::'lambda'(int, FormatStringHelperImpl::type...>, $T&&...)::operator()(int, FormatStringHelperImpl::type...>, $T&&...) const @ 0x000000001b04f06d in /usr/bin/clickhouse 7. /build/src/Access/ContextAccess.cpp:557: bool DB::ContextAccess::checkAccessImplHelper>, std::basic_string_view>, std::vector>>(DB::AccessFlags, std::basic_string_view> const&, std::basic_string_view> const&, std::vector> const&) const @ 0x000000001b04da36 in /usr/bin/clickhouse 8. /build/src/Access/ContextAccess.cpp:628: bool DB::ContextAccess::checkAccessImpl>, std::vector>>(DB::AccessFlags const&, std::basic_string_view>, std::basic_string_view> const&, std::vector> const&) const @ 0x000000001b015130 in /usr/bin/clickhouse 9. /build/src/Access/ContextAccess.cpp:700: DB::ContextAccess::checkAccess(DB::AccessFlags const&, std::basic_string_view>, std::basic_string_view>, std::vector> const&) const @ 0x000000001b0105b1 in /usr/bin/clickhouse 10. /build/src/Interpreters/Context.cpp:1186: void DB::Context::checkAccessImpl>>(DB::AccessFlags const&, String const&, String const&, std::vector> const&) const @ 0x000000001bdda84e in /usr/bin/clickhouse 11. /build/src/Interpreters/Context.cpp:1198: DB::Context::checkAccess(DB::AccessFlags const&, DB::StorageID const&, std::vector> const&) const @ 0x000000001bdbb160 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterInsertQuery.cpp:398: DB::InterpreterInsertQuery::execute() @ 0x000000001ca7515a in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:49:49.864475 [ 60037 ] {b21fde71-86ac-4772-9f27-0ed65dad82bc} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56946) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:49:49.865461 [ 60037 ] {b21fde71-86ac-4772-9f27-0ed65dad82bc} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:49:57.427637 [ 60037 ] {b255ed48-117f-4ed4-bc7d-0bcc13493c4b} executeQuery: Code: 117. DB::Exception: Unknown field found in format header: 'y' at position 1 Set the 'input_format_skip_unknown_fields' parameter explicitly to ignore and proceed: (in file/uri /var/lib/clickhouse/user_files/dump1.sql): (while reading header): While executing MySQLDumpRowInputFormat: While executing File. (INCORRECT_DATA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:56978) (comment: 02286_mysql_dump_input_format.sh) (in query: select * from file(dump1.sql, MySQLDump, 'x Nullable(Int32), z String') order by x, z settings input_format_skip_unknown_fields = 0), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, unsigned long&&) @ 0x000000000c3b85cc in /usr/bin/clickhouse 6. /build/src/Formats/ColumnMapping.cpp:38: DB::ColumnMapping::addColumns(std::vector> const&, google::dense_hash_map, google::libc_allocator_with_realloc>> const&, DB::FormatSettings const&) @ 0x000000001e78653a in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:359: DB::MySQLDumpRowInputFormat::readPrefix() @ 0x000000001e88da0a in /usr/bin/clickhouse 8. /build/src/Processors/Formats/IRowInputFormat.cpp:92: DB::IRowInputFormat::generate() @ 0x000000001e73eb39 in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 10. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 17. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 18. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 2024.05.01 13:49:57.432267 [ 60037 ] {b255ed48-117f-4ed4-bc7d-0bcc13493c4b} TCPHandler: Code: 117. DB::Exception: Unknown field found in format header: 'y' at position 1 Set the 'input_format_skip_unknown_fields' parameter explicitly to ignore and proceed: (in file/uri /var/lib/clickhouse/user_files/dump1.sql): (while reading header): While executing MySQLDumpRowInputFormat: While executing File. (INCORRECT_DATA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, unsigned long&&) @ 0x000000000c3b85cc in /usr/bin/clickhouse 6. /build/src/Formats/ColumnMapping.cpp:38: DB::ColumnMapping::addColumns(std::vector> const&, google::dense_hash_map, google::libc_allocator_with_realloc>> const&, DB::FormatSettings const&) @ 0x000000001e78653a in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:359: DB::MySQLDumpRowInputFormat::readPrefix() @ 0x000000001e88da0a in /usr/bin/clickhouse 8. /build/src/Processors/Formats/IRowInputFormat.cpp:92: DB::IRowInputFormat::generate() @ 0x000000001e73eb39 in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 10. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 17. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 18. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 2024.05.01 13:50:12.744751 [ 60037 ] {f7b09f02-d41e-4efe-ac44-22cba4d6fd25} executeQuery: Code: 92. DB::Exception: There is no INSERT queries for table test 3 in MySQL dump file: Cannot extract table structure from MySQLDump format file. You can specify the structure manually: (in file/uri /var/lib/clickhouse/user_files/dump1.sql). (EMPTY_DATA_PASSED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37110) (comment: 02286_mysql_dump_input_format.sh) (in query: desc file(dump1.sql, MySQLDump) settings input_format_mysql_dump_table_name='test 3'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:346: DB::readFirstCreateAndInsertQueries(DB::ReadBuffer&, String&, DB::NamesAndTypesList&, std::vector>&) @ 0x000000001e88dc32 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:433: DB::MySQLDumpSchemaReader::readSchema() @ 0x000000001e88e4bc in /usr/bin/clickhouse 8. /build/src/Formats/ReadSchemaUtils.cpp:124: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&, std::unique_ptr>&) @ 0x000000001e62db23 in /usr/bin/clickhouse 9. /build/src/Formats/ReadSchemaUtils.cpp:239: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&) @ 0x000000001e62f0a8 in /usr/bin/clickhouse 10. /build/src/Storages/StorageFile.cpp:828: DB::StorageFile::getTableStructureFromFile(String const&, std::vector> const&, String const&, std::optional const&, std::shared_ptr, std::optional const&) @ 0x000000001d68d632 in /usr/bin/clickhouse 11. /build/src/TableFunctions/TableFunctionFile.cpp:107: DB::TableFunctionFile::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000001a96fead in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterDescribeQuery.cpp:99: DB::InterpreterDescribeQuery::execute() @ 0x000000001ca67ab3 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:50:12.746380 [ 60037 ] {f7b09f02-d41e-4efe-ac44-22cba4d6fd25} TCPHandler: Code: 92. DB::Exception: There is no INSERT queries for table test 3 in MySQL dump file: Cannot extract table structure from MySQLDump format file. You can specify the structure manually: (in file/uri /var/lib/clickhouse/user_files/dump1.sql). (EMPTY_DATA_PASSED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:346: DB::readFirstCreateAndInsertQueries(DB::ReadBuffer&, String&, DB::NamesAndTypesList&, std::vector>&) @ 0x000000001e88dc32 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:433: DB::MySQLDumpSchemaReader::readSchema() @ 0x000000001e88e4bc in /usr/bin/clickhouse 8. /build/src/Formats/ReadSchemaUtils.cpp:124: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&, std::unique_ptr>&) @ 0x000000001e62db23 in /usr/bin/clickhouse 9. /build/src/Formats/ReadSchemaUtils.cpp:239: DB::readSchemaFromFormat(String const&, std::optional const&, DB::IReadBufferIterator&, bool, std::shared_ptr&) @ 0x000000001e62f0a8 in /usr/bin/clickhouse 10. /build/src/Storages/StorageFile.cpp:828: DB::StorageFile::getTableStructureFromFile(String const&, std::vector> const&, String const&, std::optional const&, std::shared_ptr, std::optional const&) @ 0x000000001d68d632 in /usr/bin/clickhouse 11. /build/src/TableFunctions/TableFunctionFile.cpp:107: DB::TableFunctionFile::getActualTableStructure(std::shared_ptr, bool) const @ 0x000000001a96fead in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterDescribeQuery.cpp:99: DB::InterpreterDescribeQuery::execute() @ 0x000000001ca67ab3 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:50:14.837715 [ 60037 ] {0f5381e3-b9be-42e9-9a65-447ac3edd34d} executeQuery: Code: 92. DB::Exception: There is no INSERT queries for table test 3 in MySQL dump file: (in file/uri /var/lib/clickhouse/user_files/dump1.sql): (while reading header): While executing MySQLDumpRowInputFormat: While executing File. (EMPTY_DATA_PASSED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37122) (comment: 02286_mysql_dump_input_format.sh) (in query: select * from file(dump1.sql, MySQLDump, 'x Nullable(Int32)') settings input_format_mysql_dump_table_name='test 3'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:346: DB::readFirstCreateAndInsertQueries(DB::ReadBuffer&, String&, DB::NamesAndTypesList&, std::vector>&) @ 0x000000001e88dc32 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:356: DB::MySQLDumpRowInputFormat::readPrefix() @ 0x000000001e88d9b0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/IRowInputFormat.cpp:92: DB::IRowInputFormat::generate() @ 0x000000001e73eb39 in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 10. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 17. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 18. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 2024.05.01 13:50:14.840912 [ 60037 ] {0f5381e3-b9be-42e9-9a65-447ac3edd34d} TCPHandler: Code: 92. DB::Exception: There is no INSERT queries for table test 3 in MySQL dump file: (in file/uri /var/lib/clickhouse/user_files/dump1.sql): (while reading header): While executing MySQLDumpRowInputFormat: While executing File. (EMPTY_DATA_PASSED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:346: DB::readFirstCreateAndInsertQueries(DB::ReadBuffer&, String&, DB::NamesAndTypesList&, std::vector>&) @ 0x000000001e88dc32 in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MySQLDumpRowInputFormat.cpp:356: DB::MySQLDumpRowInputFormat::readPrefix() @ 0x000000001e88d9b0 in /usr/bin/clickhouse 8. /build/src/Processors/Formats/IRowInputFormat.cpp:92: DB::IRowInputFormat::generate() @ 0x000000001e73eb39 in /usr/bin/clickhouse 9. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 10. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 11. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 16. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 17. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 18. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 19. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 2024.05.01 13:52:56.094330 [ 60037 ] {b1667c99-5b0d-4202-b2e9-879097a33936} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41556) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:52:56.095387 [ 60037 ] {b1667c99-5b0d-4202-b2e9-879097a33936} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:53:42.658540 [ 60037 ] {babac0f5-c575-4e2a-b723-f7cc13972fef} executeQuery: Code: 192. DB::Exception: There is no user `test_user_02242` in user directories. (UNKNOWN_USER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58722) (comment: 02242_delete_user_race.sh) (in query: SET DEFAULT ROLE test_role_02242 TO test_user_02242), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0ec299 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0ec1d3 in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.h:88: StrongTypedef, DB::UUIDTag> DB::IAccessStorage::getID(String const&) const @ 0x000000001b1e851f in /usr/bin/clickhouse 9. /build/src/Access/RolesOrUsersSet.cpp:85: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&)::$_0::operator()(String const&) const @ 0x000000001b1e454d in /usr/bin/clickhouse 10. /build/src/Access/RolesOrUsersSet.cpp:98: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1e38a8 in /usr/bin/clickhouse 11. /build/src/Access/RolesOrUsersSet.cpp:64: DB::RolesOrUsersSet::RolesOrUsersSet(DB::ASTRolesOrUsersSet const&, DB::AccessControl const&, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1e43de in /usr/bin/clickhouse 12. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:66: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&) @ 0x000000001d172f7a in /usr/bin/clickhouse 13. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:22: DB::InterpreterSetRoleQuery::execute() @ 0x000000001d172df6 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:53:42.660252 [ 60037 ] {babac0f5-c575-4e2a-b723-f7cc13972fef} TCPHandler: Code: 192. DB::Exception: There is no user `test_user_02242` in user directories. (UNKNOWN_USER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0ec299 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0ec1d3 in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.h:88: StrongTypedef, DB::UUIDTag> DB::IAccessStorage::getID(String const&) const @ 0x000000001b1e851f in /usr/bin/clickhouse 9. /build/src/Access/RolesOrUsersSet.cpp:85: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&)::$_0::operator()(String const&) const @ 0x000000001b1e454d in /usr/bin/clickhouse 10. /build/src/Access/RolesOrUsersSet.cpp:98: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1e38a8 in /usr/bin/clickhouse 11. /build/src/Access/RolesOrUsersSet.cpp:64: DB::RolesOrUsersSet::RolesOrUsersSet(DB::ASTRolesOrUsersSet const&, DB::AccessControl const&, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1e43de in /usr/bin/clickhouse 12. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:66: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&) @ 0x000000001d172f7a in /usr/bin/clickhouse 13. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:22: DB::InterpreterSetRoleQuery::execute() @ 0x000000001d172df6 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:53:44.115273 [ 60037 ] {} Access(user directories): from: ::1, user: test_user_02242: Authentication failed: Code: 192. DB::Exception: There is no user `test_user_02242` in local_directory. (UNKNOWN_USER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0ec299 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:0: DB::IAccessStorage::authenticateImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b0ef39d in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.cpp:510: DB::IAccessStorage::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b0ef14f in /usr/bin/clickhouse 9. /build/src/Access/MultipleAccessStorage.cpp:429: DB::MultipleAccessStorage::authenticateImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b179d29 in /usr/bin/clickhouse 10. /build/src/Access/IAccessStorage.cpp:498: DB::IAccessStorage::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool) const @ 0x000000001b0ef09a in /usr/bin/clickhouse 11. /build/src/Access/AccessControl.cpp:567: DB::AccessControl::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&) const @ 0x000000001afa956c in /usr/bin/clickhouse 12. /build/src/Interpreters/Session.cpp:353: DB::Session::authenticate(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0x000000001cde8f29 in /usr/bin/clickhouse 13. /build/src/Interpreters/Session.cpp:333: DB::Session::authenticate(String const&, String const&, Poco::Net::SocketAddress const&) @ 0x000000001cde8409 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:1362: DB::TCPHandler::receiveHello() @ 0x000000001e5e0aff in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:247: DB::TCPHandler::runImpl() @ 0x000000001e5d78b6 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:53:44.192502 [ 60037 ] {} ServerErrorHandler: Code: 516. DB::Exception: test_user_02242: Authentication failed: password is incorrect, or there is no user with such name. (AUTHENTICATION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Access/AccessControl.cpp:588: DB::AccessControl::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&) const @ 0x000000001afa9944 in /usr/bin/clickhouse 7. /build/src/Interpreters/Session.cpp:353: DB::Session::authenticate(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0x000000001cde8f29 in /usr/bin/clickhouse 8. /build/src/Interpreters/Session.cpp:333: DB::Session::authenticate(String const&, String const&, Poco::Net::SocketAddress const&) @ 0x000000001cde8409 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:1362: DB::TCPHandler::receiveHello() @ 0x000000001e5e0aff in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:247: DB::TCPHandler::runImpl() @ 0x000000001e5d78b6 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:53:44.793437 [ 60037 ] {bfe4c47f-8702-426c-8fb2-2578cfb66300} executeQuery: Code: 192. DB::Exception: There is no user `test_user_02242` in user directories. (UNKNOWN_USER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58760) (comment: 02242_delete_user_race.sh) (in query: SET DEFAULT ROLE test_role_02242 TO test_user_02242), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0ec299 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0ec1d3 in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.h:88: StrongTypedef, DB::UUIDTag> DB::IAccessStorage::getID(String const&) const @ 0x000000001b1e851f in /usr/bin/clickhouse 9. /build/src/Access/RolesOrUsersSet.cpp:85: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&)::$_0::operator()(String const&) const @ 0x000000001b1e454d in /usr/bin/clickhouse 10. /build/src/Access/RolesOrUsersSet.cpp:98: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1e38a8 in /usr/bin/clickhouse 11. /build/src/Access/RolesOrUsersSet.cpp:64: DB::RolesOrUsersSet::RolesOrUsersSet(DB::ASTRolesOrUsersSet const&, DB::AccessControl const&, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1e43de in /usr/bin/clickhouse 12. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:66: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&) @ 0x000000001d172f7a in /usr/bin/clickhouse 13. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:22: DB::InterpreterSetRoleQuery::execute() @ 0x000000001d172df6 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:53:44.795087 [ 60037 ] {bfe4c47f-8702-426c-8fb2-2578cfb66300} TCPHandler: Code: 192. DB::Exception: There is no user `test_user_02242` in user directories. (UNKNOWN_USER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0ec299 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0ec1d3 in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.h:88: StrongTypedef, DB::UUIDTag> DB::IAccessStorage::getID(String const&) const @ 0x000000001b1e851f in /usr/bin/clickhouse 9. /build/src/Access/RolesOrUsersSet.cpp:85: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&)::$_0::operator()(String const&) const @ 0x000000001b1e454d in /usr/bin/clickhouse 10. /build/src/Access/RolesOrUsersSet.cpp:98: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1e38a8 in /usr/bin/clickhouse 11. /build/src/Access/RolesOrUsersSet.cpp:64: DB::RolesOrUsersSet::RolesOrUsersSet(DB::ASTRolesOrUsersSet const&, DB::AccessControl const&, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1e43de in /usr/bin/clickhouse 12. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:66: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&) @ 0x000000001d172f7a in /usr/bin/clickhouse 13. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:22: DB::InterpreterSetRoleQuery::execute() @ 0x000000001d172df6 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:53:47.282415 [ 60037 ] {} Access(user directories): from: ::1, user: test_user_02242: Authentication failed: Code: 192. DB::Exception: There is no user `test_user_02242` in local_directory. (UNKNOWN_USER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0ec299 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:0: DB::IAccessStorage::authenticateImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b0ef39d in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.cpp:510: DB::IAccessStorage::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b0ef14f in /usr/bin/clickhouse 9. /build/src/Access/MultipleAccessStorage.cpp:429: DB::MultipleAccessStorage::authenticateImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b179d29 in /usr/bin/clickhouse 10. /build/src/Access/IAccessStorage.cpp:498: DB::IAccessStorage::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool) const @ 0x000000001b0ef09a in /usr/bin/clickhouse 11. /build/src/Access/AccessControl.cpp:567: DB::AccessControl::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&) const @ 0x000000001afa956c in /usr/bin/clickhouse 12. /build/src/Interpreters/Session.cpp:353: DB::Session::authenticate(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0x000000001cde8f29 in /usr/bin/clickhouse 13. /build/src/Interpreters/Session.cpp:333: DB::Session::authenticate(String const&, String const&, Poco::Net::SocketAddress const&) @ 0x000000001cde8409 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:1362: DB::TCPHandler::receiveHello() @ 0x000000001e5e0aff in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:247: DB::TCPHandler::runImpl() @ 0x000000001e5d78b6 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:53:47.283510 [ 60037 ] {} ServerErrorHandler: Code: 516. DB::Exception: test_user_02242: Authentication failed: password is incorrect, or there is no user with such name. (AUTHENTICATION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Access/AccessControl.cpp:588: DB::AccessControl::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&) const @ 0x000000001afa9944 in /usr/bin/clickhouse 7. /build/src/Interpreters/Session.cpp:353: DB::Session::authenticate(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0x000000001cde8f29 in /usr/bin/clickhouse 8. /build/src/Interpreters/Session.cpp:333: DB::Session::authenticate(String const&, String const&, Poco::Net::SocketAddress const&) @ 0x000000001cde8409 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:1362: DB::TCPHandler::receiveHello() @ 0x000000001e5e0aff in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:247: DB::TCPHandler::runImpl() @ 0x000000001e5d78b6 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:53:47.565109 [ 60037 ] {ee24502a-f0e3-46b7-9854-cef5faef16ae} executeQuery: Code: 192. DB::Exception: There is no user `test_user_02242` in user directories. (UNKNOWN_USER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58792) (comment: 02242_delete_user_race.sh) (in query: SET DEFAULT ROLE test_role_02242 TO test_user_02242), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0ec299 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0ec1d3 in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.h:88: StrongTypedef, DB::UUIDTag> DB::IAccessStorage::getID(String const&) const @ 0x000000001b1e851f in /usr/bin/clickhouse 9. /build/src/Access/RolesOrUsersSet.cpp:85: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&)::$_0::operator()(String const&) const @ 0x000000001b1e454d in /usr/bin/clickhouse 10. /build/src/Access/RolesOrUsersSet.cpp:98: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1e38a8 in /usr/bin/clickhouse 11. /build/src/Access/RolesOrUsersSet.cpp:64: DB::RolesOrUsersSet::RolesOrUsersSet(DB::ASTRolesOrUsersSet const&, DB::AccessControl const&, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1e43de in /usr/bin/clickhouse 12. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:66: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&) @ 0x000000001d172f7a in /usr/bin/clickhouse 13. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:22: DB::InterpreterSetRoleQuery::execute() @ 0x000000001d172df6 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:53:47.566514 [ 60037 ] {ee24502a-f0e3-46b7-9854-cef5faef16ae} TCPHandler: Code: 192. DB::Exception: There is no user `test_user_02242` in user directories. (UNKNOWN_USER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0ec299 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0ec1d3 in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.h:88: StrongTypedef, DB::UUIDTag> DB::IAccessStorage::getID(String const&) const @ 0x000000001b1e851f in /usr/bin/clickhouse 9. /build/src/Access/RolesOrUsersSet.cpp:85: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&)::$_0::operator()(String const&) const @ 0x000000001b1e454d in /usr/bin/clickhouse 10. /build/src/Access/RolesOrUsersSet.cpp:98: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1e38a8 in /usr/bin/clickhouse 11. /build/src/Access/RolesOrUsersSet.cpp:64: DB::RolesOrUsersSet::RolesOrUsersSet(DB::ASTRolesOrUsersSet const&, DB::AccessControl const&, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1e43de in /usr/bin/clickhouse 12. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:66: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&) @ 0x000000001d172f7a in /usr/bin/clickhouse 13. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:22: DB::InterpreterSetRoleQuery::execute() @ 0x000000001d172df6 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:53:50.300481 [ 60037 ] {103b5fb3-822c-4230-acce-373ff1c021f7} executeQuery: Code: 192. DB::Exception: There is no user `test_user_02242` in user directories. (UNKNOWN_USER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35672) (comment: 02242_delete_user_race.sh) (in query: SET DEFAULT ROLE test_role_02242 TO test_user_02242), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0ec299 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0ec1d3 in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.h:88: StrongTypedef, DB::UUIDTag> DB::IAccessStorage::getID(String const&) const @ 0x000000001b1e851f in /usr/bin/clickhouse 9. /build/src/Access/RolesOrUsersSet.cpp:85: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&)::$_0::operator()(String const&) const @ 0x000000001b1e454d in /usr/bin/clickhouse 10. /build/src/Access/RolesOrUsersSet.cpp:98: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1e38a8 in /usr/bin/clickhouse 11. /build/src/Access/RolesOrUsersSet.cpp:64: DB::RolesOrUsersSet::RolesOrUsersSet(DB::ASTRolesOrUsersSet const&, DB::AccessControl const&, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1e43de in /usr/bin/clickhouse 12. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:66: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&) @ 0x000000001d172f7a in /usr/bin/clickhouse 13. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:22: DB::InterpreterSetRoleQuery::execute() @ 0x000000001d172df6 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:53:50.302382 [ 60037 ] {103b5fb3-822c-4230-acce-373ff1c021f7} TCPHandler: Code: 192. DB::Exception: There is no user `test_user_02242` in user directories. (UNKNOWN_USER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0ec299 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0ec1d3 in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.h:88: StrongTypedef, DB::UUIDTag> DB::IAccessStorage::getID(String const&) const @ 0x000000001b1e851f in /usr/bin/clickhouse 9. /build/src/Access/RolesOrUsersSet.cpp:85: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&)::$_0::operator()(String const&) const @ 0x000000001b1e454d in /usr/bin/clickhouse 10. /build/src/Access/RolesOrUsersSet.cpp:98: DB::RolesOrUsersSet::init(DB::ASTRolesOrUsersSet const&, DB::AccessControl const*, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1e38a8 in /usr/bin/clickhouse 11. /build/src/Access/RolesOrUsersSet.cpp:64: DB::RolesOrUsersSet::RolesOrUsersSet(DB::ASTRolesOrUsersSet const&, DB::AccessControl const&, std::optional, DB::UUIDTag>> const&) @ 0x000000001b1e43de in /usr/bin/clickhouse 12. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:66: DB::InterpreterSetRoleQuery::setDefaultRole(DB::ASTSetRoleQuery const&) @ 0x000000001d172f7a in /usr/bin/clickhouse 13. /build/src/Interpreters/Access/InterpreterSetRoleQuery.cpp:22: DB::InterpreterSetRoleQuery::execute() @ 0x000000001d172df6 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 15. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 17. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 19. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 23. ? @ 0x00007fcde32fbac3 in ? 24. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:53:50.455085 [ 71351 ] {} Access(user directories): from: ::1, user: test_user_02242: Authentication failed: Code: 192. DB::Exception: There is no user `test_user_02242` in local_directory. (UNKNOWN_USER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0ec299 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:0: DB::IAccessStorage::authenticateImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b0ef39d in /usr/bin/clickhouse 8. /build/src/Access/IAccessStorage.cpp:510: DB::IAccessStorage::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b0ef14f in /usr/bin/clickhouse 9. /build/src/Access/MultipleAccessStorage.cpp:429: DB::MultipleAccessStorage::authenticateImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool, bool) const @ 0x000000001b179d29 in /usr/bin/clickhouse 10. /build/src/Access/IAccessStorage.cpp:498: DB::IAccessStorage::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool, bool) const @ 0x000000001b0ef09a in /usr/bin/clickhouse 11. /build/src/Access/AccessControl.cpp:567: DB::AccessControl::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&) const @ 0x000000001afa956c in /usr/bin/clickhouse 12. /build/src/Interpreters/Session.cpp:353: DB::Session::authenticate(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0x000000001cde8f29 in /usr/bin/clickhouse 13. /build/src/Interpreters/Session.cpp:333: DB::Session::authenticate(String const&, String const&, Poco::Net::SocketAddress const&) @ 0x000000001cde8409 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:1362: DB::TCPHandler::receiveHello() @ 0x000000001e5e0aff in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:247: DB::TCPHandler::runImpl() @ 0x000000001e5d78b6 in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:53:50.456119 [ 71351 ] {} ServerErrorHandler: Code: 516. DB::Exception: test_user_02242: Authentication failed: password is incorrect, or there is no user with such name. (AUTHENTICATION_FAILED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Access/AccessControl.cpp:588: DB::AccessControl::authenticate(DB::Credentials const&, Poco::Net::IPAddress const&) const @ 0x000000001afa9944 in /usr/bin/clickhouse 7. /build/src/Interpreters/Session.cpp:353: DB::Session::authenticate(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0x000000001cde8f29 in /usr/bin/clickhouse 8. /build/src/Interpreters/Session.cpp:333: DB::Session::authenticate(String const&, String const&, Poco::Net::SocketAddress const&) @ 0x000000001cde8409 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:1362: DB::TCPHandler::receiveHello() @ 0x000000001e5e0aff in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:247: DB::TCPHandler::runImpl() @ 0x000000001e5d78b6 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 13:55:23.988560 [ 60037 ] {db744aa0-85ed-4550-9d57-bf1528d9b8d5} executeQuery: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42256) (comment: 02155_multiple_inserts_for_formats_with_suffix.sql) (in query: insert into test select * from numbers(10, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691a84 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:55:23.989275 [ 60037 ] {db744aa0-85ed-4550-9d57-bf1528d9b8d5} TCPHandler: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691a84 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:55:24.112878 [ 60037 ] {c2af2a61-00e5-4e71-bf6e-90cc44d68f55} executeQuery: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42256) (comment: 02155_multiple_inserts_for_formats_with_suffix.sql) (in query: insert into test select * from numbers(10, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691a84 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:55:24.113552 [ 60037 ] {c2af2a61-00e5-4e71-bf6e-90cc44d68f55} TCPHandler: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691a84 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:55:24.223082 [ 60037 ] {6aeafc41-ff7a-47d0-ad71-cedd6b7a88de} executeQuery: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42256) (comment: 02155_multiple_inserts_for_formats_with_suffix.sql) (in query: insert into table function file(concat(currentDatabase(), '/test2/data.Parquet'), 'Parquet', 'number UInt64') select * from numbers(10, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691a84 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:55:24.224123 [ 60037 ] {6aeafc41-ff7a-47d0-ad71-cedd6b7a88de} TCPHandler: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691a84 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:55:24.353716 [ 60037 ] {9fd70fff-efc9-4171-bd5b-3296bafeacc2} executeQuery: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42256) (comment: 02155_multiple_inserts_for_formats_with_suffix.sql) (in query: insert into test select * from numbers(10, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691a84 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:55:24.354441 [ 60037 ] {9fd70fff-efc9-4171-bd5b-3296bafeacc2} TCPHandler: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691a84 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:55:24.472910 [ 60037 ] {314a913b-24a2-478b-909c-492b0f06e638} executeQuery: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42256) (comment: 02155_multiple_inserts_for_formats_with_suffix.sql) (in query: insert into table function file(concat(currentDatabase(), '/test4/data.Parquet.gz'), 'Parquet', 'number UInt64') select * from numbers(10, 10);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691a84 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:55:24.473681 [ 60037 ] {314a913b-24a2-478b-909c-492b0f06e638} TCPHandler: Code: 641. DB::Exception: Cannot append data in format Parquet to file, because this format doesn't support appends. You can allow to create a new file on each insert by enabling setting engine_file_allow_create_multiple_files. (CANNOT_APPEND_TO_FILE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1804: DB::StorageFile::write(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, bool) @ 0x000000001d691a84 in /usr/bin/clickhouse 7. /build/src/Processors/Transforms/buildPushingToViewsChain.cpp:453: DB::buildPushingToViewsChain(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr const&, bool, std::shared_ptr, std::shared_ptr, std::atomic*, bool, DB::Block const&) @ 0x000000001ec77e7a in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterInsertQuery.cpp:291: DB::InterpreterInsertQuery::buildSink(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, std::shared_ptr, std::atomic*) @ 0x000000001ca73fa0 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:534: DB::InterpreterInsertQuery::execute() @ 0x000000001ca765bb in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:55:27.750800 [ 60037 ] {60304b08-f3e0-488a-9421-f7531ee0e951} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42272) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:55:27.751632 [ 60037 ] {60304b08-f3e0-488a-9421-f7531ee0e951} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:56:03.164172 [ 60037 ] {57eb095a-2c57-4ffa-8b92-090ae58f4e03} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59256) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:56:03.165007 [ 60037 ] {57eb095a-2c57-4ffa-8b92-090ae58f4e03} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 13:56:03.725000 [ 60037 ] {1c220141-79cc-42a9-8512-fdaf835bbe90} executeQuery: Code: 107. DB::ErrnoException: Cannot open file /var/lib/clickhouse/format_schemas/nonexist, errno: 2, strerror: No such file or directory: While executing File. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59268) (in query: select * from file('test_02149_schema_inference_test_n2nt5czi.data', 'Template', 'val1 char') settings format_template_row='nonexist'), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:169: DB::ErrnoException::ErrnoException(String const&, int, int, std::optional const&) @ 0x00000000138db5f0 in /usr/bin/clickhouse 6. /build/src/Common/Exception.cpp:224: DB::throwFromErrnoWithPath(String const&, String const&, int, int) @ 0x00000000138d6d9b in /usr/bin/clickhouse 7. /build/src/IO/ReadBufferFromFile.cpp:48: DB::ReadBufferFromFile::ReadBufferFromFile(String const&, unsigned long, int, char*, unsigned long, std::optional, std::shared_ptr) @ 0x000000001396d8b6 in /usr/bin/clickhouse 8. /build/src/Formats/ParsedTemplateFormatString.cpp:19: DB::ParsedTemplateFormatString::ParsedTemplateFormatString(DB::FormatSchemaInfo const&, std::function (String const&)> const&, bool) @ 0x000000001eadcb87 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/TemplateRowInputFormat.cpp:562: DB::fillRowFormat(DB::FormatSettings const&, std::function (String const&)>, bool) @ 0x000000001eae3d10 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/TemplateRowInputFormat.cpp:590: DB::registerInputFormatTemplate(DB::FormatFactory&)::$_0::operator()(DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams, DB::FormatSettings const&) const @ 0x000000001eae38cf in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerInputFormatTemplate(DB::FormatFactory&)::$_0&, DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) @ 0x000000001eae37b9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerInputFormatTemplate(DB::FormatFactory&)::$_0&, DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) @ 0x000000001eae36f5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) @ 0x000000001eae3695 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>::__call_impl (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) @ 0x000000001eae363d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) const @ 0x000000001e612b36 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>::operator()(DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) const @ 0x000000001e610e35 in /usr/bin/clickhouse 17. /build/src/Formats/FormatFactory.cpp:330: DB::FormatFactory::getInput(String const&, DB::ReadBuffer&, DB::Block const&, std::shared_ptr, unsigned long, std::optional const&, std::optional, std::optional, bool, DB::CompressionMethod) const @ 0x000000001e606157 in /usr/bin/clickhouse 18. /build/src/Interpreters/Context.cpp:3735: DB::Context::getInputFormat(String const&, DB::ReadBuffer&, DB::Block const&, unsigned long, std::optional const&, std::optional) const @ 0x000000001bdcf8c3 in /usr/bin/clickhouse 19. /build/src/Storages/StorageFile.cpp:1278: DB::StorageFileSource::generate() @ 0x000000001d6a03ac in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 2024.05.01 13:56:03.727330 [ 60037 ] {1c220141-79cc-42a9-8512-fdaf835bbe90} TCPHandler: Code: 107. DB::ErrnoException: Cannot open file /var/lib/clickhouse/format_schemas/nonexist, errno: 2, strerror: No such file or directory: While executing File. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:169: DB::ErrnoException::ErrnoException(String const&, int, int, std::optional const&) @ 0x00000000138db5f0 in /usr/bin/clickhouse 6. /build/src/Common/Exception.cpp:224: DB::throwFromErrnoWithPath(String const&, String const&, int, int) @ 0x00000000138d6d9b in /usr/bin/clickhouse 7. /build/src/IO/ReadBufferFromFile.cpp:48: DB::ReadBufferFromFile::ReadBufferFromFile(String const&, unsigned long, int, char*, unsigned long, std::optional, std::shared_ptr) @ 0x000000001396d8b6 in /usr/bin/clickhouse 8. /build/src/Formats/ParsedTemplateFormatString.cpp:19: DB::ParsedTemplateFormatString::ParsedTemplateFormatString(DB::FormatSchemaInfo const&, std::function (String const&)> const&, bool) @ 0x000000001eadcb87 in /usr/bin/clickhouse 9. /build/src/Processors/Formats/Impl/TemplateRowInputFormat.cpp:562: DB::fillRowFormat(DB::FormatSettings const&, std::function (String const&)>, bool) @ 0x000000001eae3d10 in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/TemplateRowInputFormat.cpp:590: DB::registerInputFormatTemplate(DB::FormatFactory&)::$_0::operator()(DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams, DB::FormatSettings const&) const @ 0x000000001eae38cf in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval(), std::declval())) std::__invoke[abi:v15000](DB::registerInputFormatTemplate(DB::FormatFactory&)::$_0&, DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) @ 0x000000001eae37b9 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerInputFormatTemplate(DB::FormatFactory&)::$_0&, DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) @ 0x000000001eae36f5 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) @ 0x000000001eae3695 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>::__call_impl (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>>(std::__function::__policy_storage const*, DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) @ 0x000000001eae363d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>::operator()[abi:v15000](DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) const @ 0x000000001e612b36 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&)>::operator()(DB::ReadBuffer&, DB::Block const&, DB::RowInputFormatParams const&, DB::FormatSettings const&) const @ 0x000000001e610e35 in /usr/bin/clickhouse 17. /build/src/Formats/FormatFactory.cpp:330: DB::FormatFactory::getInput(String const&, DB::ReadBuffer&, DB::Block const&, std::shared_ptr, unsigned long, std::optional const&, std::optional, std::optional, bool, DB::CompressionMethod) const @ 0x000000001e606157 in /usr/bin/clickhouse 18. /build/src/Interpreters/Context.cpp:3735: DB::Context::getInputFormat(String const&, DB::ReadBuffer&, DB::Block const&, unsigned long, std::optional const&, std::optional) const @ 0x000000001bdcf8c3 in /usr/bin/clickhouse 19. /build/src/Storages/StorageFile.cpp:1278: DB::StorageFileSource::generate() @ 0x000000001d6a03ac in /usr/bin/clickhouse 20. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 2024.05.01 14:04:27.552471 [ 60037 ] {6e3b18d8-d718-4bc1-848f-916bb0ed1750} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53142) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:04:27.553298 [ 60037 ] {6e3b18d8-d718-4bc1-848f-916bb0ed1750} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:04:47.868250 [ 60037 ] {2d4c93b3-f1a4-4722-be9e-2cad9f0185bc} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:44750) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:04:47.869177 [ 60037 ] {2d4c93b3-f1a4-4722-be9e-2cad9f0185bc} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:05:26.254591 [ 72649 ] {28052479-2c14-43d9-a517-a2f2483fcbc5} executeQuery: Code: 60. DB::Exception: Table shard_1.data_01850 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46160) (comment: 01850_dist_INSERT_preserve_error.sql) (in query: INSERT INTO data_01850 (key) VALUES), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:121: DB::InterpreterInsertQuery::getTable(DB::ASTInsertQuery&) @ 0x000000001ca72c92 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:380: DB::InterpreterInsertQuery::execute() @ 0x000000001ca74c86 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:05:26.255263 [ 72649 ] {28052479-2c14-43d9-a517-a2f2483fcbc5} TCPHandler: Code: 60. DB::Exception: Table shard_1.data_01850 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:121: DB::InterpreterInsertQuery::getTable(DB::ASTInsertQuery&) @ 0x000000001ca72c92 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:380: DB::InterpreterInsertQuery::execute() @ 0x000000001ca74c86 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:05:26.373710 [ 60037 ] {690293c3-280f-4334-8fdb-559901e73aa2} executeQuery: Code: 60. DB::Exception: Received from localhost:9000. DB::Exception: Table shard_1.data_01850 does not exist. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:121: DB::InterpreterInsertQuery::getTable(DB::ASTInsertQuery&) @ 0x000000001ca72c92 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:380: DB::InterpreterInsertQuery::execute() @ 0x000000001ca74c86 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? : Insertion status: Wrote 1 blocks and 1 rows on shard 0 replica 0, localhost:9000 (average 16 ms per block) Wrote 0 blocks and 0 rows on shard 0 replica 1, localhost:9000 (average 99 ms per block) . (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:46158) (comment: 01850_dist_INSERT_preserve_error.sql) (in query: insert into dist_01850 values ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b1f8915 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:1364: DB::readException(DB::ReadBuffer&, String const&, bool) @ 0x000000001397b422 in /usr/bin/clickhouse 7. /build/src/Client/Connection.cpp:1150: DB::Connection::receiveException() const @ 0x000000001e45ebb9 in /usr/bin/clickhouse 8. /build/src/Client/Connection.cpp:987: DB::Connection::receivePacket() @ 0x000000001e4651b1 in /usr/bin/clickhouse 9. /build/src/QueryPipeline/RemoteInserter.cpp:59: DB::RemoteInserter::RemoteInserter(DB::Connection&, DB::ConnectionTimeouts const&, String const&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dc8ab78 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/RemoteSink.h:17: DB::RemoteSink::RemoteSink(DB::Connection&, DB::ConnectionTimeouts const&, String const&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dcac94c in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::RemoteSink* std::construct_at[abi:v15000](DB::RemoteSink*, DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dcac8e1 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::RemoteSink*, DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dcac681 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dcac36d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&, void>(std::allocator const&, DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dcac1c0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dcabf86 in /usr/bin/clickhouse 16. /build/src/Storages/Distributed/DistributedSink.cpp:398: DB::DistributedSink::runWritingJob(DB::DistributedSink::JobReplica&, DB::Block const&, unsigned long)::$_0::operator()() const @ 0x000000001dca5675 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::DistributedSink::runWritingJob(DB::DistributedSink::JobReplica&, DB::Block const&, unsigned long)::$_0&) @ 0x000000001dca46d5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::DistributedSink::runWritingJob(DB::DistributedSink::JobReplica&, DB::Block const&, unsigned long)::$_0&) @ 0x000000001dca46b5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001dca4695 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001dca4660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 2024.05.01 14:05:26.375603 [ 60037 ] {690293c3-280f-4334-8fdb-559901e73aa2} TCPHandler: Code: 60. DB::Exception: Received from localhost:9000. DB::Exception: Table shard_1.data_01850 does not exist. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:121: DB::InterpreterInsertQuery::getTable(DB::ASTInsertQuery&) @ 0x000000001ca72c92 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:380: DB::InterpreterInsertQuery::execute() @ 0x000000001ca74c86 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? : Insertion status: Wrote 1 blocks and 1 rows on shard 0 replica 0, localhost:9000 (average 16 ms per block) Wrote 0 blocks and 0 rows on shard 0 replica 1, localhost:9000 (average 99 ms per block) . (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:72: DB::Exception::Exception(String const&, int, bool) @ 0x000000000b1f896a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:80: DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000b1f8915 in /usr/bin/clickhouse 6. /build/src/IO/ReadHelpers.cpp:1364: DB::readException(DB::ReadBuffer&, String const&, bool) @ 0x000000001397b422 in /usr/bin/clickhouse 7. /build/src/Client/Connection.cpp:1150: DB::Connection::receiveException() const @ 0x000000001e45ebb9 in /usr/bin/clickhouse 8. /build/src/Client/Connection.cpp:987: DB::Connection::receivePacket() @ 0x000000001e4651b1 in /usr/bin/clickhouse 9. /build/src/QueryPipeline/RemoteInserter.cpp:59: DB::RemoteInserter::RemoteInserter(DB::Connection&, DB::ConnectionTimeouts const&, String const&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dc8ab78 in /usr/bin/clickhouse 10. /build/src/Processors/Sinks/RemoteSink.h:17: DB::RemoteSink::RemoteSink(DB::Connection&, DB::ConnectionTimeouts const&, String const&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dcac94c in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::RemoteSink* std::construct_at[abi:v15000](DB::RemoteSink*, DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dcac8e1 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::RemoteSink*, DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dcac681 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000](std::allocator, DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dcac36d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&, void>(std::allocator const&, DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dcac1c0 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000](DB::Connection&, DB::ConnectionTimeouts&, String&, DB::Settings const&, DB::ClientInfo const&) @ 0x000000001dcabf86 in /usr/bin/clickhouse 16. /build/src/Storages/Distributed/DistributedSink.cpp:398: DB::DistributedSink::runWritingJob(DB::DistributedSink::JobReplica&, DB::Block const&, unsigned long)::$_0::operator()() const @ 0x000000001dca5675 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::DistributedSink::runWritingJob(DB::DistributedSink::JobReplica&, DB::Block const&, unsigned long)::$_0&) @ 0x000000001dca46d5 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::DistributedSink::runWritingJob(DB::DistributedSink::JobReplica&, DB::Block const&, unsigned long)::$_0&) @ 0x000000001dca46b5 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001dca4695 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001dca4660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 2024.05.01 14:05:26.461304 [ 60037 ] {} TCPHandler: Code: 101. DB::NetException: Unexpected packet Data received from client. (UNEXPECTED_PACKET_FROM_CLIENT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/NetException.h:14: DB::NetException::NetException(int, char const (&) [44]) @ 0x000000001e5f1b7e in /usr/bin/clickhouse 6. /build/src/Server/TCPHandler.cpp:1848: DB::TCPHandler::receiveUnexpectedData(bool) @ 0x000000001e5ea522 in /usr/bin/clickhouse 7. /build/src/Server/TCPHandler.cpp:0: DB::TCPHandler::receivePacket() @ 0x000000001e5e168f in /usr/bin/clickhouse 8. /build/src/Server/TCPHandler.cpp:348: DB::TCPHandler::runImpl() @ 0x000000001e5d9821 in /usr/bin/clickhouse 9. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 11. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 12. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 13. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 15. ? @ 0x00007fcde32fbac3 in ? 16. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:06:39.381918 [ 60037 ] {c3e0087b-9bbf-4155-9fcb-2c6e9b451bfa} executeQuery: Code: 57. DB::Exception: Table `test_1603_rename_bug_ordinary`.`foo` already exists (detached). (TABLE_ALREADY_EXISTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40352) (comment: 01603_rename_overwrite_bug.sql) (in query: rename table test_1603_rename_bug_ordinary.bar to test_1603_rename_bug_ordinary.foo;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseOnDisk.cpp:350: DB::DatabaseOnDisk::checkMetadataFilenameAvailabilityUnlocked(String const&) const @ 0x000000001babfb1d in /usr/bin/clickhouse 7. /build/src/Databases/DatabaseOnDisk.cpp:335: DB::DatabaseOnDisk::checkMetadataFilenameAvailability(String const&) const @ 0x000000001babf712 in /usr/bin/clickhouse 8. /build/src/Databases/DatabaseOnDisk.cpp:412: DB::DatabaseOnDisk::renameTable(std::shared_ptr, String const&, DB::IDatabase&, String const&, bool, bool) @ 0x000000001bac0689 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterRenameQuery.cpp:141: DB::InterpreterRenameQuery::executeToTables(DB::ASTRenameQuery const&, std::vector> const&, std::map>, std::less, std::allocator>>>>&) @ 0x000000001ca8bccc in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterRenameQuery.cpp:75: DB::InterpreterRenameQuery::execute() @ 0x000000001ca8a799 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:06:39.382697 [ 60037 ] {c3e0087b-9bbf-4155-9fcb-2c6e9b451bfa} TCPHandler: Code: 57. DB::Exception: Table `test_1603_rename_bug_ordinary`.`foo` already exists (detached). (TABLE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseOnDisk.cpp:350: DB::DatabaseOnDisk::checkMetadataFilenameAvailabilityUnlocked(String const&) const @ 0x000000001babfb1d in /usr/bin/clickhouse 7. /build/src/Databases/DatabaseOnDisk.cpp:335: DB::DatabaseOnDisk::checkMetadataFilenameAvailability(String const&) const @ 0x000000001babf712 in /usr/bin/clickhouse 8. /build/src/Databases/DatabaseOnDisk.cpp:412: DB::DatabaseOnDisk::renameTable(std::shared_ptr, String const&, DB::IDatabase&, String const&, bool, bool) @ 0x000000001bac0689 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterRenameQuery.cpp:141: DB::InterpreterRenameQuery::executeToTables(DB::ASTRenameQuery const&, std::vector> const&, std::map>, std::less, std::allocator>>>>&) @ 0x000000001ca8bccc in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterRenameQuery.cpp:75: DB::InterpreterRenameQuery::execute() @ 0x000000001ca8a799 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:06:39.664967 [ 60037 ] {ea90f5c1-c733-4cc2-8086-05b4e9eff784} executeQuery: Code: 57. DB::Exception: Table `test_1603_rename_bug_atomic`.`foo` already exists (detached). (TABLE_ALREADY_EXISTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:40352) (comment: 01603_rename_overwrite_bug.sql) (in query: rename table test_1603_rename_bug_atomic.bar to test_1603_rename_bug_atomic.foo;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseOnDisk.cpp:350: DB::DatabaseOnDisk::checkMetadataFilenameAvailabilityUnlocked(String const&) const @ 0x000000001babfb1d in /usr/bin/clickhouse 7. /build/src/Databases/DatabaseAtomic.cpp:240: DB::DatabaseAtomic::renameTable(std::shared_ptr, String const&, DB::IDatabase&, String const&, bool, bool) @ 0x000000001baceb73 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterRenameQuery.cpp:141: DB::InterpreterRenameQuery::executeToTables(DB::ASTRenameQuery const&, std::vector> const&, std::map>, std::less, std::allocator>>>>&) @ 0x000000001ca8bccc in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterRenameQuery.cpp:75: DB::InterpreterRenameQuery::execute() @ 0x000000001ca8a799 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:06:39.665704 [ 60037 ] {ea90f5c1-c733-4cc2-8086-05b4e9eff784} TCPHandler: Code: 57. DB::Exception: Table `test_1603_rename_bug_atomic`.`foo` already exists (detached). (TABLE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseOnDisk.cpp:350: DB::DatabaseOnDisk::checkMetadataFilenameAvailabilityUnlocked(String const&) const @ 0x000000001babfb1d in /usr/bin/clickhouse 7. /build/src/Databases/DatabaseAtomic.cpp:240: DB::DatabaseAtomic::renameTable(std::shared_ptr, String const&, DB::IDatabase&, String const&, bool, bool) @ 0x000000001baceb73 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterRenameQuery.cpp:141: DB::InterpreterRenameQuery::executeToTables(DB::ASTRenameQuery const&, std::vector> const&, std::map>, std::less, std::allocator>>>>&) @ 0x000000001ca8bccc in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterRenameQuery.cpp:75: DB::InterpreterRenameQuery::execute() @ 0x000000001ca8a799 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:08:37.213070 [ 60037 ] {79944093-85d6-467f-b1ae-0fa9898633a4} executeQuery: Code: 520. DB::Exception: Cannot drop/detach dictionary database_for_dict.dict1 as table, use DROP DICTIONARY or DETACH DICTIONARY query instead. (CANNOT_DETACH_DICTIONARY_AS_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55050) (comment: 01575_disable_detach_table_of_dictionary.sql) (in query: DETACH TABLE database_for_dict.dict1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDictionary.cpp:151: DB::StorageDictionary::checkTableCanBeDropped(std::shared_ptr) const @ 0x000000001d63afea in /usr/bin/clickhouse 7. /build/src/Storages/StorageDictionary.cpp:165: DB::StorageDictionary::checkTableCanBeDetached() const @ 0x000000001d63b159 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterDropQuery.cpp:176: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8aa259 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:08:37.214094 [ 60037 ] {79944093-85d6-467f-b1ae-0fa9898633a4} TCPHandler: Code: 520. DB::Exception: Cannot drop/detach dictionary database_for_dict.dict1 as table, use DROP DICTIONARY or DETACH DICTIONARY query instead. (CANNOT_DETACH_DICTIONARY_AS_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageDictionary.cpp:151: DB::StorageDictionary::checkTableCanBeDropped(std::shared_ptr) const @ 0x000000001d63afea in /usr/bin/clickhouse 7. /build/src/Storages/StorageDictionary.cpp:165: DB::StorageDictionary::checkTableCanBeDetached() const @ 0x000000001d63b159 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterDropQuery.cpp:176: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8aa259 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:08:37.307638 [ 60037 ] {4f56ad9d-4666-4f65-bdc3-53dd98dd9de7} executeQuery: Code: 80. DB::Exception: Cannot ATTACH TABLE database_for_dict.dict1, it is a Dictionary. (INCORRECT_QUERY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55050) (comment: 01575_disable_detach_table_of_dictionary.sql) (in query: ATTACH TABLE database_for_dict.dict1;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1089: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e308c in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:08:37.308493 [ 60037 ] {4f56ad9d-4666-4f65-bdc3-53dd98dd9de7} TCPHandler: Code: 80. DB::Exception: Cannot ATTACH TABLE database_for_dict.dict1, it is a Dictionary. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1089: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e308c in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:09:08.092542 [ 5967 ] {b2bb6771-5a14-4350-bcdd-02ad51f614a4} executeQuery: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_0_0_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r5 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51220) (comment: 01459_manual_write_to_replicas_quorum_detach_attach.sh) (in query: INSERT INTO r6 SELECT 0), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:08.094778 [ 5967 ] {b2bb6771-5a14-4350-bcdd-02ad51f614a4} TCPHandler: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_0_0_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r5 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:13.263364 [ 73201 ] {5082513c-092f-4930-9ef3-400b94b8e81f} executeQuery: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_1_1_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r3 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59184) (comment: 01459_manual_write_to_replicas_quorum_detach_attach.sh) (in query: INSERT INTO r1 SELECT 1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:13.265753 [ 73201 ] {5082513c-092f-4930-9ef3-400b94b8e81f} TCPHandler: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_1_1_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r3 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:13.268151 [ 73699 ] {9abb86f7-40a2-4b73-aa00-814930d16e96} executeQuery: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_1_1_0 required_number_of_replicas: 3 actual_number_of_replicas: 2 replicas: r3 r5 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59200) (comment: 01459_manual_write_to_replicas_quorum_detach_attach.sh) (in query: INSERT INTO r2 SELECT 1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:13.270877 [ 73699 ] {9abb86f7-40a2-4b73-aa00-814930d16e96} TCPHandler: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_1_1_0 required_number_of_replicas: 3 actual_number_of_replicas: 2 replicas: r3 r5 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:18.447519 [ 5967 ] {bfdcf46b-5a8e-4eaf-bfc8-3cb58538a625} executeQuery: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_2_2_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r5 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:44546) (comment: 01459_manual_write_to_replicas_quorum_detach_attach.sh) (in query: INSERT INTO r1 SELECT 1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:18.451023 [ 5967 ] {bfdcf46b-5a8e-4eaf-bfc8-3cb58538a625} TCPHandler: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_2_2_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r5 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:18.458898 [ 73201 ] {eeed4c93-dfac-41b1-b886-460f6e6afb58} executeQuery: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_2_2_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r5 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:44550) (comment: 01459_manual_write_to_replicas_quorum_detach_attach.sh) (in query: INSERT INTO r2 SELECT 1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:18.461183 [ 73201 ] {eeed4c93-dfac-41b1-b886-460f6e6afb58} TCPHandler: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_2_2_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r5 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:23.666493 [ 73700 ] {952df293-7183-4166-b316-84ad869d590e} executeQuery: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_3_3_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r5 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:44690) (comment: 01459_manual_write_to_replicas_quorum_detach_attach.sh) (in query: INSERT INTO r1 SELECT 1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:23.668926 [ 73700 ] {952df293-7183-4166-b316-84ad869d590e} TCPHandler: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_3_3_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r5 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:23.680971 [ 73701 ] {629a03ed-e729-444e-a3cd-7a28e398a955} executeQuery: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_3_3_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r5 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:44704) (comment: 01459_manual_write_to_replicas_quorum_detach_attach.sh) (in query: INSERT INTO r4 SELECT 3), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:23.683157 [ 73701 ] {629a03ed-e729-444e-a3cd-7a28e398a955} TCPHandler: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_3_3_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r5 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:28.916468 [ 73701 ] {fb4b1591-437c-4112-a508-b558ac1ce96d} executeQuery: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_4_4_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r3 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:54564) (comment: 01459_manual_write_to_replicas_quorum_detach_attach.sh) (in query: INSERT INTO r5 SELECT 4), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:28.919813 [ 73701 ] {fb4b1591-437c-4112-a508-b558ac1ce96d} TCPHandler: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_4_4_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r3 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:39.511245 [ 60037 ] {920801fb-3013-451b-8646-37cdcdbbda05} executeQuery: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_6_6_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r3 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45328) (comment: 01459_manual_write_to_replicas_quorum_detach_attach.sh) (in query: INSERT INTO r1 SELECT 3), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:09:39.513411 [ 60037 ] {920801fb-3013-451b-8646-37cdcdbbda05} TCPHandler: Code: 286. DB::Exception: Quorum for previous write has not been satisfied yet. Status: version: 1 part_name: all_6_6_0 required_number_of_replicas: 3 actual_number_of_replicas: 1 replicas: r3 . (UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:219: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()::operator()() const @ 0x000000001e2d1dfc in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ZooKeeperRetries.h:65: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&, void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&)::'lambda'()&&) @ 0x000000001e2d0fdb in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ZooKeeperRetries.h:47: void DB::ZooKeeperRetriesControl::retryLoop::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()>(DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&)::'lambda'()&&) @ 0x000000001e2b98c1 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:164: DB::ReplicatedMergeTreeSinkImpl::checkQuorumPrecondition(std::shared_ptr const&) @ 0x000000001e2b8f9d in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeSink.cpp:267: DB::ReplicatedMergeTreeSinkImpl::consume(DB::Chunk) @ 0x000000001e2b758f in /usr/bin/clickhouse 11. /build/src/Processors/Sinks/SinkToStorage.cpp:18: DB::SinkToStorage::onConsume(DB::Chunk) @ 0x000000001ecc53a2 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work()::$_1::operator()() const @ 0x000000001eb5fedc in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe95 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ExceptionKeepingTransform::work()::$_1&) @ 0x000000001eb5fe75 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001eb5fe55 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001eb5fe1d in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:114: DB::runStep(std::function, DB::ThreadStatus*, std::atomic*) @ 0x000000001eb5f736 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/ExceptionKeepingTransform.cpp:150: DB::ExceptionKeepingTransform::work() @ 0x000000001eb5f17e in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 28. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 2024.05.01 14:10:59.771124 [ 944 ] {} test_hm9udvfd.r10 (dfe4019c-6869-444b-91f5-a0bf65e3eb90): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_0_0_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:10:59.771236 [ 942 ] {} test_hm9udvfd.r3 (1239cf98-09e9-4ffe-b2c9-4fb92f2eb2b1): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_0_0_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:10:59.771431 [ 947 ] {} test_hm9udvfd.r8 (641e93d7-0e24-4bd6-9a64-7ee8ae121008): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_0_0_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:01.588792 [ 943 ] {} test_hm9udvfd.r5 (9b1824d6-c31f-4620-8db4-12d4fe6936c8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_2_2_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:01.592999 [ 940 ] {} test_hm9udvfd.r8 (641e93d7-0e24-4bd6-9a64-7ee8ae121008): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_2_2_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:01.598550 [ 947 ] {} test_hm9udvfd.r9 (af1e7b95-c456-48be-99c7-0951cc114cdf): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_2_2_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:01.617448 [ 944 ] {} test_hm9udvfd.r7 (67871867-f9a0-4471-a4be-73593d7032b3): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_2_2_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:01.619145 [ 939 ] {} test_hm9udvfd.r10 (dfe4019c-6869-444b-91f5-a0bf65e3eb90): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_2_2_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:03.552290 [ 944 ] {} test_hm9udvfd.r9 (af1e7b95-c456-48be-99c7-0951cc114cdf): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_5_5_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:05.513178 [ 940 ] {} test_hm9udvfd.r5 (9b1824d6-c31f-4620-8db4-12d4fe6936c8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_6_6_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:05.516445 [ 939 ] {} test_hm9udvfd.r6 (d71c3ced-0992-480c-b85c-d9426d17907e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_6_6_0 (state PreActive) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:05.533567 [ 947 ] {} test_hm9udvfd.r10 (dfe4019c-6869-444b-91f5-a0bf65e3eb90): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_6_6_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:09.420407 [ 938 ] {} test_hm9udvfd.r10 (dfe4019c-6869-444b-91f5-a0bf65e3eb90): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_8_8_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:11.431964 [ 944 ] {} test_hm9udvfd.r8 (641e93d7-0e24-4bd6-9a64-7ee8ae121008): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_9_9_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:11.470377 [ 5007 ] {e1e3cd80-5934-4150-bf86-3d92037cf3ac} test_hm9udvfd.r9 (af1e7b95-c456-48be-99c7-0951cc114cdf): checkPartAndAddToZooKeeper: node /clickhouse/tables/01459_manual_write_to_replicas_test_hm9udvfd/r/replicas/r9/parts/all_9_9_0 already exists. Will not commit any nodes. 2024.05.01 14:11:11.479050 [ 945 ] {} test_hm9udvfd.r1 (ebe87af2-4043-423c-a2f4-44aa2e455774): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_9_9_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:15.351574 [ 939 ] {} test_hm9udvfd.r7 (67871867-f9a0-4471-a4be-73593d7032b3): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_11_11_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:17.323162 [ 943 ] {} test_hm9udvfd.r5 (9b1824d6-c31f-4620-8db4-12d4fe6936c8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_12_12_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:17.395279 [ 3937 ] {fd6d7ef7-5c10-43dd-8b5b-6d0187972c38} test_hm9udvfd.r1 (ebe87af2-4043-423c-a2f4-44aa2e455774): checkPartAndAddToZooKeeper: node /clickhouse/tables/01459_manual_write_to_replicas_test_hm9udvfd/r/replicas/r1/parts/all_12_12_0 already exists. Will not commit any nodes. 2024.05.01 14:11:19.392392 [ 939 ] {} test_hm9udvfd.r9 (af1e7b95-c456-48be-99c7-0951cc114cdf): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_13_13_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:21.291152 [ 943 ] {} test_hm9udvfd.r9 (af1e7b95-c456-48be-99c7-0951cc114cdf): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_14_14_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:23.223300 [ 63889 ] {7cc1939c-68b1-4b74-9bde-a3b8bd66a8a4} test_hm9udvfd.r9 (af1e7b95-c456-48be-99c7-0951cc114cdf): checkPartAndAddToZooKeeper: node /clickhouse/tables/01459_manual_write_to_replicas_test_hm9udvfd/r/replicas/r9/parts/all_15_15_0 already exists. Will not commit any nodes. 2024.05.01 14:11:25.258924 [ 945 ] {} test_hm9udvfd.r10 (dfe4019c-6869-444b-91f5-a0bf65e3eb90): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_16_16_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:29.184361 [ 940 ] {} test_hm9udvfd.r9 (af1e7b95-c456-48be-99c7-0951cc114cdf): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_18_18_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:33.108214 [ 944 ] {} test_hm9udvfd.r9 (af1e7b95-c456-48be-99c7-0951cc114cdf): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_20_20_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:33.139273 [ 945 ] {} test_hm9udvfd.r3 (1239cf98-09e9-4ffe-b2c9-4fb92f2eb2b1): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_20_20_0 (state PreActive) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:42.887214 [ 939 ] {} test_hm9udvfd.r5 (9b1824d6-c31f-4620-8db4-12d4fe6936c8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_25_25_0 (state PreActive) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:46.967660 [ 944 ] {} test_hm9udvfd.r7 (67871867-f9a0-4471-a4be-73593d7032b3): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_27_27_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:46.969682 [ 938 ] {} test_hm9udvfd.r5 (9b1824d6-c31f-4620-8db4-12d4fe6936c8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_27_27_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:46.974907 [ 939 ] {} test_hm9udvfd.r6 (d71c3ced-0992-480c-b85c-d9426d17907e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_27_27_0 (state PreActive) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:46.990928 [ 943 ] {} test_hm9udvfd.r3 (1239cf98-09e9-4ffe-b2c9-4fb92f2eb2b1): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_27_27_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:48.992537 [ 945 ] {} test_hm9udvfd.r6 (d71c3ced-0992-480c-b85c-d9426d17907e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_28_28_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:52.994687 [ 942 ] {} test_hm9udvfd.r5 (9b1824d6-c31f-4620-8db4-12d4fe6936c8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_30_30_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:54.931037 [ 939 ] {} test_hm9udvfd.r9 (af1e7b95-c456-48be-99c7-0951cc114cdf): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_31_31_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:54.979831 [ 940 ] {} test_hm9udvfd.r7 (67871867-f9a0-4471-a4be-73593d7032b3): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_31_31_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:11:58.862376 [ 943 ] {} test_hm9udvfd.r9 (af1e7b95-c456-48be-99c7-0951cc114cdf): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_33_33_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:00.883878 [ 942 ] {} test_hm9udvfd.r9 (af1e7b95-c456-48be-99c7-0951cc114cdf): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_34_34_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:02.942540 [ 940 ] {} test_hm9udvfd.r3 (1239cf98-09e9-4ffe-b2c9-4fb92f2eb2b1): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_35_35_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:04.879177 [ 939 ] {} test_hm9udvfd.r9 (af1e7b95-c456-48be-99c7-0951cc114cdf): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_37_37_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:06.835403 [ 947 ] {} test_hm9udvfd.r5 (9b1824d6-c31f-4620-8db4-12d4fe6936c8): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_38_38_0 (state PreActive) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:06.870444 [ 942 ] {} test_hm9udvfd.r9 (af1e7b95-c456-48be-99c7-0951cc114cdf): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_38_38_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:10.837682 [ 64106 ] {7dff3584-3c3d-47f2-855f-3ca548cecacc} test_hm9udvfd.r5 (9b1824d6-c31f-4620-8db4-12d4fe6936c8): checkPartAndAddToZooKeeper: node /clickhouse/tables/01459_manual_write_to_replicas_test_hm9udvfd/r/replicas/r5/parts/all_40_40_0 already exists. Will not commit any nodes. 2024.05.01 14:12:18.659352 [ 5009 ] {b82f7ec5-852a-4a34-84a9-e6cbf6b6cfaf} test_hm9udvfd.r4 (e23fd494-35a9-4640-bc1d-c9d14fcfb87e): checkPartAndAddToZooKeeper: node /clickhouse/tables/01459_manual_write_to_replicas_test_hm9udvfd/r/replicas/r4/parts/all_44_44_0 already exists. Will not commit any nodes. 2024.05.01 14:12:18.687549 [ 4948 ] {11dfe525-e68f-4410-9d56-57a50cb0ab64} test_hm9udvfd.r5 (9b1824d6-c31f-4620-8db4-12d4fe6936c8): checkPartAndAddToZooKeeper: node /clickhouse/tables/01459_manual_write_to_replicas_test_hm9udvfd/r/replicas/r5/parts/all_44_44_0 already exists. Will not commit any nodes. 2024.05.01 14:12:18.765692 [ 938 ] {} test_hm9udvfd.r2 (5b4354d7-20c6-4822-b115-63c76442a971): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_44_44_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:20.602725 [ 940 ] {} test_hm9udvfd.r9 (af1e7b95-c456-48be-99c7-0951cc114cdf): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_45_45_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:26.561138 [ 943 ] {} test_hm9udvfd.r3 (1239cf98-09e9-4ffe-b2c9-4fb92f2eb2b1): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_48_48_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:30.559028 [ 940 ] {} test_hm9udvfd.r2 (5b4354d7-20c6-4822-b115-63c76442a971): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_50_50_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:36.540546 [ 942 ] {} test_hm9udvfd.r8 (641e93d7-0e24-4bd6-9a64-7ee8ae121008): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_53_53_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:36.562200 [ 945 ] {} test_hm9udvfd.r1 (ebe87af2-4043-423c-a2f4-44aa2e455774): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_53_53_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:36.574686 [ 70738 ] {0439a179-1bf4-48cb-a38d-e86ca800744f} test_hm9udvfd.r2 (5b4354d7-20c6-4822-b115-63c76442a971): checkPartAndAddToZooKeeper: node /clickhouse/tables/01459_manual_write_to_replicas_test_hm9udvfd/r/replicas/r2/parts/all_53_53_0 already exists. Will not commit any nodes. 2024.05.01 14:12:36.578532 [ 940 ] {} test_hm9udvfd.r4 (e23fd494-35a9-4640-bc1d-c9d14fcfb87e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_53_53_0 (state PreActive) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:38.460746 [ 943 ] {} test_hm9udvfd.r6 (d71c3ced-0992-480c-b85c-d9426d17907e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_54_54_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:38.572700 [ 944 ] {} test_hm9udvfd.r1 (ebe87af2-4043-423c-a2f4-44aa2e455774): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_54_54_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:44.434099 [ 64130 ] {254b9f49-623a-4312-9698-ada6f8991c2b} test_hm9udvfd.r10 (dfe4019c-6869-444b-91f5-a0bf65e3eb90): checkPartAndAddToZooKeeper: node /clickhouse/tables/01459_manual_write_to_replicas_test_hm9udvfd/r/replicas/r10/parts/all_57_57_0 already exists. Will not commit any nodes. 2024.05.01 14:12:44.439607 [ 938 ] {} test_hm9udvfd.r6 (d71c3ced-0992-480c-b85c-d9426d17907e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_57_57_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:46.395299 [ 947 ] {} test_hm9udvfd.r1 (ebe87af2-4043-423c-a2f4-44aa2e455774): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_58_58_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:46.434096 [ 70730 ] {3032a8cb-44ec-451c-a272-9d1fbf2517e5} test_hm9udvfd.r8 (641e93d7-0e24-4bd6-9a64-7ee8ae121008): checkPartAndAddToZooKeeper: node /clickhouse/tables/01459_manual_write_to_replicas_test_hm9udvfd/r/replicas/r8/parts/all_58_58_0 already exists. Will not commit any nodes. 2024.05.01 14:12:48.379767 [ 938 ] {} test_hm9udvfd.r1 (ebe87af2-4043-423c-a2f4-44aa2e455774): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_59_59_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:48.398220 [ 939 ] {} test_hm9udvfd.r6 (d71c3ced-0992-480c-b85c-d9426d17907e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_59_59_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:50.552809 [ 944 ] {} test_hm9udvfd.r10 (dfe4019c-6869-444b-91f5-a0bf65e3eb90): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_60_60_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:56.349895 [ 940 ] {} test_hm9udvfd.r6 (d71c3ced-0992-480c-b85c-d9426d17907e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_63_63_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:56.360142 [ 939 ] {} test_hm9udvfd.r4 (e23fd494-35a9-4640-bc1d-c9d14fcfb87e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_63_63_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:12:58.328221 [ 938 ] {} test_hm9udvfd.r10 (dfe4019c-6869-444b-91f5-a0bf65e3eb90): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_64_64_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:13:04.179488 [ 947 ] {} test_hm9udvfd.r6 (d71c3ced-0992-480c-b85c-d9426d17907e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_67_67_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:13:18.064840 [ 938 ] {} test_hm9udvfd.r6 (d71c3ced-0992-480c-b85c-d9426d17907e): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_74_74_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:13:28.122243 [ 939 ] {} test_hm9udvfd.r7 (67871867-f9a0-4471-a4be-73593d7032b3): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_79_79_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:13:36.052649 [ 939 ] {} test_hm9udvfd.r2 (5b4354d7-20c6-4822-b115-63c76442a971): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_83_83_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:13:47.811752 [ 942 ] {} test_hm9udvfd.r9 (af1e7b95-c456-48be-99c7-0951cc114cdf): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_90_90_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:13:51.815712 [ 942 ] {} test_hm9udvfd.r8 (641e93d7-0e24-4bd6-9a64-7ee8ae121008): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(LogEntryPtr &) const: Code: 235. DB::Exception: Part all_92_92_0 (state Active) already exists. (DUPLICATE_DATA_PART), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeData.cpp:3774: DB::MergeTreeData::checkPartDuplicate(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&) const @ 0x000000001de3341e in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/MergeTreeData.cpp:3878: DB::MergeTreeData::renameTempPartAndReplaceImpl(std::shared_ptr&, DB::MergeTreeData::Transaction&, DB::DataPartsLock&, std::vector, std::allocator>>*) @ 0x000000001de35b71 in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/MergeTreeData.cpp:3930: DB::MergeTreeData::renameTempPartAndReplace(std::shared_ptr&, DB::MergeTreeData::Transaction&) @ 0x000000001de36219 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:4618: DB::StorageReplicatedMergeTree::fetchPart(String const&, std::shared_ptr const&, String const&, String const&, bool, unsigned long, std::shared_ptr, bool) @ 0x000000001d7d5e2c in /usr/bin/clickhouse 10. /build/src/Storages/StorageReplicatedMergeTree.cpp:1946: DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&, bool) @ 0x000000001d7cb75f in /usr/bin/clickhouse 11. /build/src/Storages/StorageReplicatedMergeTree.cpp:1787: DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x000000001d7bdf2e in /usr/bin/clickhouse 12. /build/src/Storages/StorageReplicatedMergeTree.cpp:3272: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1::operator()(std::shared_ptr&) const @ 0x000000001d874d79 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval)::$_1&>()(std::declval&>())) std::__invoke[abi:v15000])::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874d1d in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call)::$_1&, std::shared_ptr&>(DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr)::$_1&, std::shared_ptr&) @ 0x000000001d874cdd in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func)::$_1, bool (std::shared_ptr&)>::operator()[abi:v15000](std::shared_ptr&) @ 0x000000001d874c9d in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker&)>::__call_impl)::$_1, bool (std::shared_ptr&)>>(std::__function::__policy_storage const*, std::shared_ptr&) @ 0x000000001d874c65 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func&)>::operator()[abi:v15000](std::shared_ptr&) const @ 0x000000001e298c5e in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function&)>::operator()(std::shared_ptr&) const @ 0x000000001e2811dd in /usr/bin/clickhouse 19. /build/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp:1700: DB::ReplicatedMergeTreeQueue::processEntry(std::function ()>, std::shared_ptr&, std::function&)>) @ 0x000000001e26d039 in /usr/bin/clickhouse 20. /build/src/Storages/StorageReplicatedMergeTree.cpp:3268: DB::StorageReplicatedMergeTree::processQueueEntry(std::shared_ptr) @ 0x000000001d7f3808 in /usr/bin/clickhouse 21. /build/src/Storages/StorageReplicatedMergeTree.cpp:3331: DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0::operator()() @ 0x000000001d876135 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760f5 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: bool std::__invoke_void_return_wrapper::__call(DB::StorageReplicatedMergeTree::scheduleDataProcessingJob(DB::BackgroundJobsAssignee&)::$_0&) @ 0x000000001d8760d5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001d8760b5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: bool std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001d876080 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x00000000138993b6 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013898615 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/IExecutableTask.h:61: DB::ExecutableLambdaAdapter::executeStep() @ 0x000000001d8c2c1d in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001dde732d in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001dde7dee in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:56: DB::MergeTreeBackgroundExecutor::MergeTreeBackgroundExecutor(String, unsigned long, unsigned long, StrongTypedef, StrongTypedef, std::basic_string_view>)::'lambda'()::operator()() const @ 0x000000001ddf48d8 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:13:57.620691 [ 64477 ] {1c056405-9784-495e-8cdd-50fd5e5dc940} test_hm9udvfd.r9 (af1e7b95-c456-48be-99c7-0951cc114cdf): checkPartAndAddToZooKeeper: node /clickhouse/tables/01459_manual_write_to_replicas_test_hm9udvfd/r/replicas/r9/parts/all_95_95_0 already exists. Will not commit any nodes. 2024.05.01 14:14:58.511559 [ 73699 ] {9b557a91-5fe7-40bc-8bef-1e4ebda00d91} executeQuery: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36892) (comment: 01444_create_table_drop_database_race.sh) (in query: CREATE TABLE IF NOT EXISTS test_01444.t26394 (`x` UInt8) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 12569, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 192, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 4549955434, index_granularity_bytes = 11073354, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 16493, primary_key_compress_block_size = 59147), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1236: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e6046 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:14:58.511672 [ 74095 ] {48b23091-5fce-4bf8-9c76-f93e80fecdb2} executeQuery: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36908) (comment: 01444_create_table_drop_database_race.sh) (in query: CREATE TABLE IF NOT EXISTS test_01444.t23226 (`x` UInt8) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 12569, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 192, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 4549955434, index_granularity_bytes = 11073354, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 16493, primary_key_compress_block_size = 59147), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1236: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e6046 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:14:58.513324 [ 73699 ] {9b557a91-5fe7-40bc-8bef-1e4ebda00d91} TCPHandler: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1236: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e6046 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:14:58.513957 [ 74095 ] {48b23091-5fce-4bf8-9c76-f93e80fecdb2} TCPHandler: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1236: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e6046 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:15:02.055679 [ 73699 ] {dbdbda1a-4ea2-4b8b-8f0d-adceef7bbfdc} executeQuery: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36976) (comment: 01444_create_table_drop_database_race.sh) (in query: CREATE TABLE IF NOT EXISTS test_01444.t27337 (`x` UInt8) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 12569, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 192, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 4549955434, index_granularity_bytes = 11073354, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 16493, primary_key_compress_block_size = 59147), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1236: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e6046 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:15:02.057544 [ 73699 ] {dbdbda1a-4ea2-4b8b-8f0d-adceef7bbfdc} TCPHandler: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1236: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e6046 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:15:02.132716 [ 74095 ] {766190de-10c9-49ca-98d2-06e22ab9c9e6} executeQuery: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36988) (comment: 01444_create_table_drop_database_race.sh) (in query: CREATE TABLE IF NOT EXISTS test_01444.t28814 (`x` UInt8) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 12569, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 192, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 4549955434, index_granularity_bytes = 11073354, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 16493, primary_key_compress_block_size = 59147), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1236: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e6046 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:15:02.134256 [ 74095 ] {766190de-10c9-49ca-98d2-06e22ab9c9e6} TCPHandler: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1236: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e6046 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:15:05.609814 [ 73699 ] {c7e35386-90e2-4eae-9e22-50b31c2efac6} executeQuery: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37034) (comment: 01444_create_table_drop_database_race.sh) (in query: CREATE TABLE IF NOT EXISTS test_01444.t13755 (`x` UInt8) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 12569, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 192, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 4549955434, index_granularity_bytes = 11073354, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 16493, primary_key_compress_block_size = 59147), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1236: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e6046 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:15:05.611794 [ 73699 ] {c7e35386-90e2-4eae-9e22-50b31c2efac6} TCPHandler: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1236: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e6046 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:15:05.741611 [ 74095 ] {57e8182b-613a-4732-9cef-a562791b629d} executeQuery: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:37048) (comment: 01444_create_table_drop_database_race.sh) (in query: CREATE TABLE IF NOT EXISTS test_01444.t16242 (`x` UInt8) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 12569, min_bytes_for_wide_part = 0, ratio_of_defaults_for_sparse_serialization = 1., merge_max_block_size = 192, prefer_fetch_merged_part_size_threshold = 10737418240, vertical_merge_algorithm_min_rows_to_activate = 1000000, vertical_merge_algorithm_min_columns_to_activate = 100, min_merge_bytes_to_use_direct_io = 4549955434, index_granularity_bytes = 11073354, allow_vertical_merges_from_compact_to_wide_parts = false, marks_compress_block_size = 16493, primary_key_compress_block_size = 59147), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1236: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e6046 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:15:05.743286 [ 74095 ] {57e8182b-613a-4732-9cef-a562791b629d} TCPHandler: Code: 81. DB::Exception: Database test_01444 does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1236: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e6046 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:17:21.136458 [ 920 ] {} 5936819a-bedc-4d63-9713-eee9adb17dd0::20191002_0_0_0_2 (MutateFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 160. DB::Exception: The maximum sleep time is 3000000 microseconds. Requested: 10000000 microseconds per block (of size 10): while executing 'FUNCTION sleepEachRow(1 : 1) -> sleepEachRow(1) UInt8 : 4'. (TOO_SLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long const&, unsigned long&, unsigned long&) @ 0x000000001253b688 in /usr/bin/clickhouse 6. /build/src/Functions/sleep.h:124: DB::FunctionSleep<(DB::FunctionSleepVariant)1>::execute(std::vector> const&, std::shared_ptr const&, bool) const @ 0x000000001253d42b in /usr/bin/clickhouse 7. /build/src/Functions/sleep.h:94: DB::FunctionSleep<(DB::FunctionSleepVariant)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001253cc77 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e68d821 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MutateTask.cpp:1137: DB::PartMergerWriter::mutateOriginalPartAndPrepareProjections() @ 0x000000001e1a6c2a in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MutateTask.cpp:1062: DB::PartMergerWriter::execute() @ 0x000000001e1c92e3 in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/MutateTask.cpp:1506: DB::MutateSomePartColumnsTask::executeStep() @ 0x000000001e1cd7aa in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/MutateTask.cpp:1754: DB::MutateTask::execute() @ 0x000000001e1a7e6f in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/MutateFromLogEntryTask.h:44: DB::MutateFromLogEntryTask::executeInnerTask() @ 0x000000001e1a4524 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:188: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e213779 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:17:21.136767 [ 928 ] {} 5936819a-bedc-4d63-9713-eee9adb17dd0::20191002_1_1_0_2 (MutateFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 160. DB::Exception: The maximum sleep time is 3000000 microseconds. Requested: 10000000 microseconds per block (of size 10): while executing 'FUNCTION sleepEachRow(1 : 1) -> sleepEachRow(1) UInt8 : 4'. (TOO_SLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long const&, unsigned long&, unsigned long&) @ 0x000000001253b688 in /usr/bin/clickhouse 6. /build/src/Functions/sleep.h:124: DB::FunctionSleep<(DB::FunctionSleepVariant)1>::execute(std::vector> const&, std::shared_ptr const&, bool) const @ 0x000000001253d42b in /usr/bin/clickhouse 7. /build/src/Functions/sleep.h:94: DB::FunctionSleep<(DB::FunctionSleepVariant)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001253cc77 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e68d821 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MutateTask.cpp:1137: DB::PartMergerWriter::mutateOriginalPartAndPrepareProjections() @ 0x000000001e1a6c2a in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MutateTask.cpp:1062: DB::PartMergerWriter::execute() @ 0x000000001e1c92e3 in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/MutateTask.cpp:1506: DB::MutateSomePartColumnsTask::executeStep() @ 0x000000001e1cd7aa in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/MutateTask.cpp:1754: DB::MutateTask::execute() @ 0x000000001e1a7e6f in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/MutateFromLogEntryTask.h:44: DB::MutateFromLogEntryTask::executeInnerTask() @ 0x000000001e1a4524 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:188: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e213779 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:17:21.137240 [ 920 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {5936819a-bedc-4d63-9713-eee9adb17dd0::20191002_0_0_0_2}: Code: 160. DB::Exception: The maximum sleep time is 3000000 microseconds. Requested: 10000000 microseconds per block (of size 10): while executing 'FUNCTION sleepEachRow(1 : 1) -> sleepEachRow(1) UInt8 : 4'. (TOO_SLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long const&, unsigned long&, unsigned long&) @ 0x000000001253b688 in /usr/bin/clickhouse 6. /build/src/Functions/sleep.h:124: DB::FunctionSleep<(DB::FunctionSleepVariant)1>::execute(std::vector> const&, std::shared_ptr const&, bool) const @ 0x000000001253d42b in /usr/bin/clickhouse 7. /build/src/Functions/sleep.h:94: DB::FunctionSleep<(DB::FunctionSleepVariant)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001253cc77 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e68d821 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MutateTask.cpp:1137: DB::PartMergerWriter::mutateOriginalPartAndPrepareProjections() @ 0x000000001e1a6c2a in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MutateTask.cpp:1062: DB::PartMergerWriter::execute() @ 0x000000001e1c92e3 in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/MutateTask.cpp:1506: DB::MutateSomePartColumnsTask::executeStep() @ 0x000000001e1cd7aa in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/MutateTask.cpp:1754: DB::MutateTask::execute() @ 0x000000001e1a7e6f in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/MutateFromLogEntryTask.h:44: DB::MutateFromLogEntryTask::executeInnerTask() @ 0x000000001e1a4524 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:188: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e213779 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:17:21.137749 [ 928 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {5936819a-bedc-4d63-9713-eee9adb17dd0::20191002_1_1_0_2}: Code: 160. DB::Exception: The maximum sleep time is 3000000 microseconds. Requested: 10000000 microseconds per block (of size 10): while executing 'FUNCTION sleepEachRow(1 : 1) -> sleepEachRow(1) UInt8 : 4'. (TOO_SLOW), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long const&, unsigned long&, unsigned long&) @ 0x000000001253b688 in /usr/bin/clickhouse 6. /build/src/Functions/sleep.h:124: DB::FunctionSleep<(DB::FunctionSleepVariant)1>::execute(std::vector> const&, std::shared_ptr const&, bool) const @ 0x000000001253d42b in /usr/bin/clickhouse 7. /build/src/Functions/sleep.h:94: DB::FunctionSleep<(DB::FunctionSleepVariant)1>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000001253cc77 in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:65: DB::PullingPipelineExecutor::pull(DB::Block&) @ 0x000000001e68d821 in /usr/bin/clickhouse 23. /build/src/Storages/MergeTree/MutateTask.cpp:1137: DB::PartMergerWriter::mutateOriginalPartAndPrepareProjections() @ 0x000000001e1a6c2a in /usr/bin/clickhouse 24. /build/src/Storages/MergeTree/MutateTask.cpp:1062: DB::PartMergerWriter::execute() @ 0x000000001e1c92e3 in /usr/bin/clickhouse 25. /build/src/Storages/MergeTree/MutateTask.cpp:1506: DB::MutateSomePartColumnsTask::executeStep() @ 0x000000001e1cd7aa in /usr/bin/clickhouse 26. /build/src/Storages/MergeTree/MutateTask.cpp:1754: DB::MutateTask::execute() @ 0x000000001e1a7e6f in /usr/bin/clickhouse 27. /build/src/Storages/MergeTree/MutateFromLogEntryTask.h:44: DB::MutateFromLogEntryTask::executeInnerTask() @ 0x000000001e1a4524 in /usr/bin/clickhouse 28. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:188: DB::ReplicatedMergeMutateTaskBase::executeImpl() @ 0x000000001e213779 in /usr/bin/clickhouse 29. /build/src/Storages/MergeTree/ReplicatedMergeMutateTaskBase.cpp:46: DB::ReplicatedMergeMutateTaskBase::executeStep() @ 0x000000001e212160 in /usr/bin/clickhouse 30. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:273: DB::MergeTreeBackgroundExecutor::routine(std::shared_ptr) @ 0x000000001ddedd0d in /usr/bin/clickhouse 31. /build/src/Storages/MergeTree/MergeTreeBackgroundExecutor.cpp:338: DB::MergeTreeBackgroundExecutor::threadFunction() @ 0x000000001ddee76e in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:17:21.904439 [ 73699 ] {b43583aa-066a-44bd-98b5-bcd191b953e4} executeQuery: Code: 341. DB::Exception: Mutation 0000000000 was killed, manually removed or table was dropped. (UNFINISHED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48988) (comment: 01414_mutations_and_errors_zookeeper.sh) (in query: ALTER TABLE replicated_mutation_table UPDATE key = key + 1 WHERE sleepEachRow(1) == 0 SETTINGS mutations_sync = 2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:592: DB::StorageReplicatedMergeTree::waitMutationToFinishOnReplicas(std::vector> const&, String const&) const @ 0x000000001d7a6849 in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:7089: DB::StorageReplicatedMergeTree::waitMutation(String const&, unsigned long) const @ 0x000000001d81a579 in /usr/bin/clickhouse 8. /build/src/Storages/StorageReplicatedMergeTree.cpp:7062: DB::StorageReplicatedMergeTree::mutate(DB::MutationCommands const&, std::shared_ptr) @ 0x000000001d83481f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:179: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caaba in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:17:21.906757 [ 73699 ] {b43583aa-066a-44bd-98b5-bcd191b953e4} TCPHandler: Code: 341. DB::Exception: Mutation 0000000000 was killed, manually removed or table was dropped. (UNFINISHED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:592: DB::StorageReplicatedMergeTree::waitMutationToFinishOnReplicas(std::vector> const&, String const&) const @ 0x000000001d7a6849 in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:7089: DB::StorageReplicatedMergeTree::waitMutation(String const&, unsigned long) const @ 0x000000001d81a579 in /usr/bin/clickhouse 8. /build/src/Storages/StorageReplicatedMergeTree.cpp:7062: DB::StorageReplicatedMergeTree::mutate(DB::MutationCommands const&, std::shared_ptr) @ 0x000000001d83481f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterAlterQuery.cpp:179: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7caaba in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:17:22.304604 [ 919 ] {} test_tk517ubq.replicated_mutation_table (ReplicatedMergeTreeQueue): There are no mutations for partition ID 20191002 (trying to mutate part 20191002_1_1_0 to 2) 2024.05.01 14:17:22.304915 [ 926 ] {} test_tk517ubq.replicated_mutation_table (ReplicatedMergeTreeQueue): There are no mutations for partition ID 20191002 (trying to mutate part 20191002_0_0_0 to 2) 2024.05.01 14:17:24.384598 [ 927 ] {} 5936819a-bedc-4d63-9713-eee9adb17dd0::20191002_1_1_0_3 (MutateFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/593/5936819a-bedc-4d63-9713-eee9adb17dd0/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2e8337 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2e2ff8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2d1719 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0a48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0c01f6 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:17:24.385903 [ 927 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {5936819a-bedc-4d63-9713-eee9adb17dd0::20191002_1_1_0_3}: Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/593/5936819a-bedc-4d63-9713-eee9adb17dd0/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2e8337 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2e2ff8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2d1719 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0a48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0c01f6 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:17:25.143029 [ 915 ] {} 5936819a-bedc-4d63-9713-eee9adb17dd0::20191002_1_1_0_3 (MutateFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/593/5936819a-bedc-4d63-9713-eee9adb17dd0/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2e8337 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2e2ff8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2d1719 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0a48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0c01f6 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:17:25.144467 [ 915 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {5936819a-bedc-4d63-9713-eee9adb17dd0::20191002_1_1_0_3}: Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/593/5936819a-bedc-4d63-9713-eee9adb17dd0/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2e8337 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2e2ff8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2d1719 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0a48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0c01f6 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:17:25.381671 [ 73699 ] {1b9fb109-bec4-41a7-a5af-bd7956b008e8} executeQuery: Code: 341. DB::Exception: Exception happened during execution of mutation '0000000001' with part '20191002_1_1_0_2' reason: 'Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/593/5936819a-bedc-4d63-9713-eee9adb17dd0/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build))'. This error maybe retryable or not. In case of unretryable error, mutation can be killed with KILL MUTATION query. (UNFINISHED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:49016) (comment: 01414_mutations_and_errors_zookeeper.sh) (in query: ALTER TABLE replicated_mutation_table MODIFY COLUMN value UInt64 SETTINGS replication_alter_partitions_sync = 2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&&, String&, String&) @ 0x000000001e06c8a4 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeMutationStatus.cpp:26: DB::checkMutationStatus(std::optional&, std::set, std::allocator> const&) @ 0x000000001e06c650 in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:655: DB::StorageReplicatedMergeTree::waitMutationToFinishOnReplicas(std::vector> const&, String const&) const @ 0x000000001d7a824e in /usr/bin/clickhouse 8. /build/src/Storages/StorageReplicatedMergeTree.cpp:7089: DB::StorageReplicatedMergeTree::waitMutation(String const&, unsigned long) const @ 0x000000001d81a579 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:5907: DB::StorageReplicatedMergeTree::alter(DB::AlterCommands const&, std::shared_ptr, std::unique_lock&) @ 0x000000001d819aff in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:197: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cb066 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:17:25.382869 [ 917 ] {} 5936819a-bedc-4d63-9713-eee9adb17dd0::20191002_1_1_0_3 (MutateFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/593/5936819a-bedc-4d63-9713-eee9adb17dd0/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2e8337 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2e2ff8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2d1719 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0a48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0c01f6 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:17:25.383368 [ 73699 ] {1b9fb109-bec4-41a7-a5af-bd7956b008e8} TCPHandler: Code: 341. DB::Exception: Exception happened during execution of mutation '0000000001' with part '20191002_1_1_0_2' reason: 'Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/593/5936819a-bedc-4d63-9713-eee9adb17dd0/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build))'. This error maybe retryable or not. In case of unretryable error, mutation can be killed with KILL MUTATION query. (UNFINISHED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&&, String&, String&) @ 0x000000001e06c8a4 in /usr/bin/clickhouse 6. /build/src/Storages/MergeTree/MergeTreeMutationStatus.cpp:26: DB::checkMutationStatus(std::optional&, std::set, std::allocator> const&) @ 0x000000001e06c650 in /usr/bin/clickhouse 7. /build/src/Storages/StorageReplicatedMergeTree.cpp:655: DB::StorageReplicatedMergeTree::waitMutationToFinishOnReplicas(std::vector> const&, String const&) const @ 0x000000001d7a824e in /usr/bin/clickhouse 8. /build/src/Storages/StorageReplicatedMergeTree.cpp:7089: DB::StorageReplicatedMergeTree::waitMutation(String const&, unsigned long) const @ 0x000000001d81a579 in /usr/bin/clickhouse 9. /build/src/Storages/StorageReplicatedMergeTree.cpp:5907: DB::StorageReplicatedMergeTree::alter(DB::AlterCommands const&, std::shared_ptr, std::unique_lock&) @ 0x000000001d819aff in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterAlterQuery.cpp:197: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7cb066 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:17:25.384424 [ 917 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {5936819a-bedc-4d63-9713-eee9adb17dd0::20191002_1_1_0_3}: Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/593/5936819a-bedc-4d63-9713-eee9adb17dd0/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2e8337 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2e2ff8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2d1719 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0a48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0c01f6 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:17:25.749430 [ 921 ] {} 5936819a-bedc-4d63-9713-eee9adb17dd0::20191002_1_1_0_3 (MutateFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/593/5936819a-bedc-4d63-9713-eee9adb17dd0/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2e8337 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2e2ff8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2d1719 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0a48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0c01f6 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:17:25.751910 [ 921 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {5936819a-bedc-4d63-9713-eee9adb17dd0::20191002_1_1_0_3}: Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/593/5936819a-bedc-4d63-9713-eee9adb17dd0/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2e8337 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2e2ff8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2d1719 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0a48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0c01f6 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:17:26.750389 [ 914 ] {} 5936819a-bedc-4d63-9713-eee9adb17dd0::20191002_1_1_0_3 (MutateFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/593/5936819a-bedc-4d63-9713-eee9adb17dd0/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2e8337 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2e2ff8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2d1719 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0a48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0c01f6 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:17:26.751723 [ 914 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {5936819a-bedc-4d63-9713-eee9adb17dd0::20191002_1_1_0_3}: Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/593/5936819a-bedc-4d63-9713-eee9adb17dd0/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2e8337 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2e2ff8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2d1719 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0a48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0c01f6 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:17:27.077175 [ 924 ] {} 5936819a-bedc-4d63-9713-eee9adb17dd0::20191002_1_1_0_3 (MutateFromLogEntryTask): virtual bool DB::ReplicatedMergeMutateTaskBase::executeStep(): Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/593/5936819a-bedc-4d63-9713-eee9adb17dd0/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2e8337 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2e2ff8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2d1719 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0a48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0c01f6 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:17:27.078549 [ 924 ] {} MergeTreeBackgroundExecutor: Exception while executing background task {5936819a-bedc-4d63-9713-eee9adb17dd0::20191002_1_1_0_3}: Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/593/5936819a-bedc-4d63-9713-eee9adb17dd0/20191002_1_1_0_2/ located on disk default of type local): While executing MergeTreeSequentialSource. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2e8337 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2e2ff8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2d1719 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0a48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0c01f6 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:17:27.298148 [ 925 ] {} test_tk517ubq.replicated_mutation_table (ReplicatedMergeTreeQueue): There are no mutations for partition ID 20191002 (trying to mutate part 20191002_1_1_0_2 to 3) 2024.05.01 14:17:29.785010 [ 73699 ] {59e4de4b-af3f-47e8-aae7-e7cb0d0ef181} executeQuery: Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/593/5936819a-bedc-4d63-9713-eee9adb17dd0/20191002_1_1_0_3/ located on disk default of type local): While executing MergeTreeThread. (CANNOT_PARSE_TEXT) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52030) (comment: 01414_mutations_and_errors_zookeeper.sh) (in query: SELECT distinct(value) FROM replicated_mutation_table ORDER BY value), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2e8337 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2e2ff8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2d1719 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0a48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0c01f6 in /usr/bin/clickhouse 2024.05.01 14:17:29.787762 [ 73699 ] {59e4de4b-af3f-47e8-aae7-e7cb0d0ef181} TCPHandler: Code: 6. DB::Exception: Cannot parse string 'Hello' as UInt64: syntax error at begin of string. Note: there are toUInt64OrZero and toUInt64OrNull functions, which returns zero/NULL instead of throwing exception.: while executing 'FUNCTION _CAST(value :: 0, 'UInt64' :: 1) -> _CAST(value, 'UInt64') UInt64 : 2': (while reading from part /var/lib/clickhouse/store/593/5936819a-bedc-4d63-9713-eee9adb17dd0/20191002_1_1_0_3/ located on disk default of type local): While executing MergeTreeThread. (CANNOT_PARSE_TEXT), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Functions/FunctionsConversion.h:1201: DB::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x000000000b20f931 in /usr/bin/clickhouse 7. /build/src/Functions/FunctionsConversion.h:1432: COW::immutable_ptr DB::ConvertThroughParsing, DB::NameToUInt64, (DB::ConvertFromStringExceptionMode)0, (DB::ConvertFromStringParsingMode)0>::execute(std::vector> const&, std::shared_ptr const&, unsigned long, void*) @ 0x000000000b2e8337 in /usr/bin/clickhouse 8. /build/src/Functions/FunctionsConversion.h:2044: bool DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()>, DB::ConvertDefaultBehaviorTag>(auto const&, auto const&) const @ 0x000000000b2e2ff8 in /usr/bin/clickhouse 9. /build/src/Core/callOnTypeIndex.h:204: bool DB::callOnIndexAndDataType, DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const::'lambda'(auto const&, auto const&)&, DB::ConvertDefaultBehaviorTag>(DB::TypeIndex, auto&&, DB::ConvertDefaultBehaviorTag&&) @ 0x000000000b2d1719 in /usr/bin/clickhouse 10. /build/src/Functions/FunctionsConversion.h:2091: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeInternal(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2d0a48 in /usr/bin/clickhouse 11. /build/src/Functions/FunctionsConversion.h:1932: DB::FunctionConvert, DB::NameToUInt64, DB::ToNumberMonotonicity>::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b2cfc5e in /usr/bin/clickhouse 12. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 13. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 14. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 15. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 16. /build/src/Functions/IFunction.h:141: DB::IFunctionBase::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000000b18c092 in /usr/bin/clickhouse 17. /build/src/Functions/FunctionsConversion.h:2919: DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b230790 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&>()(std::declval>&>(), std::declval const&>(), std::declval(), std::declval())) std::__invoke[abi:v15000]::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230726 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: COW::immutable_ptr std::__invoke_void_return_wrapper::immutable_ptr, false>::__call::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long>(DB::FunctionCast::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)&, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b2306c0 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) @ 0x000000000b230660 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl::createFunctionAdaptor(std::shared_ptr, std::shared_ptr const&)::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x000000000b23060b in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()[abi:v15000](std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*&&, unsigned long&&) const @ 0x000000000b1f2e67 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::operator()(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) const @ 0x000000000b1ef700 in /usr/bin/clickhouse 24. /build/src/Functions/FunctionsConversion.h:2806: DB::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b1eebaf in /usr/bin/clickhouse 25. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 26. /build/src/Functions/IFunction.cpp:307: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe542e in /usr/bin/clickhouse 27. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 28. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 30. /build/src/Interpreters/ExpressionActions.cpp:776: DB::ExpressionActions::execute(DB::Block&, bool) const @ 0x000000001bf79bee in /usr/bin/clickhouse 31. /build/src/Interpreters/inplaceBlockConversions.cpp:184: DB::performRequiredConversions(DB::Block&, DB::NamesAndTypesList const&, std::shared_ptr) @ 0x000000001d0c01f6 in /usr/bin/clickhouse 2024.05.01 14:18:57.675526 [ 726 ] {} test_vxfm03ad.test_table_2 (ReplicatedMergeTreeRestartingThread): Failed to restart the table. Will try again: Code: 415. DB::Exception: All replicas are lost. See SYSTEM DROP REPLICA and SYSTEM RESTORE REPLICA queries, they may help. (ALL_REPLICAS_LOST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [97]) @ 0x000000000b24b39e in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:3158: DB::StorageReplicatedMergeTree::cloneReplicaIfNeeded(std::shared_ptr) @ 0x000000001d7f1d19 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:165: DB::ReplicatedMergeTreeRestartingThread::tryStartup() @ 0x000000001e2a903f in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:131: DB::ReplicatedMergeTreeRestartingThread::runImpl() @ 0x000000001e2a8349 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:57: DB::ReplicatedMergeTreeRestartingThread::run() @ 0x000000001e2a6df1 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:42: DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e2ad6b8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2ad695 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2ad675 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e2ad655 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e2ad61d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 17. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3ca29d in /usr/bin/clickhouse 18. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3cd086 in /usr/bin/clickhouse 19. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3cdf78 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3cdf55 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3cdf39 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&) @ 0x000000001b3cde9d in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()::operator()() @ 0x000000001b3cddc5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&) @ 0x000000001b3cdd35 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&) @ 0x000000001b3cdd15 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001b3cdcf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3cdcc0 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:18:57.675779 [ 770 ] {} test_vxfm03ad.test_table_1 (ReplicatedMergeTreeRestartingThread): Failed to restart the table. Will try again: Code: 415. DB::Exception: All replicas are lost. See SYSTEM DROP REPLICA and SYSTEM RESTORE REPLICA queries, they may help. (ALL_REPLICAS_LOST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [97]) @ 0x000000000b24b39e in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:3158: DB::StorageReplicatedMergeTree::cloneReplicaIfNeeded(std::shared_ptr) @ 0x000000001d7f1d19 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:165: DB::ReplicatedMergeTreeRestartingThread::tryStartup() @ 0x000000001e2a903f in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:131: DB::ReplicatedMergeTreeRestartingThread::runImpl() @ 0x000000001e2a8349 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:57: DB::ReplicatedMergeTreeRestartingThread::run() @ 0x000000001e2a6df1 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:42: DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e2ad6b8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2ad695 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2ad675 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e2ad655 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e2ad61d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 17. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3ca29d in /usr/bin/clickhouse 18. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3cd086 in /usr/bin/clickhouse 19. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3cdf78 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3cdf55 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3cdf39 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&) @ 0x000000001b3cde9d in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()::operator()() @ 0x000000001b3cddc5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&) @ 0x000000001b3cdd35 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&) @ 0x000000001b3cdd15 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001b3cdcf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3cdcc0 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:18:57.676021 [ 726 ] {} test_vxfm03ad.test_table_2 (ReplicatedMergeTreeRestartingThread): Table was in readonly mode. Will try to activate it. 2024.05.01 14:18:57.685123 [ 726 ] {} test_vxfm03ad.test_table_2 (ReplicatedMergeTreeRestartingThread): Failed to restart the table. Will try again: Code: 415. DB::Exception: All replicas are lost. See SYSTEM DROP REPLICA and SYSTEM RESTORE REPLICA queries, they may help. (ALL_REPLICAS_LOST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [97]) @ 0x000000000b24b39e in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:3158: DB::StorageReplicatedMergeTree::cloneReplicaIfNeeded(std::shared_ptr) @ 0x000000001d7f1d19 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:165: DB::ReplicatedMergeTreeRestartingThread::tryStartup() @ 0x000000001e2a903f in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:131: DB::ReplicatedMergeTreeRestartingThread::runImpl() @ 0x000000001e2a8349 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:57: DB::ReplicatedMergeTreeRestartingThread::run() @ 0x000000001e2a6df1 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:42: DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e2ad6b8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2ad695 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2ad675 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e2ad655 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e2ad61d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 17. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3ca29d in /usr/bin/clickhouse 18. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3cd086 in /usr/bin/clickhouse 19. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3cdf78 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3cdf55 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3cdf39 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&) @ 0x000000001b3cde9d in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()::operator()() @ 0x000000001b3cddc5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&) @ 0x000000001b3cdd35 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&) @ 0x000000001b3cdd15 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001b3cdcf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3cdcc0 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:18:57.708225 [ 799 ] {} test_vxfm03ad.test_table_1 (ReplicatedMergeTreeRestartingThread): Table was in readonly mode. Will try to activate it. 2024.05.01 14:18:57.718126 [ 799 ] {} test_vxfm03ad.test_table_1 (ReplicatedMergeTreeRestartingThread): Failed to restart the table. Will try again: Code: 415. DB::Exception: All replicas are lost. See SYSTEM DROP REPLICA and SYSTEM RESTORE REPLICA queries, they may help. (ALL_REPLICAS_LOST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [97]) @ 0x000000000b24b39e in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:3158: DB::StorageReplicatedMergeTree::cloneReplicaIfNeeded(std::shared_ptr) @ 0x000000001d7f1d19 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:165: DB::ReplicatedMergeTreeRestartingThread::tryStartup() @ 0x000000001e2a903f in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:131: DB::ReplicatedMergeTreeRestartingThread::runImpl() @ 0x000000001e2a8349 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:57: DB::ReplicatedMergeTreeRestartingThread::run() @ 0x000000001e2a6df1 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:42: DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e2ad6b8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2ad695 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2ad675 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e2ad655 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e2ad61d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 17. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3ca29d in /usr/bin/clickhouse 18. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3cd086 in /usr/bin/clickhouse 19. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3cdf78 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3cdf55 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3cdf39 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&) @ 0x000000001b3cde9d in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()::operator()() @ 0x000000001b3cddc5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&) @ 0x000000001b3cdd35 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&) @ 0x000000001b3cdd15 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001b3cdcf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3cdcc0 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:18:57.984784 [ 763 ] {} test_vxfm03ad.test_table_2 (ReplicatedMergeTreeRestartingThread): Table was in readonly mode. Will try to activate it. 2024.05.01 14:18:57.995382 [ 763 ] {} test_vxfm03ad.test_table_2 (ReplicatedMergeTreeRestartingThread): Failed to restart the table. Will try again: Code: 415. DB::Exception: All replicas are lost. See SYSTEM DROP REPLICA and SYSTEM RESTORE REPLICA queries, they may help. (ALL_REPLICAS_LOST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [97]) @ 0x000000000b24b39e in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:3158: DB::StorageReplicatedMergeTree::cloneReplicaIfNeeded(std::shared_ptr) @ 0x000000001d7f1d19 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:165: DB::ReplicatedMergeTreeRestartingThread::tryStartup() @ 0x000000001e2a903f in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:131: DB::ReplicatedMergeTreeRestartingThread::runImpl() @ 0x000000001e2a8349 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:57: DB::ReplicatedMergeTreeRestartingThread::run() @ 0x000000001e2a6df1 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:42: DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e2ad6b8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2ad695 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2ad675 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e2ad655 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e2ad61d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 17. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3ca29d in /usr/bin/clickhouse 18. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3cd086 in /usr/bin/clickhouse 19. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3cdf78 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3cdf55 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3cdf39 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&) @ 0x000000001b3cde9d in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()::operator()() @ 0x000000001b3cddc5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&) @ 0x000000001b3cdd35 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&) @ 0x000000001b3cdd15 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001b3cdcf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3cdcc0 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:18:58.017420 [ 830 ] {} test_vxfm03ad.test_table_1 (ReplicatedMergeTreeRestartingThread): Table was in readonly mode. Will try to activate it. 2024.05.01 14:18:58.026872 [ 830 ] {} test_vxfm03ad.test_table_1 (ReplicatedMergeTreeRestartingThread): Failed to restart the table. Will try again: Code: 415. DB::Exception: All replicas are lost. See SYSTEM DROP REPLICA and SYSTEM RESTORE REPLICA queries, they may help. (ALL_REPLICAS_LOST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [97]) @ 0x000000000b24b39e in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:3158: DB::StorageReplicatedMergeTree::cloneReplicaIfNeeded(std::shared_ptr) @ 0x000000001d7f1d19 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:165: DB::ReplicatedMergeTreeRestartingThread::tryStartup() @ 0x000000001e2a903f in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:131: DB::ReplicatedMergeTreeRestartingThread::runImpl() @ 0x000000001e2a8349 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:57: DB::ReplicatedMergeTreeRestartingThread::run() @ 0x000000001e2a6df1 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:42: DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e2ad6b8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2ad695 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2ad675 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e2ad655 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e2ad61d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 17. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3ca29d in /usr/bin/clickhouse 18. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3cd086 in /usr/bin/clickhouse 19. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3cdf78 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3cdf55 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3cdf39 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&) @ 0x000000001b3cde9d in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()::operator()() @ 0x000000001b3cddc5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&) @ 0x000000001b3cdd35 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&) @ 0x000000001b3cdd15 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001b3cdcf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3cdcc0 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:18:58.594575 [ 804 ] {} test_vxfm03ad.test_table_2 (ReplicatedMergeTreeRestartingThread): Table was in readonly mode. Will try to activate it. 2024.05.01 14:18:58.604405 [ 804 ] {} test_vxfm03ad.test_table_2 (ReplicatedMergeTreeRestartingThread): Failed to restart the table. Will try again: Code: 415. DB::Exception: All replicas are lost. See SYSTEM DROP REPLICA and SYSTEM RESTORE REPLICA queries, they may help. (ALL_REPLICAS_LOST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [97]) @ 0x000000000b24b39e in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:3158: DB::StorageReplicatedMergeTree::cloneReplicaIfNeeded(std::shared_ptr) @ 0x000000001d7f1d19 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:165: DB::ReplicatedMergeTreeRestartingThread::tryStartup() @ 0x000000001e2a903f in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:131: DB::ReplicatedMergeTreeRestartingThread::runImpl() @ 0x000000001e2a8349 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:57: DB::ReplicatedMergeTreeRestartingThread::run() @ 0x000000001e2a6df1 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:42: DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e2ad6b8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2ad695 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2ad675 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e2ad655 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e2ad61d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 17. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3ca29d in /usr/bin/clickhouse 18. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3cd086 in /usr/bin/clickhouse 19. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3cdf78 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3cdf55 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3cdf39 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&) @ 0x000000001b3cde9d in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()::operator()() @ 0x000000001b3cddc5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&) @ 0x000000001b3cdd35 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&) @ 0x000000001b3cdd15 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001b3cdcf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3cdcc0 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:18:58.626232 [ 755 ] {} test_vxfm03ad.test_table_1 (ReplicatedMergeTreeRestartingThread): Table was in readonly mode. Will try to activate it. 2024.05.01 14:18:58.635818 [ 755 ] {} test_vxfm03ad.test_table_1 (ReplicatedMergeTreeRestartingThread): Failed to restart the table. Will try again: Code: 415. DB::Exception: All replicas are lost. See SYSTEM DROP REPLICA and SYSTEM RESTORE REPLICA queries, they may help. (ALL_REPLICAS_LOST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [97]) @ 0x000000000b24b39e in /usr/bin/clickhouse 6. /build/src/Storages/StorageReplicatedMergeTree.cpp:3158: DB::StorageReplicatedMergeTree::cloneReplicaIfNeeded(std::shared_ptr) @ 0x000000001d7f1d19 in /usr/bin/clickhouse 7. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:165: DB::ReplicatedMergeTreeRestartingThread::tryStartup() @ 0x000000001e2a903f in /usr/bin/clickhouse 8. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:131: DB::ReplicatedMergeTreeRestartingThread::runImpl() @ 0x000000001e2a8349 in /usr/bin/clickhouse 9. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:57: DB::ReplicatedMergeTreeRestartingThread::run() @ 0x000000001e2a6df1 in /usr/bin/clickhouse 10. /build/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp:42: DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0::operator()() const @ 0x000000001e2ad6b8 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2ad695 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::ReplicatedMergeTreeRestartingThread::ReplicatedMergeTreeRestartingThread(DB::StorageReplicatedMergeTree&)::$_0&) @ 0x000000001e2ad675 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e2ad655 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e2ad61d in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 17. /build/src/Core/BackgroundSchedulePool.cpp:104: DB::BackgroundSchedulePoolTaskInfo::execute() @ 0x000000001b3ca29d in /usr/bin/clickhouse 18. /build/src/Core/BackgroundSchedulePool.cpp:302: DB::BackgroundSchedulePool::threadFunction() @ 0x000000001b3cd086 in /usr/bin/clickhouse 19. /build/src/Core/BackgroundSchedulePool.cpp:168: DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0::operator()() const @ 0x000000001b3cdf78 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0&>()()) std::__invoke[abi:v15000], StrongTypedef, char const*)::$_0&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&) @ 0x000000001b3cdf55 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001b3cdf39 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000], StrongTypedef, char const*)::$_0&, std::tuple<>&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&, std::tuple<>&) @ 0x000000001b3cde9d in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()::operator()() @ 0x000000001b3cddc5 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval, StrongTypedef, char const*)::$_0>()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&) @ 0x000000001b3cdd35 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'()&) @ 0x000000001b3cdd15 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001b3cdcf5 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl, StrongTypedef, char const*)::$_0>(DB::BackgroundSchedulePool::BackgroundSchedulePool(unsigned long, StrongTypedef, StrongTypedef, char const*)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001b3cdcc0 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 30. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl::worker(std::__list_iterator) @ 0x0000000013a51123 in /usr/bin/clickhouse 31. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a593c4 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:18:59.335803 [ 73699 ] {d372ebea-f214-4914-a9f6-452c1c5fbfd9} test_vxfm03ad.test_table_2 (cab58fc7-05ce-44d2-b575-7bb904c0846c): Removing leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_vxfm03ad/alter_table (this might take several minutes) 2024.05.01 14:18:59.337305 [ 73699 ] {d372ebea-f214-4914-a9f6-452c1c5fbfd9} test_vxfm03ad.test_table_2 (cab58fc7-05ce-44d2-b575-7bb904c0846c): The leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_vxfm03ad/alter_table were removed by another replica 2024.05.01 14:18:59.348761 [ 73699 ] {d372ebea-f214-4914-a9f6-452c1c5fbfd9} test_vxfm03ad.test_table_2 (cab58fc7-05ce-44d2-b575-7bb904c0846c): Removing leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_vxfm03ad/alter_table (this might take several minutes) 2024.05.01 14:18:59.350601 [ 73699 ] {d372ebea-f214-4914-a9f6-452c1c5fbfd9} test_vxfm03ad.test_table_2 (cab58fc7-05ce-44d2-b575-7bb904c0846c): The leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_vxfm03ad/alter_table were removed by another replica 2024.05.01 14:18:59.362658 [ 73699 ] {d372ebea-f214-4914-a9f6-452c1c5fbfd9} test_vxfm03ad.test_table_2 (cab58fc7-05ce-44d2-b575-7bb904c0846c): Removing leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_vxfm03ad/alter_table (this might take several minutes) 2024.05.01 14:18:59.364182 [ 73699 ] {d372ebea-f214-4914-a9f6-452c1c5fbfd9} test_vxfm03ad.test_table_2 (cab58fc7-05ce-44d2-b575-7bb904c0846c): The leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_vxfm03ad/alter_table were removed by another replica 2024.05.01 14:18:59.373436 [ 73699 ] {d372ebea-f214-4914-a9f6-452c1c5fbfd9} test_vxfm03ad.test_table_2 (cab58fc7-05ce-44d2-b575-7bb904c0846c): Removing leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_vxfm03ad/alter_table (this might take several minutes) 2024.05.01 14:18:59.374700 [ 73699 ] {d372ebea-f214-4914-a9f6-452c1c5fbfd9} test_vxfm03ad.test_table_2 (cab58fc7-05ce-44d2-b575-7bb904c0846c): The leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_vxfm03ad/alter_table were removed by another replica 2024.05.01 14:18:59.383366 [ 73699 ] {d372ebea-f214-4914-a9f6-452c1c5fbfd9} test_vxfm03ad.test_table_2 (cab58fc7-05ce-44d2-b575-7bb904c0846c): Removing leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_vxfm03ad/alter_table (this might take several minutes) 2024.05.01 14:18:59.384593 [ 73699 ] {d372ebea-f214-4914-a9f6-452c1c5fbfd9} test_vxfm03ad.test_table_2 (cab58fc7-05ce-44d2-b575-7bb904c0846c): The leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_vxfm03ad/alter_table were removed by another replica 2024.05.01 14:18:59.392546 [ 73699 ] {d372ebea-f214-4914-a9f6-452c1c5fbfd9} test_vxfm03ad.test_table_2 (cab58fc7-05ce-44d2-b575-7bb904c0846c): Removing leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_vxfm03ad/alter_table (this might take several minutes) 2024.05.01 14:18:59.393641 [ 73699 ] {d372ebea-f214-4914-a9f6-452c1c5fbfd9} test_vxfm03ad.test_table_2 (cab58fc7-05ce-44d2-b575-7bb904c0846c): The leftovers from table /clickhouse/tables/01305_replica_create_drop_zookeeper_test_vxfm03ad/alter_table were removed by another replica 2024.05.01 14:19:14.307929 [ 73699 ] {6dd0bdb9-0868-496e-8549-7539a07c8f2c} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.56 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52522) (comment: 01301_aggregate_state_exception_memory_leak.sh) (in query: SELECT uniqExactState(number) FROM system.numbers_mt GROUP BY number % 10 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:14.407946 [ 73699 ] {6dd0bdb9-0868-496e-8549-7539a07c8f2c} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.56 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:18.167185 [ 73699 ] {a92d4d57-56e0-4a18-b399-802445431d64} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.07 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52530) (comment: 01301_aggregate_state_exception_memory_leak.sh) (in query: SELECT uniqExactState(number) FROM system.numbers_mt GROUP BY number % 10 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:18.287863 [ 73699 ] {a92d4d57-56e0-4a18-b399-802445431d64} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.07 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:22.081757 [ 73699 ] {fd8b6817-b274-4ddf-80b5-c2097d80163b} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.37 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45864) (comment: 01301_aggregate_state_exception_memory_leak.sh) (in query: SELECT uniqExactState(number) FROM system.numbers_mt GROUP BY number % 10 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:22.188028 [ 73699 ] {fd8b6817-b274-4ddf-80b5-c2097d80163b} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.37 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:25.809881 [ 73699 ] {6b7413d2-eed8-40c2-86be-ee515f8654ee} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.33 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45872) (comment: 01301_aggregate_state_exception_memory_leak.sh) (in query: SELECT uniqExactState(number) FROM system.numbers_mt GROUP BY number % 10 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:25.908915 [ 73699 ] {6b7413d2-eed8-40c2-86be-ee515f8654ee} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.33 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:29.529112 [ 73699 ] {756591b9-9454-4275-bb10-7f5b9ed7ed79} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 953.79 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:45886) (comment: 01301_aggregate_state_exception_memory_leak.sh) (in query: SELECT uniqExactState(number) FROM system.numbers_mt GROUP BY number % 10 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:29.642262 [ 73699 ] {756591b9-9454-4275-bb10-7f5b9ed7ed79} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 953.79 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:33.304676 [ 73699 ] {ebebe66e-a20e-4344-b0ea-4b391d6c541f} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.25 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35536) (comment: 01301_aggregate_state_exception_memory_leak.sh) (in query: SELECT uniqExactState(number) FROM system.numbers_mt GROUP BY number % 10 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:33.408836 [ 73699 ] {ebebe66e-a20e-4344-b0ea-4b391d6c541f} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.25 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:37.022594 [ 73699 ] {0d5e3de1-620d-456e-8d19-07315b24c3b8} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 955.04 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35548) (comment: 01301_aggregate_state_exception_memory_leak.sh) (in query: SELECT uniqExactState(number) FROM system.numbers_mt GROUP BY number % 10 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:37.141950 [ 73699 ] {0d5e3de1-620d-456e-8d19-07315b24c3b8} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 955.04 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:40.622129 [ 73699 ] {e1e0c112-3c6a-4faf-a930-4def5cc3dc45} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.73 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59832) (comment: 01301_aggregate_state_exception_memory_leak.sh) (in query: SELECT uniqExactState(number) FROM system.numbers_mt GROUP BY number % 10 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:40.734580 [ 73699 ] {e1e0c112-3c6a-4faf-a930-4def5cc3dc45} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.73 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:44.414311 [ 73699 ] {19170b12-64ba-4e86-8c41-edc17490d3a6} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.97 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59846) (comment: 01301_aggregate_state_exception_memory_leak.sh) (in query: SELECT uniqExactState(number) FROM system.numbers_mt GROUP BY number % 10 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:44.525784 [ 73699 ] {19170b12-64ba-4e86-8c41-edc17490d3a6} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 954.97 MiB (attempt to allocate chunk of 1572864 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:58: CurrentMemoryTracker::allocImpl(long, bool) @ 0x000000001387681b in /usr/bin/clickhouse 9. /build/src/Common/CurrentMemoryTracker.cpp:90: CurrentMemoryTracker::alloc(long) @ 0x0000000013876a21 in /usr/bin/clickhouse 10. /build/src/Common/Allocator.h:161: Allocator::realloc(void*, unsigned long, unsigned long, unsigned long) @ 0x000000001387595d in /usr/bin/clickhouse 11. /build/src/Common/Allocator.h:356: AllocatorWithStackMemory, 128ul, 1ul>::realloc(void*, unsigned long, unsigned long) @ 0x0000000014611aa4 in /usr/bin/clickhouse 12. /build/src/Common/HashTable/HashTable.h:582: HashTable, HashTableNoState>, HashCRC32, HashTableGrower<4ul>, AllocatorWithStackMemory, 128ul, 1ul>>::resize(unsigned long, unsigned long) @ 0x0000000016b19dea in /usr/bin/clickhouse 13. /build/src/Common/HashTable/HashTable.h:989: DB::IAggregateFunctionHelper>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b189e0 in /usr/bin/clickhouse 14. /build/src/AggregateFunctions/IAggregateFunction.h:785: DB::IAggregateFunctionDataHelper, DB::AggregateFunctionUniq>>::addBatchLookupTable8(unsigned long, unsigned long, char**, unsigned long, std::function, char8_t const*, DB::IColumn const**, DB::Arena*) const @ 0x0000000016b13e2d in /usr/bin/clickhouse 15. /build/src/Interpreters/Aggregator.cpp:1160: void DB::Aggregator::executeImplBatch, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>::State&, DB::Arena*, unsigned long, unsigned long, DB::Aggregator::AggregateFunctionInstruction*, char*) const @ 0x000000001c20f06b in /usr/bin/clickhouse 16. /build/src/Interpreters/Aggregator.cpp:0: void DB::Aggregator::executeImpl, FixedHashTableCalculatedSize>, Allocator>, false, false>>(DB::AggregationMethodOneNumber, FixedHashTableCalculatedSize>, Allocator>, false, false>&, DB::Arena*, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c0cb7a7 in /usr/bin/clickhouse 17. /build/src/Interpreters/Aggregator.cpp:1045: DB::Aggregator::executeImpl(DB::AggregatedDataVariants&, unsigned long, unsigned long, std::vector>&, DB::Aggregator::AggregateFunctionInstruction*, bool, char*) const @ 0x000000001c010855 in /usr/bin/clickhouse 18. /build/src/Interpreters/Aggregator.cpp:1593: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015c8d in /usr/bin/clickhouse 19. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 20. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 2024.05.01 14:19:46.221274 [ 73699 ] {6af5054d-5f95-44c3-8d71-aea2a6fbfaa6} executeQuery: Code: 199. DB::Exception: There is no quota `q2_01297` in user directories. (UNKNOWN_QUOTA) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59862) (comment: 01297_create_quota.sql) (in query: SHOW CREATE QUOTA q2_01297;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0ec299 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0ec1d3 in /usr/bin/clickhouse 8. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:331: DB::InterpreterShowCreateAccessEntityQuery::getEntities() const @ 0x000000001d17b7a3 in /usr/bin/clickhouse 9. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:341: DB::InterpreterShowCreateAccessEntityQuery::getCreateQueries() const @ 0x000000001d17a958 in /usr/bin/clickhouse 10. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:253: DB::InterpreterShowCreateAccessEntityQuery::executeImpl() @ 0x000000001d17a19b in /usr/bin/clickhouse 11. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:245: DB::InterpreterShowCreateAccessEntityQuery::execute() @ 0x000000001d17a0cb in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:19:46.222004 [ 73699 ] {6af5054d-5f95-44c3-8d71-aea2a6fbfaa6} TCPHandler: Code: 199. DB::Exception: There is no quota `q2_01297` in user directories. (UNKNOWN_QUOTA), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0ec299 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.cpp:76: ? @ 0x000000001b0ec1d3 in /usr/bin/clickhouse 8. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:331: DB::InterpreterShowCreateAccessEntityQuery::getEntities() const @ 0x000000001d17b7a3 in /usr/bin/clickhouse 9. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:341: DB::InterpreterShowCreateAccessEntityQuery::getCreateQueries() const @ 0x000000001d17a958 in /usr/bin/clickhouse 10. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:253: DB::InterpreterShowCreateAccessEntityQuery::executeImpl() @ 0x000000001d17a19b in /usr/bin/clickhouse 11. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:245: DB::InterpreterShowCreateAccessEntityQuery::execute() @ 0x000000001d17a0cb in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:19:49.655536 [ 73699 ] {f6ae48e2-89f2-469a-bb48-f058fa52896b} executeQuery: Code: 523. DB::Exception: There is no row policy `p2_01295 ON db.table` in user directories. (UNKNOWN_ROW_POLICY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58926) (comment: 01295_create_row_policy.sql) (in query: SHOW CREATE ROW POLICY p2_01295 ON db.table;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0ec299 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.h:247: std::shared_ptr DB::IAccessStorage::read(String const&, bool) const @ 0x000000001d17d88b in /usr/bin/clickhouse 8. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:304: DB::InterpreterShowCreateAccessEntityQuery::getEntities() const @ 0x000000001d17b2d5 in /usr/bin/clickhouse 9. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:341: DB::InterpreterShowCreateAccessEntityQuery::getCreateQueries() const @ 0x000000001d17a958 in /usr/bin/clickhouse 10. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:253: DB::InterpreterShowCreateAccessEntityQuery::executeImpl() @ 0x000000001d17a19b in /usr/bin/clickhouse 11. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:245: DB::InterpreterShowCreateAccessEntityQuery::execute() @ 0x000000001d17a0cb in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:19:49.656176 [ 73699 ] {f6ae48e2-89f2-469a-bb48-f058fa52896b} TCPHandler: Code: 523. DB::Exception: There is no row policy `p2_01295 ON db.table` in user directories. (UNKNOWN_ROW_POLICY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000c0ef56c in /usr/bin/clickhouse 6. /build/src/Access/IAccessStorage.cpp:682: DB::IAccessStorage::throwNotFound(DB::AccessEntityType, String const&) const @ 0x000000001b0ec299 in /usr/bin/clickhouse 7. /build/src/Access/IAccessStorage.h:247: std::shared_ptr DB::IAccessStorage::read(String const&, bool) const @ 0x000000001d17d88b in /usr/bin/clickhouse 8. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:304: DB::InterpreterShowCreateAccessEntityQuery::getEntities() const @ 0x000000001d17b2d5 in /usr/bin/clickhouse 9. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:341: DB::InterpreterShowCreateAccessEntityQuery::getCreateQueries() const @ 0x000000001d17a958 in /usr/bin/clickhouse 10. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:253: DB::InterpreterShowCreateAccessEntityQuery::executeImpl() @ 0x000000001d17a19b in /usr/bin/clickhouse 11. /build/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp:245: DB::InterpreterShowCreateAccessEntityQuery::execute() @ 0x000000001d17a0cb in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:19:54.437473 [ 73699 ] {cdaa2bf4-d0a4-4749-a7cd-d25756d2e641} executeQuery: Code: 60. DB::Exception: Table test_vp481fi5.table_that_do_not_exists does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58944) (comment: 01281_unsucceeded_insert_select_queries_counter.sql) (in query: -- Failed insert before execution INSERT INTO table_that_do_not_exists VALUES ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:121: DB::InterpreterInsertQuery::getTable(DB::ASTInsertQuery&) @ 0x000000001ca72c92 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:380: DB::InterpreterInsertQuery::execute() @ 0x000000001ca74c86 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:19:54.438125 [ 73699 ] {cdaa2bf4-d0a4-4749-a7cd-d25756d2e641} TCPHandler: Code: 60. DB::Exception: Table test_vp481fi5.table_that_do_not_exists does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterInsertQuery.cpp:121: DB::InterpreterInsertQuery::getTable(DB::ASTInsertQuery&) @ 0x000000001ca72c92 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:380: DB::InterpreterInsertQuery::execute() @ 0x000000001ca74c86 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:19:54.636670 [ 73699 ] {49145172-fe48-4505-b82b-5b209b573e27} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(1 :: 0) -> throwIf(1) UInt8 : 1'. (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58944) (comment: 01281_unsucceeded_insert_select_queries_counter.sql) (in query: -- Failed insert in execution INSERT INTO to_insert SELECT throwIf(1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 24. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e665267 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6651d5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&) @ 0x000000001e6651b5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e665195 in /usr/bin/clickhouse 2024.05.01 14:19:54.637962 [ 73699 ] {49145172-fe48-4505-b82b-5b209b573e27} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(1 :: 0) -> throwIf(1) UInt8 : 1'. (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:49: DB::threadFunction(DB::CompletedPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e6655dd in /usr/bin/clickhouse 24. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:90: DB::CompletedPipelineExecutor::execute()::$_0::operator()() const @ 0x000000001e66546a in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::CompletedPipelineExecutor::execute()::$_0&) @ 0x000000001e665415 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e6653f9 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::CompletedPipelineExecutor::execute()::$_0&, std::tuple<>&) @ 0x000000001e66535d in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()::operator()() @ 0x000000001e665267 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(DB::CompletedPipelineExecutor::execute()::$_0&&) @ 0x000000001e6651d5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'()&) @ 0x000000001e6651b5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e665195 in /usr/bin/clickhouse 2024.05.01 14:19:54.698146 [ 73699 ] {3d0fd062-7ae8-46f1-8b6b-f5d6fea37dbc} executeQuery: Code: 60. DB::Exception: Table test_vp481fi5.table_that_do_not_exists does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58944) (comment: 01281_unsucceeded_insert_select_queries_counter.sql) (in query: -- Failed select before execution SELECT * FROM table_that_do_not_exists;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:19:54.699080 [ 73699 ] {3d0fd062-7ae8-46f1-8b6b-f5d6fea37dbc} TCPHandler: Code: 60. DB::Exception: Table test_vp481fi5.table_that_do_not_exists does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:19:54.770693 [ 73699 ] {9a46bd91-9822-4c01-80c7-73217a864a8e} executeQuery: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(1 :: 0) -> throwIf(1) UInt8 : 1'. (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58944) (comment: 01281_unsucceeded_insert_select_queries_counter.sql) (in query: -- Failed select in execution SELECT throwIf(1);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 2024.05.01 14:19:54.771576 [ 73699 ] {9a46bd91-9822-4c01-80c7-73217a864a8e} TCPHandler: Code: 395. DB::Exception: Value passed to 'throwIf' function is non-zero: while executing 'FUNCTION throwIf(1 :: 0) -> throwIf(1) UInt8 : 1'. (FUNCTION_THROW_IF_VALUE_IS_NON_ZERO), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Functions/throwIf.cpp:140: COW::immutable_ptr DB::(anonymous namespace)::FunctionThrowIf::execute(DB::IColumn const*, std::optional const&, std::optional const&) const @ 0x00000000125fb186 in /usr/bin/clickhouse 7. /build/src/Functions/throwIf.cpp:104: DB::(anonymous namespace)::FunctionThrowIf::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000125f9f3d in /usr/bin/clickhouse 8. /build/src/Functions/IFunctionAdaptors.h:21: DB::FunctionToExecutableFunctionAdaptor::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000b18f3ad in /usr/bin/clickhouse 9. /build/src/Functions/IFunction.cpp:248: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe433a in /usr/bin/clickhouse 10. /build/src/Functions/IFunction.cpp:303: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe53c6 in /usr/bin/clickhouse 11. /build/src/Functions/IFunction.cpp:378: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x000000001abe62d5 in /usr/bin/clickhouse 12. /build/src/Interpreters/ExpressionActions.cpp:613: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x000000001bf791b1 in /usr/bin/clickhouse 13. /build/src/Interpreters/ExpressionActions.cpp:730: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x000000001bf785cd in /usr/bin/clickhouse 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:23: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x000000001eb60764 in /usr/bin/clickhouse 15. /build/src/Processors/ISimpleTransform.h:33: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x0000000017be9022 in /usr/bin/clickhouse 16. /build/src/Processors/ISimpleTransform.cpp:89: DB::ISimpleTransform::work() @ 0x000000001e648672 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 21. /build/src/Processors/Executors/PipelineExecutor.cpp:389: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001e667551 in /usr/bin/clickhouse 22. /build/src/Processors/Executors/PipelineExecutor.cpp:110: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e666b56 in /usr/bin/clickhouse 23. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:84: DB::threadFunction(DB::PullingAsyncPipelineExecutor::Data&, std::shared_ptr, unsigned long, bool) @ 0x000000001e68a406 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:113: DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0::operator()() const @ 0x000000001e68a29f in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&) @ 0x000000001e68a215 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&, std::__tuple_indices<>) @ 0x000000001e68a1f9 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&, std::tuple<>&) @ 0x000000001e68a15d in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()::operator()() @ 0x000000001e68a067 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&) @ 0x000000001e689fd5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'()&) @ 0x000000001e689fb5 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001e689f95 in /usr/bin/clickhouse 2024.05.01 14:21:04.817285 [ 73699 ] {49503f06-f184-4f67-8304-52348af571af} executeQuery: Code: 36. DB::Exception: It does not make sense to have codec NONE along with other compression codecs: NONE, NONE. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39558) (comment: 01272_suspicious_codecs.sql) (in query: -- test what should not work CREATE TABLE codecs (a UInt8 CODEC(NONE, NONE)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:192: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6a83 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:04.818157 [ 73699 ] {49503f06-f184-4f67-8304-52348af571af} TCPHandler: Code: 36. DB::Exception: It does not make sense to have codec NONE along with other compression codecs: NONE, NONE. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:192: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6a83 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:04.826360 [ 73699 ] {2856daf7-85fa-4eab-8243-38257ef3349f} executeQuery: Code: 36. DB::Exception: It does not make sense to have codec NONE along with other compression codecs: NONE, LZ4. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39558) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a UInt8 CODEC(NONE, LZ4)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:192: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6a83 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:04.827038 [ 73699 ] {2856daf7-85fa-4eab-8243-38257ef3349f} TCPHandler: Code: 36. DB::Exception: It does not make sense to have codec NONE along with other compression codecs: NONE, LZ4. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:192: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6a83 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:04.835426 [ 73699 ] {e09a5681-985a-4b63-839e-2e97da9af584} executeQuery: Code: 36. DB::Exception: It does not make sense to have codec NONE along with other compression codecs: LZ4, NONE. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39558) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a UInt8 CODEC(LZ4, NONE)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:192: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6a83 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:04.836148 [ 73699 ] {e09a5681-985a-4b63-839e-2e97da9af584} TCPHandler: Code: 36. DB::Exception: It does not make sense to have codec NONE along with other compression codecs: LZ4, NONE. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:192: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6a83 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:04.935803 [ 73699 ] {d6f191cd-04aa-48ec-9596-b942cbb06f5a} executeQuery: Code: 36. DB::Exception: The combination of compression codecs LZ4, LZ4 is meaningless, because it does not make sense to apply any transformations after generic compression algorithm. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39558) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a UInt8 CODEC(LZ4, LZ4)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:237: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a7069 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:04.936531 [ 73699 ] {d6f191cd-04aa-48ec-9596-b942cbb06f5a} TCPHandler: Code: 36. DB::Exception: The combination of compression codecs LZ4, LZ4 is meaningless, because it does not make sense to apply any transformations after generic compression algorithm. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:237: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a7069 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:04.944423 [ 73699 ] {0b5db870-0c02-439f-aa6d-303536ad73d2} executeQuery: Code: 36. DB::Exception: The combination of compression codecs LZ4, ZSTD(1) is meaningless, because it does not make sense to apply any transformations after generic compression algorithm. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39558) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a UInt8 CODEC(LZ4, ZSTD)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:237: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a7069 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:04.945164 [ 73699 ] {0b5db870-0c02-439f-aa6d-303536ad73d2} TCPHandler: Code: 36. DB::Exception: The combination of compression codecs LZ4, ZSTD(1) is meaningless, because it does not make sense to apply any transformations after generic compression algorithm. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:237: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a7069 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:05.044915 [ 73699 ] {da4bd54f-2a16-4ad2-94f1-232bee16381f} executeQuery: Code: 36. DB::Exception: Compression codec Delta(1) does not compress anything. You may want to add generic compression algorithm after other transformations, like: Delta(1), LZ4. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39558) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a UInt8 CODEC(Delta)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124eadac in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:201: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6ba6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:05.045911 [ 73699 ] {da4bd54f-2a16-4ad2-94f1-232bee16381f} TCPHandler: Code: 36. DB::Exception: Compression codec Delta(1) does not compress anything. You may want to add generic compression algorithm after other transformations, like: Delta(1), LZ4. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124eadac in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:201: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6ba6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:05.055290 [ 73699 ] {448a91e7-ca58-4c91-8046-40f4de3776ef} executeQuery: Code: 36. DB::Exception: Compression codec Delta(1), Delta(1) does not compress anything. You may want to add generic compression algorithm after other transformations, like: Delta(1), Delta(1), LZ4. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39558) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a UInt8 CODEC(Delta, Delta)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124eadac in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:201: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6ba6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:05.055903 [ 73699 ] {448a91e7-ca58-4c91-8046-40f4de3776ef} TCPHandler: Code: 36. DB::Exception: Compression codec Delta(1), Delta(1) does not compress anything. You may want to add generic compression algorithm after other transformations, like: Delta(1), Delta(1), LZ4. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&) @ 0x00000000124eadac in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:201: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6ba6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:05.064342 [ 73699 ] {ad465183-04b0-4407-ad21-0a80b5882411} executeQuery: Code: 36. DB::Exception: The combination of compression codecs LZ4, Delta(1) is meaningless, because it does not make sense to apply any transformations after generic compression algorithm. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39558) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a UInt8 CODEC(LZ4, Delta)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:237: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a7069 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:05.065109 [ 73699 ] {ad465183-04b0-4407-ad21-0a80b5882411} TCPHandler: Code: 36. DB::Exception: The combination of compression codecs LZ4, Delta(1) is meaningless, because it does not make sense to apply any transformations after generic compression algorithm. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:237: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a7069 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:05.161684 [ 73699 ] {df610aac-bc6a-4ddb-9cd0-eb60c352a2d7} executeQuery: Code: 36. DB::Exception: The combination of compression codecs Gorilla is meaningless, because it does not make sense to apply a floating-point time series codec to non-floating-point columns (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39558) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a UInt8 CODEC(Gorilla)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:219: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6e27 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:05.162558 [ 73699 ] {df610aac-bc6a-4ddb-9cd0-eb60c352a2d7} TCPHandler: Code: 36. DB::Exception: The combination of compression codecs Gorilla is meaningless, because it does not make sense to apply a floating-point time series codec to non-floating-point columns (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:219: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6e27 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:05.170103 [ 73699 ] {a7c67876-a256-4049-9cbb-2a854b85f8e5} executeQuery: Code: 36. DB::Exception: The combination of compression codecs Gorilla is meaningless, because it does not make sense to apply a floating-point time series codec to non-floating-point columns (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39558) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a FixedString(2) CODEC(Gorilla)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:219: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6e27 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:05.170717 [ 73699 ] {a7c67876-a256-4049-9cbb-2a854b85f8e5} TCPHandler: Code: 36. DB::Exception: The combination of compression codecs Gorilla is meaningless, because it does not make sense to apply a floating-point time series codec to non-floating-point columns (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:219: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6e27 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:05.177667 [ 73699 ] {ca6e45d5-74c1-4084-aafa-3c947823545e} executeQuery: Code: 36. DB::Exception: The combination of compression codecs Gorilla is meaningless, because it does not make sense to apply a floating-point time series codec to non-floating-point columns (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39558) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a Decimal(15,5) CODEC(Gorilla)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:219: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6e27 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:05.178503 [ 73699 ] {ca6e45d5-74c1-4084-aafa-3c947823545e} TCPHandler: Code: 36. DB::Exception: The combination of compression codecs Gorilla is meaningless, because it does not make sense to apply a floating-point time series codec to non-floating-point columns (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:219: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6e27 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:05.270410 [ 73699 ] {1358991f-bb52-4266-b97e-836fe1e6fc11} executeQuery: Code: 36. DB::Exception: The combination of compression codecs Delta(8), Gorilla is meaningless, because floating point time series codecs do delta compression implicitly by themselves. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39558) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a Float64 CODEC(Delta, Gorilla)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:228: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6f3f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:05.271125 [ 73699 ] {1358991f-bb52-4266-b97e-836fe1e6fc11} TCPHandler: Code: 36. DB::Exception: The combination of compression codecs Delta(8), Gorilla is meaningless, because floating point time series codecs do delta compression implicitly by themselves. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:228: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6f3f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:05.278841 [ 73699 ] {766261c6-7898-4174-a8dc-71696198e39b} executeQuery: Code: 36. DB::Exception: The combination of compression codecs DoubleDelta, FPC(12) is meaningless, because floating point time series codecs do delta compression implicitly by themselves. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39558) (comment: 01272_suspicious_codecs.sql) (in query: CREATE TABLE codecs (a Float32 CODEC(DoubleDelta, FPC)) ENGINE = MergeTree ORDER BY tuple();), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:228: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6f3f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:05.279407 [ 73699 ] {766261c6-7898-4174-a8dc-71696198e39b} TCPHandler: Code: 36. DB::Exception: The combination of compression codecs DoubleDelta, FPC(12) is meaningless, because floating point time series codecs do delta compression implicitly by themselves. (Note: you can enable setting 'allow_suspicious_codecs' to skip this check). (BAD_ARGUMENTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000b905413 in /usr/bin/clickhouse 6. /build/src/Compression/CompressionFactoryAdditions.cpp:228: DB::CompressionCodecFactory::validateCodecAndGetPreprocessedAST(std::shared_ptr const&, std::shared_ptr const&, bool, bool, bool) const @ 0x000000001c8a6f3f in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:634: DB::InterpreterCreateQuery::getColumnsDescription(DB::ASTExpressionList const&, std::shared_ptr, bool) @ 0x000000001c7dda88 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:691: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7de268 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:08.219578 [ 73699 ] {c3be9cc9-34f4-4c05-baf3-cac958bd4a82} executeQuery: Code: 487. DB::Exception: Dictionary `dict_db_01225.no_such_dict` doesn't exist. (CANNOT_GET_CREATE_DICTIONARY_QUERY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39574) (comment: 01225_show_create_table_from_dictionary.sql) (in query: SHOW CREATE TABLE dict_db_01225_dictionary.`dict_db_01225.no_such_dict`;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseDictionary.cpp:102: DB::DatabaseDictionary::getCreateTableQueryImpl(String const&, std::shared_ptr, bool) const @ 0x000000001c8550d6 in /usr/bin/clickhouse 7. /build/src/Databases/IDatabase.h:275: DB::IDatabase::getCreateTableQuery(String const&, std::shared_ptr) const @ 0x000000001b326fb7 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterShowCreateQuery.cpp:61: DB::InterpreterShowCreateQuery::executeImpl() @ 0x000000001cbc1cf6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterShowCreateQuery.cpp:29: DB::InterpreterShowCreateQuery::execute() @ 0x000000001cbc17eb in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:08.220337 [ 73699 ] {c3be9cc9-34f4-4c05-baf3-cac958bd4a82} TCPHandler: Code: 487. DB::Exception: Dictionary `dict_db_01225.no_such_dict` doesn't exist. (CANNOT_GET_CREATE_DICTIONARY_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseDictionary.cpp:102: DB::DatabaseDictionary::getCreateTableQueryImpl(String const&, std::shared_ptr, bool) const @ 0x000000001c8550d6 in /usr/bin/clickhouse 7. /build/src/Databases/IDatabase.h:275: DB::IDatabase::getCreateTableQuery(String const&, std::shared_ptr) const @ 0x000000001b326fb7 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterShowCreateQuery.cpp:61: DB::InterpreterShowCreateQuery::executeImpl() @ 0x000000001cbc1cf6 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterShowCreateQuery.cpp:29: DB::InterpreterShowCreateQuery::execute() @ 0x000000001cbc17eb in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:15.978655 [ 73699 ] {6f713c23-e778-4f8b-9be0-a3e832de7980} executeQuery: Code: 80. DB::Exception: Ordinary database engine does not support UUID. (INCORRECT_QUERY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:52008) (comment: 01192_rename_database_zookeeper.sh) (in query: CREATE DATABASE test_01192 UUID '00001192-0000-4000-8000-000000000001' ENGINE=Ordinary), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5ae41e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:223: DB::InterpreterCreateQuery::createDatabase(DB::ASTCreateQuery&) @ 0x000000001c7d95c6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1698: DB::InterpreterCreateQuery::execute() @ 0x000000001c7eda7f in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:15.980556 [ 73699 ] {6f713c23-e778-4f8b-9be0-a3e832de7980} TCPHandler: Code: 80. DB::Exception: Ordinary database engine does not support UUID. (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [47]) @ 0x000000000b5ae41e in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:223: DB::InterpreterCreateQuery::createDatabase(DB::ASTCreateQuery&) @ 0x000000001c7d95c6 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1698: DB::InterpreterCreateQuery::execute() @ 0x000000001c7eda7f in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:23.665722 [ 76519 ] {9e19be3b-1e1e-4110-bc89-82e414d33abf} executeQuery: Code: 82. DB::Exception: Database default already exists. (DATABASE_ALREADY_EXISTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32792) (comment: 01192_rename_database_zookeeper.sh) (in query: RENAME DATABASE test_01192 TO default), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/DatabaseCatalog.cpp:528: DB::DatabaseCatalog::assertDatabaseDoesntExistUnlocked(String const&) const @ 0x000000001bed700d in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:521: DB::DatabaseCatalog::assertDatabaseDoesntExist(String const&) const @ 0x000000001bed6e92 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterRenameQuery.cpp:177: DB::InterpreterRenameQuery::executeToDatabase(DB::ASTRenameQuery const&, std::vector> const&) @ 0x000000001ca8af86 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterRenameQuery.cpp:73: DB::InterpreterRenameQuery::execute() @ 0x000000001ca8a75b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:23.667318 [ 76519 ] {9e19be3b-1e1e-4110-bc89-82e414d33abf} TCPHandler: Code: 82. DB::Exception: Database default already exists. (DATABASE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/DatabaseCatalog.cpp:528: DB::DatabaseCatalog::assertDatabaseDoesntExistUnlocked(String const&) const @ 0x000000001bed700d in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:521: DB::DatabaseCatalog::assertDatabaseDoesntExist(String const&) const @ 0x000000001bed6e92 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterRenameQuery.cpp:177: DB::InterpreterRenameQuery::executeToDatabase(DB::ASTRenameQuery const&, std::vector> const&) @ 0x000000001ca8af86 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterRenameQuery.cpp:73: DB::InterpreterRenameQuery::execute() @ 0x000000001ca8a75b in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:25.150837 [ 76519 ] {709cd122-8aa0-4827-a963-bda35d3f5db1} executeQuery: Code: 81. DB::Exception: Database test_01192_notexisting does not exist. (UNKNOWN_DATABASE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32800) (comment: 01192_rename_database_zookeeper.sh) (in query: RENAME DATABASE test_01192_notexisting TO test_01192_renamed), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/DatabaseCatalog.cpp:650: DB::DatabaseCatalog::getDatabase(String const&) const @ 0x000000001bed8d84 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterRenameQuery.cpp:173: DB::InterpreterRenameQuery::executeToDatabase(DB::ASTRenameQuery const&, std::vector> const&) @ 0x000000001ca8af5b in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterRenameQuery.cpp:73: DB::InterpreterRenameQuery::execute() @ 0x000000001ca8a75b in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:25.152618 [ 76519 ] {709cd122-8aa0-4827-a963-bda35d3f5db1} TCPHandler: Code: 81. DB::Exception: Database test_01192_notexisting does not exist. (UNKNOWN_DATABASE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/DatabaseCatalog.cpp:650: DB::DatabaseCatalog::getDatabase(String const&) const @ 0x000000001bed8d84 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterRenameQuery.cpp:173: DB::InterpreterRenameQuery::executeToDatabase(DB::ASTRenameQuery const&, std::vector> const&) @ 0x000000001ca8af5b in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterRenameQuery.cpp:73: DB::InterpreterRenameQuery::execute() @ 0x000000001ca8a75b in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:21:57.310450 [ 73699 ] {91b7d3bf-2115-44ec-9f31-fd5728288b7f} executeQuery: Code: 60. DB::Exception: Table test_01192.rmt does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42778) (comment: 01192_rename_database_zookeeper.sh) (in query: SELECT count(n), sum(n) FROM test_01192_atomic.mv), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Storages/StorageMaterializedView.cpp:409: DB::StorageMaterializedView::getTargetTable() const @ 0x000000001d719d09 in /usr/bin/clickhouse 10. /build/src/Storages/StorageMaterializedView.cpp:420: DB::StorageMaterializedView::getVirtuals() const @ 0x000000001d71cb04 in /usr/bin/clickhouse 11. /build/src/Storages/StorageSnapshot.cpp:22: DB::StorageSnapshot::init() @ 0x000000001d994bc7 in /usr/bin/clickhouse 12. /build/src/Storages/StorageSnapshot.h:36: DB::StorageSnapshot::StorageSnapshot(DB::IStorage const&, std::shared_ptr) @ 0x000000001a9a9a1e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageSnapshot* std::construct_at[abi:v15000] const&, DB::StorageSnapshot*>(DB::StorageSnapshot*, DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9a9967 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, void, void>(std::allocator&, DB::StorageSnapshot*, DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9a9709 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&>(std::allocator, DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9a940f in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::IStorage const&, std::shared_ptr const&, void>(std::allocator const&, DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9a9282 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, void>(DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9a920e in /usr/bin/clickhouse 18. /build/src/Storages/IStorage.h:662: DB::IStorage::getStorageSnapshot(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001a9a88c5 in /usr/bin/clickhouse 19. /build/src/Storages/IStorage.h:668: DB::IStorage::getStorageSnapshotForQuery(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr) const @ 0x000000001a9a8978 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:445: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b83a in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 14:21:57.312423 [ 73699 ] {91b7d3bf-2115-44ec-9f31-fd5728288b7f} TCPHandler: Code: 60. DB::Exception: Table test_01192.rmt does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Storages/StorageMaterializedView.cpp:409: DB::StorageMaterializedView::getTargetTable() const @ 0x000000001d719d09 in /usr/bin/clickhouse 10. /build/src/Storages/StorageMaterializedView.cpp:420: DB::StorageMaterializedView::getVirtuals() const @ 0x000000001d71cb04 in /usr/bin/clickhouse 11. /build/src/Storages/StorageSnapshot.cpp:22: DB::StorageSnapshot::init() @ 0x000000001d994bc7 in /usr/bin/clickhouse 12. /build/src/Storages/StorageSnapshot.h:36: DB::StorageSnapshot::StorageSnapshot(DB::IStorage const&, std::shared_ptr) @ 0x000000001a9a9a1e in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::StorageSnapshot* std::construct_at[abi:v15000] const&, DB::StorageSnapshot*>(DB::StorageSnapshot*, DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9a9967 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000] const&, void, void>(std::allocator&, DB::StorageSnapshot*, DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9a9709 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000] const&>(std::allocator, DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9a940f in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::IStorage const&, std::shared_ptr const&, void>(std::allocator const&, DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9a9282 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000] const&, void>(DB::IStorage const&, std::shared_ptr const&) @ 0x000000001a9a920e in /usr/bin/clickhouse 18. /build/src/Storages/IStorage.h:662: DB::IStorage::getStorageSnapshot(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001a9a88c5 in /usr/bin/clickhouse 19. /build/src/Storages/IStorage.h:668: DB::IStorage::getStorageSnapshotForQuery(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr) const @ 0x000000001a9a8978 in /usr/bin/clickhouse 20. /build/src/Interpreters/InterpreterSelectQuery.cpp:445: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b83a in /usr/bin/clickhouse 21. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 23. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 24. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 26. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 27. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 28. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 29. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 30. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 31. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 2024.05.01 14:22:06.361430 [ 76519 ] {8184fcd5-6d62-4a18-a8ef-b0dec0ceabf5} executeQuery: Code: 48. DB::Exception: Ordinary: RENAME DATABASE is not supported. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:42638) (comment: 01192_rename_database_zookeeper.sh) (in query: RENAME DATABASE test_01192 TO test_01192_renamed), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.h:303: DB::IDatabase::renameDatabase(std::shared_ptr, String const&) @ 0x000000001bab10f7 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterRenameQuery.cpp:178: DB::InterpreterRenameQuery::executeToDatabase(DB::ASTRenameQuery const&, std::vector> const&) @ 0x000000001ca8aff0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterRenameQuery.cpp:73: DB::InterpreterRenameQuery::execute() @ 0x000000001ca8a75b in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:22:06.363069 [ 76519 ] {8184fcd5-6d62-4a18-a8ef-b0dec0ceabf5} TCPHandler: Code: 48. DB::Exception: Ordinary: RENAME DATABASE is not supported. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.h:303: DB::IDatabase::renameDatabase(std::shared_ptr, String const&) @ 0x000000001bab10f7 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterRenameQuery.cpp:178: DB::InterpreterRenameQuery::executeToDatabase(DB::ASTRenameQuery const&, std::vector> const&) @ 0x000000001ca8aff0 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterRenameQuery.cpp:73: DB::InterpreterRenameQuery::execute() @ 0x000000001ca8a75b in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:22:31.277705 [ 73699 ] {da0cd4e9-be07-4641-9add-3e9cdf5b3f06} executeQuery: Code: 48. DB::Exception: ATTACH ... FROM ... query is not supported for Memory table engine, because such tables do not store any data on disk. Use CREATE instead. (NOT_IMPLEMENTED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53360) (comment: 01188_attach_table_from_path.sql) (in query: attach table test from 'some/path' (n UInt8) engine=Memory;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1438: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb696 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:22:31.278409 [ 73699 ] {da0cd4e9-be07-4641-9add-3e9cdf5b3f06} TCPHandler: Code: 48. DB::Exception: ATTACH ... FROM ... query is not supported for Memory table engine, because such tables do not store any data on disk. Use CREATE instead. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1438: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb696 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:22:31.358691 [ 73699 ] {4c0fab5f-a4fd-4c59-abb5-3ad8deac9a10} executeQuery: Code: 481. DB::Exception: Data directory /etc/passwd must be inside /var/lib/clickhouse/user_files/ to attach it. (PATH_ACCESS_DENIED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53360) (comment: 01188_attach_table_from_path.sql) (in query: attach table test from '/etc/passwd' (s String) engine=File(TSVRaw);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1123: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e3bee in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:22:31.359420 [ 73699 ] {4c0fab5f-a4fd-4c59-abb5-3ad8deac9a10} TCPHandler: Code: 481. DB::Exception: Data directory /etc/passwd must be inside /var/lib/clickhouse/user_files/ to attach it. (PATH_ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1123: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e3bee in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:22:31.366406 [ 73699 ] {5bd725ed-0351-4698-a4fa-245f360f3998} executeQuery: Code: 481. DB::Exception: Data directory /etc/passwd must be inside /var/lib/clickhouse/user_files/ to attach it. (PATH_ACCESS_DENIED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:53360) (comment: 01188_attach_table_from_path.sql) (in query: attach table test from '../../../../../../../../../etc/passwd' (s String) engine=File(TSVRaw);), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1123: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e3bee in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:22:31.366988 [ 73699 ] {5bd725ed-0351-4698-a4fa-245f360f3998} TCPHandler: Code: 481. DB::Exception: Data directory /etc/passwd must be inside /var/lib/clickhouse/user_files/ to attach it. (PATH_ACCESS_DENIED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1123: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e3bee in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:22:43.812022 [ 73699 ] {27a465c6-a806-46d0-925d-f2c723af19d7} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47332) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:22:43.812983 [ 73699 ] {27a465c6-a806-46d0-925d-f2c723af19d7} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:23:50.500941 [ 73699 ] {6fe13e49-c697-45cc-9159-dbb8ce27bdd5} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack string into column with type UInt64.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38662) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x UInt64')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:264: DB::insertString(DB::IColumn&, std::shared_ptr, char const*, unsigned long, bool) @ 0x000000001e86a32d in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:367: DB::MsgPackVisitor::visit_bin(char const*, unsigned long) @ 0x000000001e86a460 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:591: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e885a88 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 14:23:50.506845 [ 73699 ] {6fe13e49-c697-45cc-9159-dbb8ce27bdd5} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack string into column with type UInt64.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:264: DB::insertString(DB::IColumn&, std::shared_ptr, char const*, unsigned long, bool) @ 0x000000001e86a32d in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:367: DB::MsgPackVisitor::visit_bin(char const*, unsigned long) @ 0x000000001e86a460 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:591: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e885a88 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 14:23:52.283025 [ 73699 ] {27df2030-9146-40dd-980b-1235705fd719} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack string into column with type Float32.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38670) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Float32')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:264: DB::insertString(DB::IColumn&, std::shared_ptr, char const*, unsigned long, bool) @ 0x000000001e86a32d in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:367: DB::MsgPackVisitor::visit_bin(char const*, unsigned long) @ 0x000000001e86a460 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:591: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e885a88 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 14:23:52.289304 [ 73699 ] {27df2030-9146-40dd-980b-1235705fd719} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack string into column with type Float32.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:264: DB::insertString(DB::IColumn&, std::shared_ptr, char const*, unsigned long, bool) @ 0x000000001e86a32d in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:367: DB::MsgPackVisitor::visit_bin(char const*, unsigned long) @ 0x000000001e86a460 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:591: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e885a88 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 14:23:54.041740 [ 73699 ] {061fefa7-3bdd-4e1c-bf89-ca2ec4da78ff} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack string into column with type Array(UInt32).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38678) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Array(UInt32)')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:264: DB::insertString(DB::IColumn&, std::shared_ptr, char const*, unsigned long, bool) @ 0x000000001e86a32d in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:367: DB::MsgPackVisitor::visit_bin(char const*, unsigned long) @ 0x000000001e86a460 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:591: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e885a88 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 14:23:54.048591 [ 73699 ] {061fefa7-3bdd-4e1c-bf89-ca2ec4da78ff} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack string into column with type Array(UInt32).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:264: DB::insertString(DB::IColumn&, std::shared_ptr, char const*, unsigned long, bool) @ 0x000000001e86a32d in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:367: DB::MsgPackVisitor::visit_bin(char const*, unsigned long) @ 0x000000001e86a460 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:591: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e885a88 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 14:23:55.882860 [ 73699 ] {37ff049d-8b9e-40a2-b4f9-bd6a7ec030ea} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack string into column with type Map(UInt64, UInt64).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38684) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Map(UInt64, UInt64)')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:264: DB::insertString(DB::IColumn&, std::shared_ptr, char const*, unsigned long, bool) @ 0x000000001e86a32d in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:367: DB::MsgPackVisitor::visit_bin(char const*, unsigned long) @ 0x000000001e86a460 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:591: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e885a88 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 14:23:55.891078 [ 73699 ] {37ff049d-8b9e-40a2-b4f9-bd6a7ec030ea} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack string into column with type Map(UInt64, UInt64).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:264: DB::insertString(DB::IColumn&, std::shared_ptr, char const*, unsigned long, bool) @ 0x000000001e86a32d in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:367: DB::MsgPackVisitor::visit_bin(char const*, unsigned long) @ 0x000000001e86a460 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:591: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e885a88 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 14:23:59.584857 [ 73699 ] {5b94da3a-3f65-4400-820d-e6a31e33513f} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack integer into column with type Float32.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51036) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Float32')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:197: DB::insertInteger(DB::IColumn&, std::shared_ptr, unsigned long) @ 0x000000001e869bcc in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:349: DB::MsgPackVisitor::visit_positive_integer(unsigned long) @ 0x000000001e8696d2 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:264: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e884608 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 14:23:59.592129 [ 73699 ] {5b94da3a-3f65-4400-820d-e6a31e33513f} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack integer into column with type Float32.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:197: DB::insertInteger(DB::IColumn&, std::shared_ptr, unsigned long) @ 0x000000001e869bcc in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:349: DB::MsgPackVisitor::visit_positive_integer(unsigned long) @ 0x000000001e8696d2 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:264: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e884608 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 14:24:01.370936 [ 73699 ] {5905af0b-4b5e-4299-9fb3-85ba9a8ea288} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack integer into column with type String.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51048) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x String')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:197: DB::insertInteger(DB::IColumn&, std::shared_ptr, unsigned long) @ 0x000000001e869bcc in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:349: DB::MsgPackVisitor::visit_positive_integer(unsigned long) @ 0x000000001e8696d2 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:264: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e884608 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 14:24:01.376682 [ 73699 ] {5905af0b-4b5e-4299-9fb3-85ba9a8ea288} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack integer into column with type String.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:197: DB::insertInteger(DB::IColumn&, std::shared_ptr, unsigned long) @ 0x000000001e869bcc in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:349: DB::MsgPackVisitor::visit_positive_integer(unsigned long) @ 0x000000001e8696d2 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:264: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e884608 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 14:24:03.135176 [ 73699 ] {dd5791b0-caac-4f3d-99f0-df2103998c8c} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack integer into column with type Array(UInt64).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51064) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Array(UInt64)')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:197: DB::insertInteger(DB::IColumn&, std::shared_ptr, unsigned long) @ 0x000000001e869bcc in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:349: DB::MsgPackVisitor::visit_positive_integer(unsigned long) @ 0x000000001e8696d2 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:264: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e884608 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 14:24:03.141878 [ 73699 ] {dd5791b0-caac-4f3d-99f0-df2103998c8c} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack integer into column with type Array(UInt64).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:197: DB::insertInteger(DB::IColumn&, std::shared_ptr, unsigned long) @ 0x000000001e869bcc in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:349: DB::MsgPackVisitor::visit_positive_integer(unsigned long) @ 0x000000001e8696d2 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:264: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e884608 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 14:24:04.893129 [ 73699 ] {399ff9f8-f8b9-41cf-8923-543dbbbc7955} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack integer into column with type Map(UInt64, UInt64).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51078) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Map(UInt64, UInt64)')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:197: DB::insertInteger(DB::IColumn&, std::shared_ptr, unsigned long) @ 0x000000001e869bcc in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:349: DB::MsgPackVisitor::visit_positive_integer(unsigned long) @ 0x000000001e8696d2 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:264: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e884608 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 14:24:04.899259 [ 73699 ] {399ff9f8-f8b9-41cf-8923-543dbbbc7955} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack integer into column with type Map(UInt64, UInt64).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:197: DB::insertInteger(DB::IColumn&, std::shared_ptr, unsigned long) @ 0x000000001e869bcc in /usr/bin/clickhouse 7. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:349: DB::MsgPackVisitor::visit_positive_integer(unsigned long) @ 0x000000001e8696d2 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:264: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e884608 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 10. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 13. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 15. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 20. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 21. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 23. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 2024.05.01 14:24:08.697967 [ 73699 ] {f3a97735-1097-4621-8577-391af8cfec02} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack array into column with type Float32: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59674) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Float32')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:414: DB::MsgPackVisitor::start_array(unsigned long) @ 0x000000001e86b10b in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:113: msgpack::v3::detail::context>::array_sv::operator()(unsigned int) const @ 0x000000001e887028 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::array_sv, msgpack::v3::detail::context>::array_ev>(msgpack::v3::detail::context>::array_sv const&, msgpack::v3::detail::context>::array_ev const&, char const*, unsigned long&) @ 0x000000001e886061 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:318: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e88487e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 14:24:08.703978 [ 73699 ] {f3a97735-1097-4621-8577-391af8cfec02} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack array into column with type Float32: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:414: DB::MsgPackVisitor::start_array(unsigned long) @ 0x000000001e86b10b in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:113: msgpack::v3::detail::context>::array_sv::operator()(unsigned int) const @ 0x000000001e887028 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::array_sv, msgpack::v3::detail::context>::array_ev>(msgpack::v3::detail::context>::array_sv const&, msgpack::v3::detail::context>::array_ev const&, char const*, unsigned long&) @ 0x000000001e886061 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:318: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e88487e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 14:24:10.518028 [ 73699 ] {ce68dc7b-9fb9-4d5e-b2d7-256ef0977c1f} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack array into column with type String: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59676) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x String')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:414: DB::MsgPackVisitor::start_array(unsigned long) @ 0x000000001e86b10b in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:113: msgpack::v3::detail::context>::array_sv::operator()(unsigned int) const @ 0x000000001e887028 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::array_sv, msgpack::v3::detail::context>::array_ev>(msgpack::v3::detail::context>::array_sv const&, msgpack::v3::detail::context>::array_ev const&, char const*, unsigned long&) @ 0x000000001e886061 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:318: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e88487e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 14:24:10.523959 [ 73699 ] {ce68dc7b-9fb9-4d5e-b2d7-256ef0977c1f} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack array into column with type String: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:414: DB::MsgPackVisitor::start_array(unsigned long) @ 0x000000001e86b10b in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:113: msgpack::v3::detail::context>::array_sv::operator()(unsigned int) const @ 0x000000001e887028 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::array_sv, msgpack::v3::detail::context>::array_ev>(msgpack::v3::detail::context>::array_sv const&, msgpack::v3::detail::context>::array_ev const&, char const*, unsigned long&) @ 0x000000001e886061 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:318: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e88487e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 14:24:12.301856 [ 73699 ] {c87143f0-9c95-4f91-b31a-97ad6ed51fc7} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack array into column with type UInt64: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59686) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x UInt64')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:414: DB::MsgPackVisitor::start_array(unsigned long) @ 0x000000001e86b10b in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:113: msgpack::v3::detail::context>::array_sv::operator()(unsigned int) const @ 0x000000001e887028 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::array_sv, msgpack::v3::detail::context>::array_ev>(msgpack::v3::detail::context>::array_sv const&, msgpack::v3::detail::context>::array_ev const&, char const*, unsigned long&) @ 0x000000001e886061 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:318: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e88487e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 14:24:12.311728 [ 73699 ] {c87143f0-9c95-4f91-b31a-97ad6ed51fc7} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack array into column with type UInt64: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:414: DB::MsgPackVisitor::start_array(unsigned long) @ 0x000000001e86b10b in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:113: msgpack::v3::detail::context>::array_sv::operator()(unsigned int) const @ 0x000000001e887028 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::array_sv, msgpack::v3::detail::context>::array_ev>(msgpack::v3::detail::context>::array_sv const&, msgpack::v3::detail::context>::array_ev const&, char const*, unsigned long&) @ 0x000000001e886061 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:318: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e88487e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 14:24:14.064721 [ 73699 ] {497138e5-4a43-4d37-a4de-7a6384288d3f} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack array into column with type Map(UInt64, UInt64): While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59700) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Map(UInt64, UInt64)')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:414: DB::MsgPackVisitor::start_array(unsigned long) @ 0x000000001e86b10b in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:113: msgpack::v3::detail::context>::array_sv::operator()(unsigned int) const @ 0x000000001e887028 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::array_sv, msgpack::v3::detail::context>::array_ev>(msgpack::v3::detail::context>::array_sv const&, msgpack::v3::detail::context>::array_ev const&, char const*, unsigned long&) @ 0x000000001e886061 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:318: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e88487e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 14:24:14.071632 [ 73699 ] {497138e5-4a43-4d37-a4de-7a6384288d3f} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack array into column with type Map(UInt64, UInt64): While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:414: DB::MsgPackVisitor::start_array(unsigned long) @ 0x000000001e86b10b in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:113: msgpack::v3::detail::context>::array_sv::operator()(unsigned int) const @ 0x000000001e887028 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::array_sv, msgpack::v3::detail::context>::array_ev>(msgpack::v3::detail::context>::array_sv const&, msgpack::v3::detail::context>::array_ev const&, char const*, unsigned long&) @ 0x000000001e886061 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:318: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e88487e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 14:24:17.740958 [ 73699 ] {ed9244e8-479c-4580-9a94-fff072fcd70c} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack map into column with type Float32.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:59712) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Float32')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:439: DB::MsgPackVisitor::start_map(unsigned int) @ 0x000000001e86b374 in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:130: msgpack::v3::detail::context>::map_sv::operator()(unsigned int) const @ 0x000000001e8875a6 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::map_sv, msgpack::v3::detail::context>::map_ev>(msgpack::v3::detail::context>::map_sv const&, msgpack::v3::detail::context>::map_ev const&, char const*, unsigned long&) @ 0x000000001e886281 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:321: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e88491e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 14:24:17.747023 [ 73699 ] {ed9244e8-479c-4580-9a94-fff072fcd70c} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack map into column with type Float32.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:439: DB::MsgPackVisitor::start_map(unsigned int) @ 0x000000001e86b374 in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:130: msgpack::v3::detail::context>::map_sv::operator()(unsigned int) const @ 0x000000001e8875a6 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::map_sv, msgpack::v3::detail::context>::map_ev>(msgpack::v3::detail::context>::map_sv const&, msgpack::v3::detail::context>::map_ev const&, char const*, unsigned long&) @ 0x000000001e886281 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:321: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e88491e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 14:24:19.473320 [ 73699 ] {56590407-97aa-4754-bcbd-36c6f770a4be} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack map into column with type String.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47140) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x String')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:439: DB::MsgPackVisitor::start_map(unsigned int) @ 0x000000001e86b374 in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:130: msgpack::v3::detail::context>::map_sv::operator()(unsigned int) const @ 0x000000001e8875a6 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::map_sv, msgpack::v3::detail::context>::map_ev>(msgpack::v3::detail::context>::map_sv const&, msgpack::v3::detail::context>::map_ev const&, char const*, unsigned long&) @ 0x000000001e886281 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:321: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e88491e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 14:24:19.480717 [ 73699 ] {56590407-97aa-4754-bcbd-36c6f770a4be} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack map into column with type String.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:439: DB::MsgPackVisitor::start_map(unsigned int) @ 0x000000001e86b374 in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:130: msgpack::v3::detail::context>::map_sv::operator()(unsigned int) const @ 0x000000001e8875a6 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::map_sv, msgpack::v3::detail::context>::map_ev>(msgpack::v3::detail::context>::map_sv const&, msgpack::v3::detail::context>::map_ev const&, char const*, unsigned long&) @ 0x000000001e886281 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:321: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e88491e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 14:24:21.213321 [ 73699 ] {19f3da57-d634-4197-a002-952bd7181a3e} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack map into column with type UInt64.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47152) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x UInt64')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:439: DB::MsgPackVisitor::start_map(unsigned int) @ 0x000000001e86b374 in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:130: msgpack::v3::detail::context>::map_sv::operator()(unsigned int) const @ 0x000000001e8875a6 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::map_sv, msgpack::v3::detail::context>::map_ev>(msgpack::v3::detail::context>::map_sv const&, msgpack::v3::detail::context>::map_ev const&, char const*, unsigned long&) @ 0x000000001e886281 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:321: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e88491e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 14:24:21.219737 [ 73699 ] {19f3da57-d634-4197-a002-952bd7181a3e} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack map into column with type UInt64.: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:439: DB::MsgPackVisitor::start_map(unsigned int) @ 0x000000001e86b374 in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:130: msgpack::v3::detail::context>::map_sv::operator()(unsigned int) const @ 0x000000001e8875a6 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::map_sv, msgpack::v3::detail::context>::map_ev>(msgpack::v3::detail::context>::map_sv const&, msgpack::v3::detail::context>::map_ev const&, char const*, unsigned long&) @ 0x000000001e886281 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:321: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e88491e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 14:24:22.952284 [ 73699 ] {43d7c368-9a42-4efc-bc6a-88ee50652421} executeQuery: Code: 44. DB::Exception: Cannot insert MessagePack map into column with type Array(UInt64).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47164) (comment: 01098_msgpack_format.sh) (in query: SELECT * FROM file('data.msgpack', 'MsgPack', 'x Array(UInt64)')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:439: DB::MsgPackVisitor::start_map(unsigned int) @ 0x000000001e86b374 in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:130: msgpack::v3::detail::context>::map_sv::operator()(unsigned int) const @ 0x000000001e8875a6 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::map_sv, msgpack::v3::detail::context>::map_ev>(msgpack::v3::detail::context>::map_sv const&, msgpack::v3::detail::context>::map_ev const&, char const*, unsigned long&) @ 0x000000001e886281 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:321: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e88491e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 14:24:22.958107 [ 73699 ] {43d7c368-9a42-4efc-bc6a-88ee50652421} TCPHandler: Code: 44. DB::Exception: Cannot insert MessagePack map into column with type Array(UInt64).: While executing MagPackRowInputFormat: While executing File. (ILLEGAL_COLUMN), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:439: DB::MsgPackVisitor::start_map(unsigned int) @ 0x000000001e86b374 in /usr/bin/clickhouse 7. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:130: msgpack::v3::detail::context>::map_sv::operator()(unsigned int) const @ 0x000000001e8875a6 in /usr/bin/clickhouse 8. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:81: msgpack::v2::parse_return msgpack::v3::detail::context>::start_aggregate>::map_sv, msgpack::v3::detail::context>::map_ev>(msgpack::v3::detail::context>::map_sv const&, msgpack::v3::detail::context>::map_ev const&, char const*, unsigned long&) @ 0x000000001e886281 in /usr/bin/clickhouse 9. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:321: msgpack::v3::detail::context>::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e88491e in /usr/bin/clickhouse 10. /build/contrib/msgpack-c/include/msgpack/v3/parse.hpp:633: msgpack::v3::detail::parse_helper::execute(char const*, unsigned long, unsigned long&) @ 0x000000001e8844cd in /usr/bin/clickhouse 11. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:505: bool DB::MsgPackRowInputFormat::readObject>(msgpack::v3::detail::parse_helper&) @ 0x000000001e870e11 in /usr/bin/clickhouse 12. /build/src/Processors/Formats/Impl/MsgPackRowInputFormat.cpp:544: DB::MsgPackRowInputFormat::readRow(std::vector::mutable_ptr, std::allocator::mutable_ptr>>&, DB::RowReadExtension&) @ 0x000000001e86c3f0 in /usr/bin/clickhouse 13. /build/src/Processors/Formats/IRowInputFormat.cpp:138: DB::IRowInputFormat::generate() @ 0x000000001e73f139 in /usr/bin/clickhouse 14. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 15. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 16. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 18. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 19. /build/src/Processors/Executors/PipelineExecutor.cpp:147: DB::PipelineExecutor::executeStep(std::atomic*) @ 0x000000001e667e79 in /usr/bin/clickhouse 20. /build/src/Processors/Executors/PullingPipelineExecutor.cpp:54: DB::PullingPipelineExecutor::pull(DB::Chunk&) @ 0x000000001e68d77e in /usr/bin/clickhouse 21. /build/src/Storages/StorageFile.cpp:1308: DB::StorageFileSource::generate() @ 0x000000001d6a083a in /usr/bin/clickhouse 22. /build/src/Processors/ISource.cpp:125: DB::ISource::tryGenerate() @ 0x000000001e64b7b0 in /usr/bin/clickhouse 23. /build/src/Processors/ISource.cpp:94: DB::ISource::work() @ 0x000000001e64b4ab in /usr/bin/clickhouse 24. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 25. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 26. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 27. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 28. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 2024.05.01 14:24:24.907112 [ 73699 ] {8eb03201-0ee1-450a-ae4f-7645ea1c2695} executeQuery: Code: 47. DB::Exception: Missing columns: 'nonexistentsomething' while processing query: 'SELECT nonexistentsomething', required columns: 'nonexistentsomething'. (UNKNOWN_IDENTIFIER) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47176) (comment: 01083_expressions_in_engine_arguments.sql) (in query: -- The following line is needed just to disable checking stderr for emptiness SELECT nonexistentsomething;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:24:24.907808 [ 73699 ] {8eb03201-0ee1-450a-ae4f-7645ea1c2695} TCPHandler: Code: 47. DB::Exception: Missing columns: 'nonexistentsomething' while processing query: 'SELECT nonexistentsomething', required columns: 'nonexistentsomething'. (UNKNOWN_IDENTIFIER), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:49: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000b210929 in /usr/bin/clickhouse 6. /build/src/Interpreters/TreeRewriter.cpp:1138: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001cf8c559 in /usr/bin/clickhouse 7. /build/src/Interpreters/TreeRewriter.cpp:1258: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001cf8da50 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:608: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr)::$_0::operator()(bool) const @ 0x000000001caa1a0f in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:772: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9eac2 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 15. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 16. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 18. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 20. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 22. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 25. ? @ 0x00007fcde32fbac3 in ? 26. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:24:24.935019 [ 73699 ] {0eee9033-acb4-44ed-8092-30b8927710ef} DNSResolver: Cannot resolve host (localhosx), error 0: Host not found. 2024.05.01 14:24:25.062842 [ 73699 ] {0eee9033-acb4-44ed-8092-30b8927710ef} Cluster: Code: 198. DB::Exception: Not found address of host: localhosx. (DNS_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Common/DNSResolver.cpp:114: DB::(anonymous namespace)::hostByName(String const&) @ 0x0000000013878fe8 in /usr/bin/clickhouse 7. /build/src/Common/DNSResolver.cpp:139: DB::(anonymous namespace)::resolveIPAddressImpl(String const&) @ 0x0000000013877ac8 in /usr/bin/clickhouse 8. /build/src/Common/DNSResolver.cpp:146: DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0::operator()() const @ 0x000000001387b040 in /usr/bin/clickhouse 9. /build/src/Common/CacheBase.h:152: std::pair>>, bool> DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>::getOrSet>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0>(String const&, DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0&&) @ 0x000000001387adaf in /usr/bin/clickhouse 10. /build/src/Common/DNSResolver.cpp:146: DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&) @ 0x0000000013877c3c in /usr/bin/clickhouse 11. /build/src/Common/DNSResolver.cpp:239: DB::DNSResolver::resolveAddress(String const&, unsigned short) @ 0x00000000138782cf in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:73: DB::Cluster::Address::getResolvedAddress() const @ 0x000000001bd9b1c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/Cluster.cpp:86: DB::Cluster::Address::isLocal(unsigned short) const @ 0x000000001bd9b2e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/Cluster.cpp:165: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9c1ba in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 19. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 25. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 26. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:769: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7df58f in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:24:25.065312 [ 73699 ] {0eee9033-acb4-44ed-8092-30b8927710ef} DNSResolver: Cannot resolve host (localhosy), error 0: Host not found. 2024.05.01 14:24:25.065941 [ 73699 ] {0eee9033-acb4-44ed-8092-30b8927710ef} Cluster: Code: 198. DB::Exception: Not found address of host: localhosy. (DNS_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Common/DNSResolver.cpp:114: DB::(anonymous namespace)::hostByName(String const&) @ 0x0000000013878fe8 in /usr/bin/clickhouse 7. /build/src/Common/DNSResolver.cpp:139: DB::(anonymous namespace)::resolveIPAddressImpl(String const&) @ 0x0000000013877ac8 in /usr/bin/clickhouse 8. /build/src/Common/DNSResolver.cpp:146: DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0::operator()() const @ 0x000000001387b040 in /usr/bin/clickhouse 9. /build/src/Common/CacheBase.h:152: std::pair>>, bool> DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>::getOrSet>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0>(String const&, DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0&&) @ 0x000000001387adaf in /usr/bin/clickhouse 10. /build/src/Common/DNSResolver.cpp:146: DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&) @ 0x0000000013877c3c in /usr/bin/clickhouse 11. /build/src/Common/DNSResolver.cpp:239: DB::DNSResolver::resolveAddress(String const&, unsigned short) @ 0x00000000138782cf in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:73: DB::Cluster::Address::getResolvedAddress() const @ 0x000000001bd9b1c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/Cluster.cpp:86: DB::Cluster::Address::isLocal(unsigned short) const @ 0x000000001bd9b2e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/Cluster.cpp:165: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9c1ba in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 19. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 25. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 26. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:769: DB::InterpreterCreateQuery::getTablePropertiesAndNormalizeCreateQuery(DB::ASTCreateQuery&) const @ 0x000000001c7df58f in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterCreateQuery.cpp:1171: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e4f24 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:24:25.321486 [ 73699 ] {0eee9033-acb4-44ed-8092-30b8927710ef} DNSResolver: Cannot resolve host (localhosx), error 0: Host not found. 2024.05.01 14:24:25.426066 [ 73699 ] {0eee9033-acb4-44ed-8092-30b8927710ef} Cluster: Code: 198. DB::Exception: Not found address of host: localhosx. (DNS_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Common/DNSResolver.cpp:114: DB::(anonymous namespace)::hostByName(String const&) @ 0x0000000013878fe8 in /usr/bin/clickhouse 7. /build/src/Common/DNSResolver.cpp:139: DB::(anonymous namespace)::resolveIPAddressImpl(String const&) @ 0x0000000013877ac8 in /usr/bin/clickhouse 8. /build/src/Common/DNSResolver.cpp:146: DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0::operator()() const @ 0x000000001387b040 in /usr/bin/clickhouse 9. /build/src/Common/CacheBase.h:152: std::pair>>, bool> DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>::getOrSet>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0>(String const&, DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0&&) @ 0x000000001387adaf in /usr/bin/clickhouse 10. /build/src/Common/DNSResolver.cpp:146: DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&) @ 0x0000000013877c3c in /usr/bin/clickhouse 11. /build/src/Common/DNSResolver.cpp:239: DB::DNSResolver::resolveAddress(String const&, unsigned short) @ 0x00000000138782cf in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:73: DB::Cluster::Address::getResolvedAddress() const @ 0x000000001bd9b1c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/Cluster.cpp:86: DB::Cluster::Address::isLocal(unsigned short) const @ 0x000000001bd9b2e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/Cluster.cpp:165: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9c1ba in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 19. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 25. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 26. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:1407: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eac8c in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:24:25.428365 [ 73699 ] {0eee9033-acb4-44ed-8092-30b8927710ef} DNSResolver: Cannot resolve host (localhosy), error 0: Host not found. 2024.05.01 14:24:25.428940 [ 73699 ] {0eee9033-acb4-44ed-8092-30b8927710ef} Cluster: Code: 198. DB::Exception: Not found address of host: localhosy. (DNS_ERROR), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Common/DNSResolver.cpp:114: DB::(anonymous namespace)::hostByName(String const&) @ 0x0000000013878fe8 in /usr/bin/clickhouse 7. /build/src/Common/DNSResolver.cpp:139: DB::(anonymous namespace)::resolveIPAddressImpl(String const&) @ 0x0000000013877ac8 in /usr/bin/clickhouse 8. /build/src/Common/DNSResolver.cpp:146: DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0::operator()() const @ 0x000000001387b040 in /usr/bin/clickhouse 9. /build/src/Common/CacheBase.h:152: std::pair>>, bool> DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>::getOrSet>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0>(String const&, DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&)::$_0&&) @ 0x000000001387adaf in /usr/bin/clickhouse 10. /build/src/Common/DNSResolver.cpp:146: DB::(anonymous namespace)::resolveIPAddressWithCache(DB::CacheBase>, std::hash, DB::EqualWeightFunction>>>&, String const&) @ 0x0000000013877c3c in /usr/bin/clickhouse 11. /build/src/Common/DNSResolver.cpp:239: DB::DNSResolver::resolveAddress(String const&, unsigned short) @ 0x00000000138782cf in /usr/bin/clickhouse 12. /build/src/Interpreters/Cluster.cpp:73: DB::Cluster::Address::getResolvedAddress() const @ 0x000000001bd9b1c6 in /usr/bin/clickhouse 13. /build/src/Interpreters/Cluster.cpp:86: DB::Cluster::Address::isLocal(unsigned short) const @ 0x000000001bd9b2e4 in /usr/bin/clickhouse 14. /build/src/Interpreters/Cluster.cpp:165: DB::Cluster::Address::Address(DB::DatabaseReplicaInfo const&, DB::ClusterConnectionParameters const&, unsigned int, unsigned int) @ 0x000000001bd9c1ba in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster::Address* std::construct_at[abi:v15000](DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab981 in /usr/bin/clickhouse 16. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000](std::allocator&, DB::Cluster::Address*, DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab8f9 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/vector:1579: void std::vector>::__emplace_back_slow_path(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bdab856 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/vector:0: DB::Cluster::Address& std::vector>::emplace_back(DB::DatabaseReplicaInfo&&, DB::ClusterConnectionParameters const&, unsigned int&, unsigned long&&) @ 0x000000001bda4960 in /usr/bin/clickhouse 19. /build/src/Interpreters/Cluster.cpp:520: DB::Cluster::Cluster(DB::Settings const&, std::vector>, std::allocator>>> const&, DB::ClusterConnectionParameters const&) @ 0x000000001bda091d in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::Cluster* std::construct_at[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, DB::Cluster*>(DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b3d4 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void, void>(std::allocator&, DB::Cluster*, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b351 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&>(std::allocator, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b2d7 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(std::allocator const&, DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a94b1ea in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000]>, std::allocator>>>&, DB::ClusterConnectionParameters&, void>(DB::Settings const&, std::vector>, std::allocator>>>&, DB::ClusterConnectionParameters&) @ 0x000000001a946916 in /usr/bin/clickhouse 25. /build/src/TableFunctions/TableFunctionRemote.cpp:290: DB::TableFunctionRemote::parseArguments(std::shared_ptr const&, std::shared_ptr) @ 0x000000001a94328e in /usr/bin/clickhouse 26. /build/src/TableFunctions/TableFunctionFactory.cpp:49: DB::TableFunctionFactory::get(std::shared_ptr const&, std::shared_ptr) const @ 0x000000001ac0c6a3 in /usr/bin/clickhouse 27. /build/src/Interpreters/InterpreterCreateQuery.cpp:1407: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eac8c in /usr/bin/clickhouse 28. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 29. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 30. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 31. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:24:25.891815 [ 727 ] {} DNSResolver: Cannot resolve host (localhosy), error 0: Host not found. 2024.05.01 14:24:25.893444 [ 727 ] {} DNSResolver: Cannot resolve host (localhosx), error 0: Host not found. 2024.05.01 14:24:26.431330 [ 73699 ] {8b77ea4a-2e13-4774-b19f-401293ffad9b} StorageBuffer (test_y35geza5.buffer): Destination table test_y35geza5.file doesn't exist. Block of data is discarded. 2024.05.01 14:24:35.446583 [ 73699 ] {a42ecf3d-63da-49b8-be54-e178b9fe4a5a} executeQuery: Code: 80. DB::Exception: Cannot MATERIALIZE TTL as there is no TTL set for table test_6vdn2zhm.ttl (529cf2a7-dac1-43fb-9a8e-95b5d57ecbf7). (INCORRECT_QUERY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:55160) (comment: 01070_materialize_ttl.sql) (in query: alter table ttl materialize ttl;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterAlterQuery.cpp:141: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7ca176 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:24:35.447265 [ 73699 ] {a42ecf3d-63da-49b8-be54-e178b9fe4a5a} TCPHandler: Code: 80. DB::Exception: Cannot MATERIALIZE TTL as there is no TTL set for table test_6vdn2zhm.ttl (529cf2a7-dac1-43fb-9a8e-95b5d57ecbf7). (INCORRECT_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterAlterQuery.cpp:141: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x000000001c7ca176 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterAlterQuery.cpp:65: DB::InterpreterAlterQuery::execute() @ 0x000000001c7c8768 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:24:39.739007 [ 73699 ] {e2f05513-cb4a-4cb6-98e0-8dc8a8a8cbf0} executeQuery: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43028) (in query: select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:24:39.740539 [ 73699 ] {e2f05513-cb4a-4cb6-98e0-8dc8a8a8cbf0} TCPHandler: Code: 107. DB::Exception: File /var/lib/clickhouse/user_files/nonexist.txt doesn't exist. (FILE_DOESNT_EXIST), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Storages/StorageFile.cpp:1434: DB::StorageFile::read(std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d69054b in /usr/bin/clickhouse 7. /build/src/Storages/IStorage.cpp:144: DB::IStorage::read(DB::QueryPlan&, std::vector> const&, std::shared_ptr const&, DB::SelectQueryInfo&, std::shared_ptr, DB::QueryProcessingStage::Enum, unsigned long, unsigned long) @ 0x000000001d5db7c1 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterSelectQuery.cpp:2486: DB::InterpreterSelectQuery::executeFetchColumns(DB::QueryProcessingStage::Enum, DB::QueryPlan&) @ 0x000000001caaf4af in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterSelectQuery.cpp:0: DB::InterpreterSelectQuery::executeImpl(DB::QueryPlan&, std::optional) @ 0x000000001caa747e in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:868: DB::InterpreterSelectQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001caa65dd in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:303: DB::InterpreterSelectWithUnionQuery::buildQueryPlan(DB::QueryPlan&) @ 0x000000001cbbcb74 in /usr/bin/clickhouse 12. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:377: DB::InterpreterSelectWithUnionQuery::execute() @ 0x000000001cbbd6c0 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 14. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 16. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 18. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 21. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 22. ? @ 0x00007fcde32fbac3 in ? 23. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:25:00.236946 [ 1016 ] {} ExternalDictionariesLoader: Could not check if external dictionary '8ac87ea8-86f8-47e7-af7a-0a25e8f939c6' was modified: Code: 60. DB::Exception: Table dictdb_01041_01040.dict_invalidate does not exist. Maybe you meant invalidate?. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:29: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb493f3 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:194: DB::ClickHouseDictionarySource::doInvalidateQuery(String const&) const @ 0x0000000017c1b82b in /usr/bin/clickhouse 20. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:0: DB::ClickHouseDictionarySource::isModified() const @ 0x0000000017c1ac5f in /usr/bin/clickhouse 21. /build/src/Dictionaries/IDictionary.h:314: DB::IDictionary::isModified() const @ 0x0000000017cfb571 in /usr/bin/clickhouse 22. /build/src/Interpreters/ExternalLoader.cpp:679: DB::ExternalLoader::LoadingDispatcher::reloadOutdated() @ 0x000000001c553401 in /usr/bin/clickhouse 23. /build/src/Interpreters/ExternalLoader.cpp:1271: DB::ExternalLoader::PeriodicUpdater::doPeriodicUpdates() @ 0x000000001c552e63 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:359: decltype(*std::declval().*std::declval()()) std::__invoke[abi:v15000](void (DB::ExternalLoader::PeriodicUpdater::*&)(), DB::ExternalLoader::PeriodicUpdater*&) @ 0x000000001c557789 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]&, 0ul>(void (DB::ExternalLoader::PeriodicUpdater::*&)(), std::tuple&, std::__tuple_indices<0ul>) @ 0x000000001c55770d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]&>(void (DB::ExternalLoader::PeriodicUpdater::*&)(), std::tuple&) @ 0x000000001c55765d in /usr/bin/clickhouse 27. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(void (DB::ExternalLoader::PeriodicUpdater::*&&)(), DB::ExternalLoader::PeriodicUpdater*&&)::'lambda'()::operator()() @ 0x000000001c557575 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl(void (DB::ExternalLoader::PeriodicUpdater::*&&)(), DB::ExternalLoader::PeriodicUpdater*&&)::'lambda'()&>(void (DB::ExternalLoader::PeriodicUpdater::*&&)(), DB::ExternalLoader::PeriodicUpdater*&&) @ 0x000000001c5574d5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl(void (DB::ExternalLoader::PeriodicUpdater::*&&)(), DB::ExternalLoader::PeriodicUpdater*&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl(void (DB::ExternalLoader::PeriodicUpdater::*&&)(), DB::ExternalLoader::PeriodicUpdater*&&)::'lambda'()&) @ 0x000000001c5574b5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl(void (DB::ExternalLoader::PeriodicUpdater::*&&)(), DB::ExternalLoader::PeriodicUpdater*&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x000000001c557495 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(void (DB::ExternalLoader::PeriodicUpdater::*&&)(), DB::ExternalLoader::PeriodicUpdater*&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001c557460 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:25:00.371552 [ 64002 ] {} ExternalDictionariesLoader: Could not update external dictionary '8ac87ea8-86f8-47e7-af7a-0a25e8f939c6', leaving the previous version, next update is scheduled at 2024-05-01 14:25:05: Code: 60. DB::Exception: Table dictdb_01041_01040.dict_invalidate does not exist. Maybe you meant invalidate?. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:29: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb493f3 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:171: DB::ClickHouseDictionarySource::createStreamForQuery(String const&) @ 0x0000000017c1a7b1 in /usr/bin/clickhouse 20. /build/src/Dictionaries/ClickHouseDictionarySource.cpp:113: DB::ClickHouseDictionarySource::loadAll() @ 0x0000000017c1a68a in /usr/bin/clickhouse 21. /build/src/Dictionaries/FlatDictionary.cpp:434: DB::FlatDictionary::loadData() @ 0x0000000017d3a8e3 in /usr/bin/clickhouse 22. /build/src/Dictionaries/FlatDictionary.cpp:45: DB::FlatDictionary::FlatDictionary(DB::StorageID const&, DB::DictionaryStructure const&, std::shared_ptr, DB::FlatDictionary::Configuration, std::shared_ptr) @ 0x0000000017d3a61e in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:35: DB::FlatDictionary* std::construct_at[abi:v15000], DB::FlatDictionary::Configuration const&, std::shared_ptr const&, DB::FlatDictionary*>(DB::FlatDictionary*, DB::StorageID&&, DB::DictionaryStructure const&, std::shared_ptr&&, DB::FlatDictionary::Configuration const&, std::shared_ptr const&) @ 0x0000000017d84a94 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:302: void std::allocator_traits>::construct[abi:v15000], DB::FlatDictionary::Configuration const&, std::shared_ptr const&, void, void>(std::allocator&, DB::FlatDictionary*, DB::StorageID&&, DB::DictionaryStructure const&, std::shared_ptr&&, DB::FlatDictionary::Configuration const&, std::shared_ptr const&) @ 0x0000000017d847c1 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:292: std::__shared_ptr_emplace>::__shared_ptr_emplace[abi:v15000], DB::FlatDictionary::Configuration const&, std::shared_ptr const&>(std::allocator, DB::StorageID&&, DB::DictionaryStructure const&, std::shared_ptr&&, DB::FlatDictionary::Configuration const&, std::shared_ptr const&) @ 0x0000000017d8448d in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:953: std::shared_ptr std::allocate_shared[abi:v15000], DB::StorageID, DB::DictionaryStructure const&, std::shared_ptr, DB::FlatDictionary::Configuration const&, std::shared_ptr const&, void>(std::allocator const&, DB::StorageID&&, DB::DictionaryStructure const&, std::shared_ptr&&, DB::FlatDictionary::Configuration const&, std::shared_ptr const&) @ 0x0000000017d842e0 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:962: std::shared_ptr std::make_shared[abi:v15000], DB::FlatDictionary::Configuration const&, std::shared_ptr const&, void>(DB::StorageID&&, DB::DictionaryStructure const&, std::shared_ptr&&, DB::FlatDictionary::Configuration const&, std::shared_ptr const&) @ 0x0000000017d841e6 in /usr/bin/clickhouse 28. /build/src/Dictionaries/FlatDictionary.h:61: DB::FlatDictionary::clone() const @ 0x0000000017d63f47 in /usr/bin/clickhouse 29. /build/src/Interpreters/ExternalLoader.cpp:1522: DB::ExternalLoader::createObject(String const&, DB::ExternalLoader::ObjectConfig const&, std::shared_ptr const&) const @ 0x000000001c52a9e8 in /usr/bin/clickhouse 30. /build/src/Interpreters/ExternalLoader.cpp:1288: auto DB::ExternalLoader::ExternalLoader(String const&, Poco::Logger*)::$_0::operator() const&>(String const&, DB::ExternalLoader::ObjectConfig const&, std::shared_ptr const&) const @ 0x000000001c52d770 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval(), std::declval(), std::declval const&>())) std::__invoke[abi:v15000] const&>(DB::ExternalLoader::ExternalLoader(String const&, Poco::Logger*)::$_0&, String const&, DB::ExternalLoader::ObjectConfig const&, std::shared_ptr const&) @ 0x000000001c52d70d in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:25:53.454833 [ 73699 ] {8a9f612c-934f-44b9-9903-a6e16868dbc0} executeQuery: Code: 489. DB::Exception: Unknown key attribute 'non_existing_column'. (INCORRECT_DICTIONARY_DEFINITION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43050) (comment: 01018_ddl_dictionaries_bad_queries.sh) (in query: CREATE DICTIONARY dict1 ( key1 UInt64, key2 UInt64, value String ) PRIMARY KEY non_existing_column LAYOUT(HASHED()) SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 'table_for_dict1' DB 'test_5lpf0zwn')) LIFETIME(MIN 1 MAX 10) ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:570: DB::(anonymous namespace)::checkPrimaryKey(std::unordered_map, std::equal_to, std::allocator>> const&, std::vector> const&) @ 0x000000001abda3ab in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:616: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abd9150 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d63d030 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63cd1d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63ccbd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d63cc7d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d63cc45 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:25:53.456837 [ 73699 ] {8a9f612c-934f-44b9-9903-a6e16868dbc0} TCPHandler: Code: 489. DB::Exception: Unknown key attribute 'non_existing_column'. (INCORRECT_DICTIONARY_DEFINITION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:570: DB::(anonymous namespace)::checkPrimaryKey(std::unordered_map, std::equal_to, std::allocator>> const&, std::vector> const&) @ 0x000000001abda3ab in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:616: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abd9150 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d63d030 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63cd1d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63ccbd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d63cc7d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d63cc45 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:25:55.357753 [ 73699 ] {4f7fd209-4938-4cb9-8e66-57ce3c660d07} executeQuery: Code: 489. DB::Exception: Unknown key attribute 'non_existing_column'. (INCORRECT_DICTIONARY_DEFINITION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43064) (comment: 01018_ddl_dictionaries_bad_queries.sh) (in query: CREATE DICTIONARY dict1 ( key1 UInt64, key2 UInt64, value String ) PRIMARY KEY non_existing_column, key1 LAYOUT(COMPLEX_KEY_HASHED()) SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 'table_for_dict1' DB 'test_5lpf0zwn')) LIFETIME(MIN 1 MAX 10) ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:570: DB::(anonymous namespace)::checkPrimaryKey(std::unordered_map, std::equal_to, std::allocator>> const&, std::vector> const&) @ 0x000000001abda3ab in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:616: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abd9150 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d63d030 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63cd1d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63ccbd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d63cc7d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d63cc45 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:25:55.359685 [ 73699 ] {4f7fd209-4938-4cb9-8e66-57ce3c660d07} TCPHandler: Code: 489. DB::Exception: Unknown key attribute 'non_existing_column'. (INCORRECT_DICTIONARY_DEFINITION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000b9058d3 in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:570: DB::(anonymous namespace)::checkPrimaryKey(std::unordered_map, std::equal_to, std::allocator>> const&, std::vector> const&) @ 0x000000001abda3ab in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:616: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abd9150 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d63d030 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63cd1d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63ccbd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d63cc7d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d63cc45 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:25:57.367635 [ 73699 ] {b9c2b067-666a-4a79-a148-ee2d50f483e5} executeQuery: Code: 489. DB::Exception: Cannot create dictionary with empty layout. (INCORRECT_DICTIONARY_DEFINITION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:43080) (comment: 01018_ddl_dictionaries_bad_queries.sh) (in query: CREATE DICTIONARY dict1 ( key1 UInt64, key2 UInt64, value String ) PRIMARY KEY key2, key1 SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 'table_for_dict1' DB 'test_5lpf0zwn')) LIFETIME(MIN 1 MAX 10) ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1f303e in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:552: DB::(anonymous namespace)::checkAST(DB::ASTCreateQuery const&) @ 0x000000001abd9bb0 in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:579: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abd8679 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d63d030 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63cd1d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63ccbd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d63cc7d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d63cc45 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:25:57.370851 [ 73699 ] {b9c2b067-666a-4a79-a148-ee2d50f483e5} TCPHandler: Code: 489. DB::Exception: Cannot create dictionary with empty layout. (INCORRECT_DICTIONARY_DEFINITION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1f303e in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:552: DB::(anonymous namespace)::checkAST(DB::ASTCreateQuery const&) @ 0x000000001abd9bb0 in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:579: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abd8679 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d63d030 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63cd1d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63ccbd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d63cc7d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d63cc45 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:25:59.380994 [ 73699 ] {245b2603-cd6b-4a54-b677-abd3cdbb49f5} executeQuery: Code: 489. DB::Exception: Cannot create dictionary without primary key. (INCORRECT_DICTIONARY_DEFINITION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39428) (comment: 01018_ddl_dictionaries_bad_queries.sh) (in query: CREATE DICTIONARY dict1 ( key1 UInt64, key2 UInt64, value String ) LAYOUT(COMPLEX_KEY_HASHED()) SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 'table_for_dict1' DB 'test_5lpf0zwn')) LIFETIME(MIN 1 MAX 10) ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [45]) @ 0x000000000b24ab5e in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:560: DB::(anonymous namespace)::checkAST(DB::ASTCreateQuery const&) @ 0x000000001abd9d2f in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:579: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abd8679 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d63d030 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63cd1d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63ccbd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d63cc7d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d63cc45 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:25:59.382744 [ 73699 ] {245b2603-cd6b-4a54-b677-abd3cdbb49f5} TCPHandler: Code: 489. DB::Exception: Cannot create dictionary without primary key. (INCORRECT_DICTIONARY_DEFINITION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [45]) @ 0x000000000b24ab5e in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:560: DB::(anonymous namespace)::checkAST(DB::ASTCreateQuery const&) @ 0x000000001abd9d2f in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:579: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abd8679 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d63d030 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63cd1d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63ccbd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d63cc7d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d63cc45 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:01.471592 [ 73699 ] {85a516f0-15f9-454f-9539-ccf7b0c21886} executeQuery: Code: 489. DB::Exception: Cannot create dictionary with empty lifetime. (INCORRECT_DICTIONARY_DEFINITION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39438) (comment: 01018_ddl_dictionaries_bad_queries.sh) (in query: CREATE DICTIONARY dict1 ( key1 UInt64, key2 UInt64, value String ) PRIMARY KEY key2, key1 LAYOUT(COMPLEX_KEY_HASHED()) SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE 'table_for_dict1' DB 'test_5lpf0zwn')) ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [45]) @ 0x000000000b24ab5e in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:557: DB::(anonymous namespace)::checkAST(DB::ASTCreateQuery const&) @ 0x000000001abd9cb2 in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:579: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abd8679 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d63d030 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63cd1d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63ccbd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d63cc7d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d63cc45 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:01.474522 [ 73699 ] {85a516f0-15f9-454f-9539-ccf7b0c21886} TCPHandler: Code: 489. DB::Exception: Cannot create dictionary with empty lifetime. (INCORRECT_DICTIONARY_DEFINITION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [45]) @ 0x000000000b24ab5e in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:557: DB::(anonymous namespace)::checkAST(DB::ASTCreateQuery const&) @ 0x000000001abd9cb2 in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:579: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abd8679 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d63d030 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63cd1d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63ccbd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d63cc7d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d63cc45 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:03.580194 [ 73699 ] {e53bd744-ac01-45cd-8d7e-4d7b2be1c48f} executeQuery: Code: 489. DB::Exception: Cannot create dictionary with empty source. (INCORRECT_DICTIONARY_DEFINITION) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:39450) (comment: 01018_ddl_dictionaries_bad_queries.sh) (in query: CREATE DICTIONARY dict1 ( key1 UInt64, key2 UInt64, value String ) PRIMARY KEY non_existing_column, key1 LAYOUT(COMPLEX_KEY_HASHED()) LIFETIME(MIN 1 MAX 10) ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1f303e in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:563: DB::(anonymous namespace)::checkAST(DB::ASTCreateQuery const&) @ 0x000000001abd9da7 in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:579: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abd8679 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d63d030 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63cd1d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63ccbd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d63cc7d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d63cc45 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:03.581903 [ 73699 ] {e53bd744-ac01-45cd-8d7e-4d7b2be1c48f} TCPHandler: Code: 489. DB::Exception: Cannot create dictionary with empty source. (INCORRECT_DICTIONARY_DEFINITION), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [43]) @ 0x000000000b1f303e in /usr/bin/clickhouse 6. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:563: DB::(anonymous namespace)::checkAST(DB::ASTCreateQuery const&) @ 0x000000001abd9da7 in /usr/bin/clickhouse 7. /build/src/Dictionaries/getDictionaryConfigurationFromAST.cpp:579: DB::getDictionaryConfigurationFromAST(DB::ASTCreateQuery const&, std::shared_ptr, String const&) @ 0x000000001abd8679 in /usr/bin/clickhouse 8. /build/src/Storages/StorageDictionary.cpp:329: DB::registerStorageDictionary(DB::StorageFactory&)::$_0::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d63d030 in /usr/bin/clickhouse 9. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()(std::declval())) std::__invoke[abi:v15000](DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63cd1d in /usr/bin/clickhouse 10. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:470: std::shared_ptr std::__invoke_void_return_wrapper, false>::__call(DB::registerStorageDictionary(DB::StorageFactory&)::$_0&, DB::StorageFactory::Arguments const&) @ 0x000000001d63ccbd in /usr/bin/clickhouse 11. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) @ 0x000000001d63cc7d in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: std::shared_ptr std::__function::__policy_invoker (DB::StorageFactory::Arguments const&)>::__call_impl (DB::StorageFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::StorageFactory::Arguments const&) @ 0x000000001d63cc45 in /usr/bin/clickhouse 13. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func (DB::StorageFactory::Arguments const&)>::operator()[abi:v15000](DB::StorageFactory::Arguments const&) const @ 0x000000001d68b4be in /usr/bin/clickhouse 14. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function (DB::StorageFactory::Arguments const&)>::operator()(DB::StorageFactory::Arguments const&) const @ 0x000000001d689d9d in /usr/bin/clickhouse 15. /build/src/Storages/StorageFactory.cpp:225: DB::StorageFactory::get(DB::ASTCreateQuery const&, String const&, std::shared_ptr, std::shared_ptr, DB::ColumnsDescription const&, DB::ConstraintsDescription const&, bool) const @ 0x000000001d6884a6 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterCreateQuery.cpp:1416: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7eb1c8 in /usr/bin/clickhouse 17. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 18. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 19. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 20. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 21. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 22. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 23. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 24. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 26. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 27. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 28. ? @ 0x00007fcde32fbac3 in ? 29. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:13.681844 [ 76702 ] {6640fc96-547d-4f22-b9f3-30d05e8454ae} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. Maybe you meant dict2?. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51252) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:29: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb493f3 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:13.683762 [ 76702 ] {6640fc96-547d-4f22-b9f3-30d05e8454ae} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. Maybe you meant dict2?. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:29: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb493f3 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:13.715970 [ 76763 ] {ef1765c1-e854-42e9-8530-9a7f579d596e} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. Maybe you meant dict2?. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51284) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:29: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb493f3 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:13.717910 [ 76763 ] {ef1765c1-e854-42e9-8530-9a7f579d596e} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. Maybe you meant dict2?. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:29: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb493f3 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:13.799386 [ 73699 ] {d4bde407-502c-4af0-808c-f6e912dd3552} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. Maybe you meant dict2?. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51296) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:29: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb493f3 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:13.800795 [ 73699 ] {d4bde407-502c-4af0-808c-f6e912dd3552} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. Maybe you meant dict2?. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000b2372e8 in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:29: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb493f3 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:14.490247 [ 73699 ] {40f5f4d6-dee1-4750-99d3-71277c336689} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51316) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:14.491635 [ 73699 ] {40f5f4d6-dee1-4750-99d3-71277c336689} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:14.629245 [ 76763 ] {9d22fd95-7f91-4938-a0ac-94a75c79e680} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51344) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:14.631343 [ 76763 ] {9d22fd95-7f91-4938-a0ac-94a75c79e680} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:14.766505 [ 76762 ] {5efdf886-67a3-47b1-bd2a-295ae30d32bc} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51338) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:14.767941 [ 76762 ] {5efdf886-67a3-47b1-bd2a-295ae30d32bc} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:15.174606 [ 81689 ] {15139b2c-9c48-4e74-859d-ffeead8748e2} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51406) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:15.175938 [ 81689 ] {15139b2c-9c48-4e74-859d-ffeead8748e2} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:15.186394 [ 81677 ] {a6e85a7b-b8e8-47f4-b55a-d41a5bd959b4} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51402) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:15.187821 [ 81677 ] {a6e85a7b-b8e8-47f4-b55a-d41a5bd959b4} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:15.194017 [ 80937 ] {5ba61fc9-bfc4-499f-a04a-f9d45acb1124} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51386) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:15.195354 [ 80937 ] {5ba61fc9-bfc4-499f-a04a-f9d45acb1124} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:15.322041 [ 81866 ] {271236d0-aac0-4e19-940d-858d2b2d85c2} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51422) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:15.323363 [ 81866 ] {271236d0-aac0-4e19-940d-858d2b2d85c2} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:15.626925 [ 73699 ] {8845d319-f97d-4e07-a03d-efd0d56bd8f6} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51438) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:15.628920 [ 73699 ] {8845d319-f97d-4e07-a03d-efd0d56bd8f6} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:15.770681 [ 76702 ] {f88529e7-88e5-4df8-acc1-3ab4b69c18d5} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51452) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:15.772242 [ 76702 ] {f88529e7-88e5-4df8-acc1-3ab4b69c18d5} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:15.897859 [ 76762 ] {cfcc58af-2c99-473d-9bd0-2fef148eb797} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51456) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:15.899333 [ 76762 ] {cfcc58af-2c99-473d-9bd0-2fef148eb797} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:15.999435 [ 80056 ] {21e11d6e-8b2e-4476-be10-a7e57ef74172} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51476) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:16.000753 [ 80056 ] {21e11d6e-8b2e-4476-be10-a7e57ef74172} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:16.131303 [ 80937 ] {a2ce445d-da47-41a1-868c-a3f18387e2e1} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51486) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:16.132920 [ 80937 ] {a2ce445d-da47-41a1-868c-a3f18387e2e1} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:17.835115 [ 76763 ] {5d24308e-8da5-4703-9a59-88a4490bb137} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51572) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:17.836804 [ 76763 ] {5d24308e-8da5-4703-9a59-88a4490bb137} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:17.906784 [ 80056 ] {2d52d0ef-c640-4a17-af7b-7b2c7a05bf01} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51586) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:17.908684 [ 80056 ] {2d52d0ef-c640-4a17-af7b-7b2c7a05bf01} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:17.948086 [ 80937 ] {d246ceb6-868d-4b89-9543-256f84ebdf62} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51594) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:17.949698 [ 80937 ] {d246ceb6-868d-4b89-9543-256f84ebdf62} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:18.026836 [ 81677 ] {858ff758-7d24-4214-bba1-9cceb141c9cd} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51606) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:18.028600 [ 81677 ] {858ff758-7d24-4214-bba1-9cceb141c9cd} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:18.036655 [ 81689 ] {e326a753-22b4-4e49-bef0-c004f166d0cf} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51620) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:18.038251 [ 81689 ] {e326a753-22b4-4e49-bef0-c004f166d0cf} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:18.175850 [ 76702 ] {8c1b849a-dbb1-44d1-a276-cfd80b2fba0a} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51628) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:18.177251 [ 76702 ] {8c1b849a-dbb1-44d1-a276-cfd80b2fba0a} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:18.248344 [ 76762 ] {27f56623-6c84-426b-913c-0efaeb1f83b3} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51632) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:18.253497 [ 76762 ] {27f56623-6c84-426b-913c-0efaeb1f83b3} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:18.296245 [ 85521 ] {6dfa9b3b-c1e0-476d-a066-23af34f20c43} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:51642) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:18.297856 [ 85521 ] {6dfa9b3b-c1e0-476d-a066-23af34f20c43} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:18.480313 [ 81866 ] {bae8da2f-1b3c-4838-968c-e52fc30e1ea2} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35230) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:18.481884 [ 81866 ] {bae8da2f-1b3c-4838-968c-e52fc30e1ea2} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:18.782571 [ 81689 ] {b128f14a-ad46-4889-ad74-96319b3a7632} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35238) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:18.783957 [ 81689 ] {b128f14a-ad46-4889-ad74-96319b3a7632} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:18.838130 [ 73699 ] {95927fdb-888e-40f0-a21c-d8862d19f47c} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35242) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:18.839461 [ 73699 ] {95927fdb-888e-40f0-a21c-d8862d19f47c} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:19.772920 [ 81689 ] {a2555f87-8d24-4e62-8b37-9a691a5501de} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35268) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:19.774531 [ 81689 ] {a2555f87-8d24-4e62-8b37-9a691a5501de} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:20.031427 [ 81866 ] {4be236a9-6786-47cd-bd3b-75dbac2ffa36} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35290) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:20.032946 [ 81866 ] {4be236a9-6786-47cd-bd3b-75dbac2ffa36} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:20.219269 [ 76702 ] {b4aceedd-e585-4ecf-83dc-2cf4bb9cf4fe} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35320) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:20.221051 [ 76702 ] {b4aceedd-e585-4ecf-83dc-2cf4bb9cf4fe} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:20.467012 [ 80937 ] {b703899d-b8ff-43af-8c56-48a7911589bf} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35360) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:20.468653 [ 80937 ] {b703899d-b8ff-43af-8c56-48a7911589bf} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:20.539273 [ 85521 ] {00245448-4ca9-4aeb-91eb-b6fc42e076cf} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35364) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: SELECT * FROM database_for_dict.dict1 FORMAT Null;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:20.540699 [ 85521 ] {00245448-4ca9-4aeb-91eb-b6fc42e076cf} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:926: DB::DatabaseCatalog::getTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedabc3 in /usr/bin/clickhouse 9. /build/src/Interpreters/JoinedTables.cpp:235: DB::JoinedTables::getLeftTableStorage() @ 0x000000001cc105d6 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterSelectQuery.cpp:429: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x000000001ca9b2f4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterSelectQuery.cpp:206: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001ca9a806 in /usr/bin/clickhouse 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000] const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&>(std::shared_ptr const&, std::shared_ptr&, DB::SelectQueryOptions&, std::vector> const&) @ 0x000000001cbbe461 in /usr/bin/clickhouse 13. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:254: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x000000001cbbbf29 in /usr/bin/clickhouse 14. /build/src/Interpreters/InterpreterSelectWithUnionQuery.cpp:152: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x000000001cbbb3a5 in /usr/bin/clickhouse 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: std::__unique_if::__unique_single std::make_unique[abi:v15000]&, std::shared_ptr&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions const&) @ 0x000000001ca4e094 in /usr/bin/clickhouse 16. /build/src/Interpreters/InterpreterFactory.cpp:162: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x000000001ca4be88 in /usr/bin/clickhouse 17. /build/src/Interpreters/executeQuery.cpp:1026: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a041d in /usr/bin/clickhouse 18. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 19. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 20. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 21. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 22. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 23. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 24. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 25. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 26. ? @ 0x00007fcde32fbac3 in ? 27. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:20.594997 [ 80056 ] {d14c752a-691d-415b-a7c4-61e85cd1d1b9} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35344) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:20.596685 [ 80056 ] {d14c752a-691d-415b-a7c4-61e85cd1d1b9} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:20.646166 [ 81689 ] {4a4b1eae-660e-4a01-9c71-2cfca1a433df} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35378) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:20.648013 [ 81689 ] {4a4b1eae-660e-4a01-9c71-2cfca1a433df} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:20.829148 [ 81866 ] {cc45d4db-4ca4-454d-a0e8-a860b387222d} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35388) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:20.830758 [ 81866 ] {cc45d4db-4ca4-454d-a0e8-a860b387222d} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:21.035194 [ 76702 ] {d697ba2b-5941-485c-8146-d16751b052c6} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35410) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:21.036529 [ 76702 ] {d697ba2b-5941-485c-8146-d16751b052c6} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:21.230666 [ 76763 ] {c2a0aa28-da39-40c7-a347-05ea9c545eec} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35416) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:21.232120 [ 76763 ] {c2a0aa28-da39-40c7-a347-05ea9c545eec} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:21.463981 [ 81677 ] {95056806-26c6-4147-9be5-4c4f42f8567f} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35422) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict1), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:21.465757 [ 81677 ] {95056806-26c6-4147-9be5-4c4f42f8567f} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict1 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:21.646100 [ 81689 ] {e4fca8c4-5be4-473f-aa93-86af0fa85b11} executeQuery: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:35430) (comment: 01018_ddl_dictionaries_concurrent_requrests.sh) (in query: DETACH DICTIONARY database_for_dict.dict2), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:21.647526 [ 81689 ] {e4fca8c4-5be4-473f-aa93-86af0fa85b11} TCPHandler: Code: 60. DB::Exception: Table database_for_dict.dict2 does not exist. (UNKNOWN_TABLE), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000b191d8c in /usr/bin/clickhouse 6. /build/src/Databases/IDatabase.cpp:27: DB::IDatabase::getTable(String const&, std::shared_ptr) const @ 0x000000001bb491d2 in /usr/bin/clickhouse 7. /build/src/Interpreters/DatabaseCatalog.cpp:421: DB::DatabaseCatalog::getTableImpl(DB::StorageID const&, std::shared_ptr, std::optional*) const @ 0x000000001bed5ab3 in /usr/bin/clickhouse 8. /build/src/Interpreters/DatabaseCatalog.cpp:940: DB::DatabaseCatalog::getDatabaseAndTable(DB::StorageID const&, std::shared_ptr) const @ 0x000000001bedadb8 in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterDropQuery.cpp:121: DB::InterpreterDropQuery::executeToTableImpl(std::shared_ptr, DB::ASTDropQuery&, std::shared_ptr&, StrongTypedef, DB::UUIDTag>&) @ 0x000000001c8a9941 in /usr/bin/clickhouse 10. /build/src/Interpreters/InterpreterDropQuery.cpp:92: DB::InterpreterDropQuery::executeToTable(DB::ASTDropQuery&) @ 0x000000001c8a8fd4 in /usr/bin/clickhouse 11. /build/src/Interpreters/InterpreterDropQuery.cpp:69: DB::InterpreterDropQuery::execute() @ 0x000000001c8a884e in /usr/bin/clickhouse 12. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 13. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 14. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 15. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 20. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 21. ? @ 0x00007fcde32fbac3 in ? 22. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:36.180726 [ 81689 ] {c83c8a6c-329b-444e-b8b0-454624e96b20} executeQuery: Code: 57. DB::Exception: Table test_lazy_01014_concurrent_test_7drnu402.slog already exists. (TABLE_ALREADY_EXISTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:38038) (comment: 01014_lazy_database_concurrent_recreate_reattach_and_show_tables.sh) (in query: ATTACH TABLE test_lazy_01014_concurrent_test_7drnu402.slog; ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000001843c0c8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1319: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7e8f55 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:26:36.182129 [ 81689 ] {c83c8a6c-329b-444e-b8b0-454624e96b20} TCPHandler: Code: 57. DB::Exception: Table test_lazy_01014_concurrent_test_7drnu402.slog already exists. (TABLE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000001843c0c8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1319: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7e8f55 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:27:07.123706 [ 81689 ] {9f0a3efb-a448-4e76-9c98-d19eeb519005} executeQuery: Code: 57. DB::Exception: Table test_lazy_01014_concurrent_test_7drnu402.slog already exists. (TABLE_ALREADY_EXISTS) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:41008) (comment: 01014_lazy_database_concurrent_recreate_reattach_and_show_tables.sh) (in query: ATTACH TABLE test_lazy_01014_concurrent_test_7drnu402.slog;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000001843c0c8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1319: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7e8f55 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:27:07.125431 [ 81689 ] {9f0a3efb-a448-4e76-9c98-d19eeb519005} TCPHandler: Code: 57. DB::Exception: Table test_lazy_01014_concurrent_test_7drnu402.slog already exists. (TABLE_ALREADY_EXISTS), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000001843c0c8 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterCreateQuery.cpp:1319: DB::InterpreterCreateQuery::doCreateTable(DB::ASTCreateQuery&, DB::InterpreterCreateQuery::TableProperties const&, std::unique_ptr>&) @ 0x000000001c7e8f55 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterCreateQuery.cpp:1245: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e61e6 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:27:09.023425 [ 81689 ] {6fe83d7d-5957-4683-8326-bdd3c8ebde3b} executeQuery: Code: 390. DB::Exception: Table `tlog` doesn't exist. (CANNOT_GET_CREATE_TABLE_QUERY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48632) (comment: 01014_lazy_database_concurrent_recreate_reattach_and_show_tables.sh) (in query: ATTACH TABLE test_lazy_01014_concurrent_test_7drnu402.tlog;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseOnDisk.cpp:479: DB::DatabaseOnDisk::getCreateTableQueryImpl(String const&, std::shared_ptr, bool) const @ 0x000000001bac1596 in /usr/bin/clickhouse 7. /build/src/Databases/IDatabase.h:275: DB::IDatabase::getCreateTableQuery(String const&, std::shared_ptr) const @ 0x000000001b326fb7 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:1084: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e2ebb in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:27:09.024982 [ 81689 ] {6fe83d7d-5957-4683-8326-bdd3c8ebde3b} TCPHandler: Code: 390. DB::Exception: Table `tlog` doesn't exist. (CANNOT_GET_CREATE_TABLE_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseOnDisk.cpp:479: DB::DatabaseOnDisk::getCreateTableQueryImpl(String const&, std::shared_ptr, bool) const @ 0x000000001bac1596 in /usr/bin/clickhouse 7. /build/src/Databases/IDatabase.h:275: DB::IDatabase::getCreateTableQuery(String const&, std::shared_ptr) const @ 0x000000001b326fb7 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:1084: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e2ebb in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:27:10.946848 [ 81689 ] {51a37c3a-f977-4647-a0c5-013f41e3f636} executeQuery: Code: 390. DB::Exception: Table `tlog2` doesn't exist. (CANNOT_GET_CREATE_TABLE_QUERY) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:48640) (comment: 01014_lazy_database_concurrent_recreate_reattach_and_show_tables.sh) (in query: ATTACH TABLE test_lazy_01014_concurrent_test_7drnu402.tlog2;), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseOnDisk.cpp:479: DB::DatabaseOnDisk::getCreateTableQueryImpl(String const&, std::shared_ptr, bool) const @ 0x000000001bac1596 in /usr/bin/clickhouse 7. /build/src/Databases/IDatabase.h:275: DB::IDatabase::getCreateTableQuery(String const&, std::shared_ptr) const @ 0x000000001b326fb7 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:1084: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e2ebb in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:27:10.948581 [ 81689 ] {51a37c3a-f977-4647-a0c5-013f41e3f636} TCPHandler: Code: 390. DB::Exception: Table `tlog2` doesn't exist. (CANNOT_GET_CREATE_TABLE_QUERY), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Databases/DatabaseOnDisk.cpp:479: DB::DatabaseOnDisk::getCreateTableQueryImpl(String const&, std::shared_ptr, bool) const @ 0x000000001bac1596 in /usr/bin/clickhouse 7. /build/src/Databases/IDatabase.h:275: DB::IDatabase::getCreateTableQuery(String const&, std::shared_ptr) const @ 0x000000001b326fb7 in /usr/bin/clickhouse 8. /build/src/Interpreters/InterpreterCreateQuery.cpp:1084: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001c7e2ebb in /usr/bin/clickhouse 9. /build/src/Interpreters/InterpreterCreateQuery.cpp:0: DB::InterpreterCreateQuery::execute() @ 0x000000001c7edad6 in /usr/bin/clickhouse 10. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 12. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 13. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 19. ? @ 0x00007fcde32fbac3 in ? 20. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:27:20.258390 [ 81689 ] {88b17990-c9c7-4f4a-96a0-bee2b2732c53} InterpreterSystemQuery: SYNC REPLICA test_4vsmwf7e.table_1013_2 (ccd4138c-964d-4fa1-9885-1a4c77a93ed8): Timed out! 2024.05.01 14:27:20.336488 [ 81689 ] {88b17990-c9c7-4f4a-96a0-bee2b2732c53} executeQuery: Code: 159. DB::Exception: SYNC REPLICA test_4vsmwf7e.table_1013_2 (ccd4138c-964d-4fa1-9885-1a4c77a93ed8): command timed out. See the 'receive_timeout' setting. (TIMEOUT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:36980) (comment: 01013_sync_replica_timeout_zookeeper.sh) (in query: SYSTEM SYNC REPLICA table_1013_2 ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSystemQuery.cpp:1008: DB::InterpreterSystemQuery::syncReplica(DB::ASTSystemQuery&) @ 0x000000001cbd60a9 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSystemQuery.cpp:583: DB::InterpreterSystemQuery::execute() @ 0x000000001cbccb25 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:27:20.338145 [ 81689 ] {88b17990-c9c7-4f4a-96a0-bee2b2732c53} TCPHandler: Code: 159. DB::Exception: SYNC REPLICA test_4vsmwf7e.table_1013_2 (ccd4138c-964d-4fa1-9885-1a4c77a93ed8): command timed out. See the 'receive_timeout' setting. (TIMEOUT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x000000000b18cc53 in /usr/bin/clickhouse 6. /build/src/Interpreters/InterpreterSystemQuery.cpp:1008: DB::InterpreterSystemQuery::syncReplica(DB::ASTSystemQuery&) @ 0x000000001cbd60a9 in /usr/bin/clickhouse 7. /build/src/Interpreters/InterpreterSystemQuery.cpp:583: DB::InterpreterSystemQuery::execute() @ 0x000000001cbccb25 in /usr/bin/clickhouse 8. /build/src/Interpreters/executeQuery.cpp:1085: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, bool, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001d0a0db7 in /usr/bin/clickhouse 9. /build/src/Interpreters/executeQuery.cpp:1223: DB::executeQuery(String const&, std::shared_ptr, bool, DB::QueryProcessingStage::Enum) @ 0x000000001d09c0c4 in /usr/bin/clickhouse 10. /build/src/Server/TCPHandler.cpp:496: DB::TCPHandler::runImpl() @ 0x000000001e5da14d in /usr/bin/clickhouse 11. /build/src/Server/TCPHandler.cpp:2159: DB::TCPHandler::run() @ 0x000000001e5ec765 in /usr/bin/clickhouse 12. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 14. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 17. ? @ 0x00007fcde32fbac3 in ? 18. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:27:39.586732 [ 81689 ] {8003d3a3-6734-44e5-8e5c-ece8a3cea0c3} executeQuery: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 1003.28 MiB (attempt to allocate chunk of 0 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:32868) (comment: 00877_memory_limit_for_new_delete.sql) (in query: SELECT sum(ignore(*)) FROM ( SELECT number, argMax(number, (number, toFixedString(toString(number), 1024))) FROM numbers(1000000) GROUP BY number ) -- { serverError 241 } ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 14:27:43.148354 [ 81689 ] {8003d3a3-6734-44e5-8e5c-ece8a3cea0c3} TCPHandler: Code: 241. DB::Exception: Memory limit (for query) exceeded: would use 1003.28 MiB (attempt to allocate chunk of 0 bytes), maximum: 953.67 MiB.: While executing AggregatingTransform. (MEMORY_LIMIT_EXCEEDED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception>>(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity>>::type>, char const*&&, char const*&&, String&&, long&, String&&, char const*&&, std::basic_string_view>&&) @ 0x00000000138f597d in /usr/bin/clickhouse 6. /build/src/Common/MemoryTracker.cpp:340: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f3e50 in /usr/bin/clickhouse 7. /build/src/Common/MemoryTracker.cpp:398: MemoryTracker::allocImpl(long, bool, MemoryTracker*, double) @ 0x00000000138f41a2 in /usr/bin/clickhouse 8. /build/src/Common/CurrentMemoryTracker.cpp:84: CurrentMemoryTracker::check() @ 0x00000000138769d9 in /usr/bin/clickhouse 9. /build/src/Interpreters/Aggregator.cpp:1823: DB::Aggregator::checkLimits(unsigned long, bool&) const @ 0x000000001c004797 in /usr/bin/clickhouse 10. /build/src/Interpreters/Aggregator.cpp:1615: DB::Aggregator::executeOnBlock(std::vector::immutable_ptr, std::allocator::immutable_ptr>>, unsigned long, unsigned long, DB::AggregatedDataVariants&, std::vector>&, std::vector>, std::allocator>>>&, bool&) const @ 0x000000001c015e73 in /usr/bin/clickhouse 11. /build/src/Processors/Transforms/AggregatingTransform.cpp:669: DB::AggregatingTransform::consume(DB::Chunk) @ 0x000000001eb20913 in /usr/bin/clickhouse 12. /build/src/Processors/Transforms/AggregatingTransform.cpp:628: DB::AggregatingTransform::work() @ 0x000000001eb1e239 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 17. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 25. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 28. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 29. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 2024.05.01 14:28:55.455388 [ 62685 ] {79b9d343-d51e-429c-9957-084f463fac12} executeQuery: Code: 24. DB::Exception: Cannot write to ostream at offset 1188: While executing TabSeparatedRowOutputFormat. (CANNOT_WRITE_TO_OSTREAM) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:57200) (in query: SELECT message_format_string, count(), any(message) AS any_message FROM system.text_log WHERE (now() - toIntervalMinute(240)) < event_time AND (message NOT LIKE (replaceRegexpAll(message_format_string, '{[:.0-9dfx]*}', '%') AS s)) AND (message NOT LIKE concat('%Exception: ', s, '%')) GROUP BY message_format_string ORDER BY count() DESC LIMIT 20 FORMAT TSVWithNamesAndTypes ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9158f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b5a08f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e6045df in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:111: DB::IOutputFormat::flush() @ 0x000000001e697d3c in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IOutputFormat.cpp:0: DB::IOutputFormat::work() @ 0x000000001e697ab4 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 2024.05.01 14:28:55.467779 [ 62685 ] {79b9d343-d51e-429c-9957-084f463fac12} DynamicQueryHandler: Code: 24. DB::Exception: Cannot write to ostream at offset 1188: While executing TabSeparatedRowOutputFormat. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9158f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b5a08f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e6045df in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:111: DB::IOutputFormat::flush() @ 0x000000001e697d3c in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IOutputFormat.cpp:0: DB::IOutputFormat::work() @ 0x000000001e697ab4 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:28:55.539103 [ 62685 ] {79b9d343-d51e-429c-9957-084f463fac12} DynamicQueryHandler: Cannot send exception to client: Code: 24. DB::Exception: Cannot write to ostream at offset 1377. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9158f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b5a08f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e6045df in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:950: DB::HTTPHandler::trySendExceptionToClient(String const&, int, DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&) @ 0x000000001e558fee in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1088: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55b575 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:28:55.735058 [ 62685 ] {} ServerErrorHandler: Poco::Exception. Code: 1000, e.code() = 32, I/O error: Broken pipe, Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/base/poco/Foundation/src/Exception.cpp:145: Poco::RuntimeException::RuntimeException(String const&, int) @ 0x00000000249376e7 in /usr/bin/clickhouse 4. /build/base/poco/Foundation/src/Exception.cpp:164: Poco::IOException::IOException(String const&, int) @ 0x000000002493b827 in /usr/bin/clickhouse 5. /build/base/poco/Net/src/SocketImpl.cpp:1008: Poco::Net::SocketImpl::error(int, String const&) @ 0x00000000247521ed in /usr/bin/clickhouse 6. /build/base/poco/Net/src/SocketImpl.cpp:927: Poco::Net::SocketImpl::error(int) @ 0x0000000024752884 in /usr/bin/clickhouse 7. /build/base/poco/Net/src/SocketImpl.cpp:0: Poco::Net::SocketImpl::sendBytes(void const*, int, int) @ 0x0000000024753472 in /usr/bin/clickhouse 8. /build/base/poco/Net/src/StreamSocketImpl.cpp:63: Poco::Net::StreamSocketImpl::sendBytes(void const*, int, int) @ 0x000000002475b11e in /usr/bin/clickhouse 9. /build/base/poco/Net/src/StreamSocket.cpp:114: Poco::Net::StreamSocket::sendBytes(void const*, int, int) @ 0x0000000024756f72 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/HTTPSession.cpp:144: Poco::Net::HTTPSession::write(char const*, long) @ 0x00000000247319ee in /usr/bin/clickhouse 11. /build/base/poco/Net/src/HTTPChunkedStream.cpp:146: Poco::Net::HTTPChunkedStreamBuf::writeToDevice(char const*, long) @ 0x000000002471bd94 in /usr/bin/clickhouse 12. /build/base/poco/Foundation/include/Poco/BufferedStreamBuf.h:130: Poco::BasicBufferedStreamBuf, Poco::BufferAllocator>::flushBuffer() @ 0x00000000245d3a6d in /usr/bin/clickhouse 13. /build/base/poco/Foundation/include/Poco/BufferedStreamBuf.h:111: Poco::BasicBufferedStreamBuf, Poco::BufferAllocator>::sync() @ 0x00000000245d3679 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/HTTPChunkedStream.cpp:54: Poco::Net::HTTPChunkedStreamBuf::close() @ 0x000000002471b553 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/HTTPChunkedStream.cpp:166: Poco::Net::HTTPChunkedIOS::~HTTPChunkedIOS() @ 0x000000002471bf3a in /usr/bin/clickhouse 16. /build/base/poco/Net/src/HTTPChunkedStream.cpp:208: Poco::Net::HTTPChunkedOutputStream::~HTTPChunkedOutputStream() @ 0x000000002471c621 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/HTTPChunkedStream.cpp:207: Poco::Net::HTTPChunkedOutputStream::~HTTPChunkedOutputStream() @ 0x000000002471c660 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:64: void std::__destroy_at[abi:v15000](Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e60144d in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:89: void std::destroy_at[abi:v15000](Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e6013f5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:321: void std::allocator_traits>::destroy[abi:v15000](std::allocator&, Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e6013d9 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:309: std::__shared_ptr_emplace>::__on_zero_shared() @ 0x000000001e60124e in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:175: std::__shared_count::__release_shared[abi:v15000]() @ 0x000000000b18b3d4 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:215: std::__shared_weak_count::__release_shared[abi:v15000]() @ 0x000000000b18b379 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:703: std::shared_ptr>>::~shared_ptr[abi:v15000]() @ 0x000000001e563fac in /usr/bin/clickhouse 25. /build/src/Server/HTTP/HTTPServerResponse.h:16: DB::HTTPServerResponse::~HTTPServerResponse() @ 0x000000001e5fb73b in /usr/bin/clickhouse 26. /build/src/Server/HTTP/HTTPServerConnection.cpp:88: DB::HTTPServerConnection::run() @ 0x000000001e5fb278 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:29:27.106053 [ 81689 ] {62b1962c-e885-408c-8c6e-841eb4a04181} executeQuery: Code: 24. DB::Exception: Cannot write to ostream at offset 1188: While executing TabSeparatedRowOutputFormat. (CANNOT_WRITE_TO_OSTREAM) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:58880) (in query: SELECT message_format_string, count(), any(message) AS any_message FROM system.text_log WHERE (now() - toIntervalMinute(240)) < event_time AND (message NOT LIKE (replaceRegexpAll(message_format_string, '{[:.0-9dfx]*}', '%') AS s)) AND (message NOT LIKE concat('%Exception: ', s, '%')) GROUP BY message_format_string ORDER BY count() DESC LIMIT 20 FORMAT TSVWithNamesAndTypes ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9158f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b5a08f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e6045df in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:111: DB::IOutputFormat::flush() @ 0x000000001e697d3c in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IOutputFormat.cpp:0: DB::IOutputFormat::work() @ 0x000000001e697ab4 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 2024.05.01 14:29:27.120916 [ 81689 ] {62b1962c-e885-408c-8c6e-841eb4a04181} DynamicQueryHandler: Code: 24. DB::Exception: Cannot write to ostream at offset 1188: While executing TabSeparatedRowOutputFormat. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9158f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b5a08f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e6045df in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:111: DB::IOutputFormat::flush() @ 0x000000001e697d3c in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IOutputFormat.cpp:0: DB::IOutputFormat::work() @ 0x000000001e697ab4 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:29:27.121985 [ 81689 ] {62b1962c-e885-408c-8c6e-841eb4a04181} DynamicQueryHandler: Cannot send exception to client: Code: 24. DB::Exception: Cannot write to ostream at offset 1377. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9158f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b5a08f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e6045df in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:950: DB::HTTPHandler::trySendExceptionToClient(String const&, int, DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&) @ 0x000000001e558fee in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1088: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55b575 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:29:27.124760 [ 81689 ] {} ServerErrorHandler: Poco::Exception. Code: 1000, e.code() = 32, I/O error: Broken pipe, Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/base/poco/Foundation/src/Exception.cpp:145: Poco::RuntimeException::RuntimeException(String const&, int) @ 0x00000000249376e7 in /usr/bin/clickhouse 4. /build/base/poco/Foundation/src/Exception.cpp:164: Poco::IOException::IOException(String const&, int) @ 0x000000002493b827 in /usr/bin/clickhouse 5. /build/base/poco/Net/src/SocketImpl.cpp:1008: Poco::Net::SocketImpl::error(int, String const&) @ 0x00000000247521ed in /usr/bin/clickhouse 6. /build/base/poco/Net/src/SocketImpl.cpp:927: Poco::Net::SocketImpl::error(int) @ 0x0000000024752884 in /usr/bin/clickhouse 7. /build/base/poco/Net/src/SocketImpl.cpp:0: Poco::Net::SocketImpl::sendBytes(void const*, int, int) @ 0x0000000024753472 in /usr/bin/clickhouse 8. /build/base/poco/Net/src/StreamSocketImpl.cpp:63: Poco::Net::StreamSocketImpl::sendBytes(void const*, int, int) @ 0x000000002475b11e in /usr/bin/clickhouse 9. /build/base/poco/Net/src/StreamSocket.cpp:114: Poco::Net::StreamSocket::sendBytes(void const*, int, int) @ 0x0000000024756f72 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/HTTPSession.cpp:144: Poco::Net::HTTPSession::write(char const*, long) @ 0x00000000247319ee in /usr/bin/clickhouse 11. /build/base/poco/Net/src/HTTPChunkedStream.cpp:146: Poco::Net::HTTPChunkedStreamBuf::writeToDevice(char const*, long) @ 0x000000002471bd94 in /usr/bin/clickhouse 12. /build/base/poco/Foundation/include/Poco/BufferedStreamBuf.h:130: Poco::BasicBufferedStreamBuf, Poco::BufferAllocator>::flushBuffer() @ 0x00000000245d3a6d in /usr/bin/clickhouse 13. /build/base/poco/Foundation/include/Poco/BufferedStreamBuf.h:111: Poco::BasicBufferedStreamBuf, Poco::BufferAllocator>::sync() @ 0x00000000245d3679 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/HTTPChunkedStream.cpp:54: Poco::Net::HTTPChunkedStreamBuf::close() @ 0x000000002471b553 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/HTTPChunkedStream.cpp:166: Poco::Net::HTTPChunkedIOS::~HTTPChunkedIOS() @ 0x000000002471bf3a in /usr/bin/clickhouse 16. /build/base/poco/Net/src/HTTPChunkedStream.cpp:208: Poco::Net::HTTPChunkedOutputStream::~HTTPChunkedOutputStream() @ 0x000000002471c621 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/HTTPChunkedStream.cpp:207: Poco::Net::HTTPChunkedOutputStream::~HTTPChunkedOutputStream() @ 0x000000002471c660 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:64: void std::__destroy_at[abi:v15000](Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e60144d in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:89: void std::destroy_at[abi:v15000](Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e6013f5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:321: void std::allocator_traits>::destroy[abi:v15000](std::allocator&, Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e6013d9 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:309: std::__shared_ptr_emplace>::__on_zero_shared() @ 0x000000001e60124e in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:175: std::__shared_count::__release_shared[abi:v15000]() @ 0x000000000b18b3d4 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:215: std::__shared_weak_count::__release_shared[abi:v15000]() @ 0x000000000b18b379 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:703: std::shared_ptr>>::~shared_ptr[abi:v15000]() @ 0x000000001e563fac in /usr/bin/clickhouse 25. /build/src/Server/HTTP/HTTPServerResponse.h:16: DB::HTTPServerResponse::~HTTPServerResponse() @ 0x000000001e5fb73b in /usr/bin/clickhouse 26. /build/src/Server/HTTP/HTTPServerConnection.cpp:88: DB::HTTPServerConnection::run() @ 0x000000001e5fb278 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:29:59.197596 [ 81866 ] {6cc33b03-cde0-4269-ba55-f19b28e85c46} executeQuery: Code: 24. DB::Exception: Cannot write to ostream at offset 1188: While executing TabSeparatedRowOutputFormat. (CANNOT_WRITE_TO_OSTREAM) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47668) (in query: SELECT message_format_string, count(), any(message) AS any_message FROM system.text_log WHERE (now() - toIntervalMinute(240)) < event_time AND (message NOT LIKE (replaceRegexpAll(message_format_string, '{[:.0-9dfx]*}', '%') AS s)) AND (message NOT LIKE concat('%Exception: ', s, '%')) GROUP BY message_format_string ORDER BY count() DESC LIMIT 20 FORMAT TSVWithNamesAndTypes ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9158f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b5a08f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e6045df in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:111: DB::IOutputFormat::flush() @ 0x000000001e697d3c in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IOutputFormat.cpp:0: DB::IOutputFormat::work() @ 0x000000001e697ab4 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 2024.05.01 14:29:59.214735 [ 81866 ] {6cc33b03-cde0-4269-ba55-f19b28e85c46} DynamicQueryHandler: Code: 24. DB::Exception: Cannot write to ostream at offset 1188: While executing TabSeparatedRowOutputFormat. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9158f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b5a08f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e6045df in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:111: DB::IOutputFormat::flush() @ 0x000000001e697d3c in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IOutputFormat.cpp:0: DB::IOutputFormat::work() @ 0x000000001e697ab4 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:29:59.215628 [ 81866 ] {6cc33b03-cde0-4269-ba55-f19b28e85c46} DynamicQueryHandler: Cannot send exception to client: Code: 24. DB::Exception: Cannot write to ostream at offset 1377. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9158f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b5a08f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e6045df in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:950: DB::HTTPHandler::trySendExceptionToClient(String const&, int, DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&) @ 0x000000001e558fee in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1088: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55b575 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:29:59.217980 [ 81866 ] {} ServerErrorHandler: Poco::Exception. Code: 1000, e.code() = 32, I/O error: Broken pipe, Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/base/poco/Foundation/src/Exception.cpp:145: Poco::RuntimeException::RuntimeException(String const&, int) @ 0x00000000249376e7 in /usr/bin/clickhouse 4. /build/base/poco/Foundation/src/Exception.cpp:164: Poco::IOException::IOException(String const&, int) @ 0x000000002493b827 in /usr/bin/clickhouse 5. /build/base/poco/Net/src/SocketImpl.cpp:1008: Poco::Net::SocketImpl::error(int, String const&) @ 0x00000000247521ed in /usr/bin/clickhouse 6. /build/base/poco/Net/src/SocketImpl.cpp:927: Poco::Net::SocketImpl::error(int) @ 0x0000000024752884 in /usr/bin/clickhouse 7. /build/base/poco/Net/src/SocketImpl.cpp:0: Poco::Net::SocketImpl::sendBytes(void const*, int, int) @ 0x0000000024753472 in /usr/bin/clickhouse 8. /build/base/poco/Net/src/StreamSocketImpl.cpp:63: Poco::Net::StreamSocketImpl::sendBytes(void const*, int, int) @ 0x000000002475b11e in /usr/bin/clickhouse 9. /build/base/poco/Net/src/StreamSocket.cpp:114: Poco::Net::StreamSocket::sendBytes(void const*, int, int) @ 0x0000000024756f72 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/HTTPSession.cpp:144: Poco::Net::HTTPSession::write(char const*, long) @ 0x00000000247319ee in /usr/bin/clickhouse 11. /build/base/poco/Net/src/HTTPChunkedStream.cpp:146: Poco::Net::HTTPChunkedStreamBuf::writeToDevice(char const*, long) @ 0x000000002471bd94 in /usr/bin/clickhouse 12. /build/base/poco/Foundation/include/Poco/BufferedStreamBuf.h:130: Poco::BasicBufferedStreamBuf, Poco::BufferAllocator>::flushBuffer() @ 0x00000000245d3a6d in /usr/bin/clickhouse 13. /build/base/poco/Foundation/include/Poco/BufferedStreamBuf.h:111: Poco::BasicBufferedStreamBuf, Poco::BufferAllocator>::sync() @ 0x00000000245d3679 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/HTTPChunkedStream.cpp:54: Poco::Net::HTTPChunkedStreamBuf::close() @ 0x000000002471b553 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/HTTPChunkedStream.cpp:166: Poco::Net::HTTPChunkedIOS::~HTTPChunkedIOS() @ 0x000000002471bf3a in /usr/bin/clickhouse 16. /build/base/poco/Net/src/HTTPChunkedStream.cpp:208: Poco::Net::HTTPChunkedOutputStream::~HTTPChunkedOutputStream() @ 0x000000002471c621 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/HTTPChunkedStream.cpp:207: Poco::Net::HTTPChunkedOutputStream::~HTTPChunkedOutputStream() @ 0x000000002471c660 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:64: void std::__destroy_at[abi:v15000](Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e60144d in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:89: void std::destroy_at[abi:v15000](Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e6013f5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:321: void std::allocator_traits>::destroy[abi:v15000](std::allocator&, Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e6013d9 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:309: std::__shared_ptr_emplace>::__on_zero_shared() @ 0x000000001e60124e in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:175: std::__shared_count::__release_shared[abi:v15000]() @ 0x000000000b18b3d4 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:215: std::__shared_weak_count::__release_shared[abi:v15000]() @ 0x000000000b18b379 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:703: std::shared_ptr>>::~shared_ptr[abi:v15000]() @ 0x000000001e563fac in /usr/bin/clickhouse 25. /build/src/Server/HTTP/HTTPServerResponse.h:16: DB::HTTPServerResponse::~HTTPServerResponse() @ 0x000000001e5fb73b in /usr/bin/clickhouse 26. /build/src/Server/HTTP/HTTPServerConnection.cpp:88: DB::HTTPServerConnection::run() @ 0x000000001e5fb278 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:30:32.315446 [ 81689 ] {acd4cfbc-21d9-437e-9b2f-46f7974102d8} executeQuery: Code: 24. DB::Exception: Cannot write to ostream at offset 1188: While executing TabSeparatedRowOutputFormat. (CANNOT_WRITE_TO_OSTREAM) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:33240) (in query: SELECT message_format_string, count(), any(message) AS any_message FROM system.text_log WHERE (now() - toIntervalMinute(240)) < event_time AND (message NOT LIKE (replaceRegexpAll(message_format_string, '{[:.0-9dfx]*}', '%') AS s)) AND (message NOT LIKE concat('%Exception: ', s, '%')) GROUP BY message_format_string ORDER BY count() DESC LIMIT 20 FORMAT TSVWithNamesAndTypes ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9158f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b5a08f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e6045df in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:111: DB::IOutputFormat::flush() @ 0x000000001e697d3c in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IOutputFormat.cpp:0: DB::IOutputFormat::work() @ 0x000000001e697ab4 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse 2024.05.01 14:30:32.332340 [ 81689 ] {acd4cfbc-21d9-437e-9b2f-46f7974102d8} DynamicQueryHandler: Code: 24. DB::Exception: Cannot write to ostream at offset 1188: While executing TabSeparatedRowOutputFormat. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9158f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b5a08f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e6045df in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 10. /build/src/Processors/Formats/IOutputFormat.cpp:111: DB::IOutputFormat::flush() @ 0x000000001e697d3c in /usr/bin/clickhouse 11. /build/src/Processors/Formats/IOutputFormat.cpp:0: DB::IOutputFormat::work() @ 0x000000001e697ab4 in /usr/bin/clickhouse 12. /build/src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x000000001e683603 in /usr/bin/clickhouse 13. /build/src/Processors/Executors/ExecutionThreadContext.cpp:95: DB::ExecutionThreadContext::executeTask() @ 0x000000001e683340 in /usr/bin/clickhouse 14. /build/src/Processors/Executors/PipelineExecutor.cpp:251: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001e668361 in /usr/bin/clickhouse 15. /build/src/Processors/Executors/PipelineExecutor.cpp:217: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x000000001e6686f7 in /usr/bin/clickhouse 16. /build/src/Processors/Executors/PipelineExecutor.cpp:351: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x000000001e669438 in /usr/bin/clickhouse 17. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000](DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669395 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call(DB::PipelineExecutor::spawnThreads()::$_0&) @ 0x000000001e669375 in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::operator()[abi:v15000]() @ 0x000000001e669355 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__functional/function.h:716: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x000000001e669320 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__functional/function.h:848: std::__function::__policy_func::operator()[abi:v15000]() const @ 0x0000000013948096 in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__functional/function.h:1187: std::function::operator()() const @ 0x0000000013947575 in /usr/bin/clickhouse 23. /build/src/Common/ThreadPool.cpp:426: ThreadPoolImpl>::worker(std::__list_iterator, void*>) @ 0x0000000013a54843 in /usr/bin/clickhouse 24. /build/src/Common/ThreadPool.cpp:179: void ThreadPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()::operator()() const @ 0x0000000013a5f0a4 in /usr/bin/clickhouse 25. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&>(void&&) @ 0x0000000013a5f075 in /usr/bin/clickhouse 26. /build/contrib/llvm-project/libcxx/include/tuple:1789: decltype(auto) std::__apply_tuple_impl[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&, std::__tuple_indices<>) @ 0x0000000013a5f059 in /usr/bin/clickhouse 27. /build/contrib/llvm-project/libcxx/include/tuple:1798: decltype(auto) std::apply[abi:v15000]>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()&, std::tuple<>&>(void&&, std::tuple<>&) @ 0x0000000013a5efbd in /usr/bin/clickhouse 28. /build/src/Common/ThreadPool.h:242: ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()::operator()() @ 0x0000000013a5eec5 in /usr/bin/clickhouse 29. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:394: decltype(std::declval()()) std::__invoke[abi:v15000]::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(void&&) @ 0x0000000013a5ee35 in /usr/bin/clickhouse 30. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:480: void std::__invoke_void_return_wrapper::__call::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&>(ThreadFromGlobalPoolImpl::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'()&) @ 0x0000000013a5ee15 in /usr/bin/clickhouse 31. /build/contrib/llvm-project/libcxx/include/__functional/function.h:235: std::__function::__default_alloc_func::ThreadFromGlobalPoolImpl>::scheduleImpl(std::function, Priority, std::optional, bool)::'lambda0'()>(void&&)::'lambda'(), void ()>::operator()[abi:v15000]() @ 0x0000000013a5edf5 in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:30:32.333241 [ 81689 ] {acd4cfbc-21d9-437e-9b2f-46f7974102d8} DynamicQueryHandler: Cannot send exception to client: Code: 24. DB::Exception: Cannot write to ostream at offset 1377. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9158f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b5a08f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e6045df in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:950: DB::HTTPHandler::trySendExceptionToClient(String const&, int, DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&) @ 0x000000001e558fee in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1088: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55b575 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:30:32.335558 [ 81689 ] {} ServerErrorHandler: Poco::Exception. Code: 1000, e.code() = 32, I/O error: Broken pipe, Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/base/poco/Foundation/src/Exception.cpp:145: Poco::RuntimeException::RuntimeException(String const&, int) @ 0x00000000249376e7 in /usr/bin/clickhouse 4. /build/base/poco/Foundation/src/Exception.cpp:164: Poco::IOException::IOException(String const&, int) @ 0x000000002493b827 in /usr/bin/clickhouse 5. /build/base/poco/Net/src/SocketImpl.cpp:1008: Poco::Net::SocketImpl::error(int, String const&) @ 0x00000000247521ed in /usr/bin/clickhouse 6. /build/base/poco/Net/src/SocketImpl.cpp:927: Poco::Net::SocketImpl::error(int) @ 0x0000000024752884 in /usr/bin/clickhouse 7. /build/base/poco/Net/src/SocketImpl.cpp:0: Poco::Net::SocketImpl::sendBytes(void const*, int, int) @ 0x0000000024753472 in /usr/bin/clickhouse 8. /build/base/poco/Net/src/StreamSocketImpl.cpp:63: Poco::Net::StreamSocketImpl::sendBytes(void const*, int, int) @ 0x000000002475b11e in /usr/bin/clickhouse 9. /build/base/poco/Net/src/StreamSocket.cpp:114: Poco::Net::StreamSocket::sendBytes(void const*, int, int) @ 0x0000000024756f72 in /usr/bin/clickhouse 10. /build/base/poco/Net/src/HTTPSession.cpp:144: Poco::Net::HTTPSession::write(char const*, long) @ 0x00000000247319ee in /usr/bin/clickhouse 11. /build/base/poco/Net/src/HTTPChunkedStream.cpp:146: Poco::Net::HTTPChunkedStreamBuf::writeToDevice(char const*, long) @ 0x000000002471bd94 in /usr/bin/clickhouse 12. /build/base/poco/Foundation/include/Poco/BufferedStreamBuf.h:130: Poco::BasicBufferedStreamBuf, Poco::BufferAllocator>::flushBuffer() @ 0x00000000245d3a6d in /usr/bin/clickhouse 13. /build/base/poco/Foundation/include/Poco/BufferedStreamBuf.h:111: Poco::BasicBufferedStreamBuf, Poco::BufferAllocator>::sync() @ 0x00000000245d3679 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/HTTPChunkedStream.cpp:54: Poco::Net::HTTPChunkedStreamBuf::close() @ 0x000000002471b553 in /usr/bin/clickhouse 15. /build/base/poco/Net/src/HTTPChunkedStream.cpp:166: Poco::Net::HTTPChunkedIOS::~HTTPChunkedIOS() @ 0x000000002471bf3a in /usr/bin/clickhouse 16. /build/base/poco/Net/src/HTTPChunkedStream.cpp:208: Poco::Net::HTTPChunkedOutputStream::~HTTPChunkedOutputStream() @ 0x000000002471c621 in /usr/bin/clickhouse 17. /build/base/poco/Net/src/HTTPChunkedStream.cpp:207: Poco::Net::HTTPChunkedOutputStream::~HTTPChunkedOutputStream() @ 0x000000002471c660 in /usr/bin/clickhouse 18. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:64: void std::__destroy_at[abi:v15000](Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e60144d in /usr/bin/clickhouse 19. /build/contrib/llvm-project/libcxx/include/__memory/construct_at.h:89: void std::destroy_at[abi:v15000](Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e6013f5 in /usr/bin/clickhouse 20. /build/contrib/llvm-project/libcxx/include/__memory/allocator_traits.h:321: void std::allocator_traits>::destroy[abi:v15000](std::allocator&, Poco::Net::HTTPChunkedOutputStream*) @ 0x000000001e6013d9 in /usr/bin/clickhouse 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:309: std::__shared_ptr_emplace>::__on_zero_shared() @ 0x000000001e60124e in /usr/bin/clickhouse 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:175: std::__shared_count::__release_shared[abi:v15000]() @ 0x000000000b18b3d4 in /usr/bin/clickhouse 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:215: std::__shared_weak_count::__release_shared[abi:v15000]() @ 0x000000000b18b379 in /usr/bin/clickhouse 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:703: std::shared_ptr>>::~shared_ptr[abi:v15000]() @ 0x000000001e563fac in /usr/bin/clickhouse 25. /build/src/Server/HTTP/HTTPServerResponse.h:16: DB::HTTPServerResponse::~HTTPServerResponse() @ 0x000000001e5fb73b in /usr/bin/clickhouse 26. /build/src/Server/HTTP/HTTPServerConnection.cpp:88: DB::HTTPServerConnection::run() @ 0x000000001e5fb278 in /usr/bin/clickhouse 27. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 28. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 29. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 30. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 31. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:31:00.085954 [ 672 ] {} Application: Closed all listening sockets. Waiting for 19 outstanding connections. 2024.05.01 14:31:01.123240 [ 81866 ] {c296de43-72f6-463c-b5f8-44ad65938b3d} executeQuery: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED) (version 23.8.11.29.altinitystable (altinity build)) (from [::1]:47868) (in query: SELECT message_format_string, count(), any(message) AS any_message FROM system.text_log WHERE (now() - toIntervalMinute(240)) < event_time AND (message NOT LIKE (replaceRegexpAll(message_format_string, '{[:.0-9dfx]*}', '%') AS s)) AND (message NOT LIKE concat('%Exception: ', s, '%')) GROUP BY message_format_string ORDER BY count() DESC LIMIT 20 FORMAT TSVWithNamesAndTypes ), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:110: DB::CompletedPipelineExecutor::execute() @ 0x000000001e664b88 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1404: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a3560 in /usr/bin/clickhouse 12. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 13. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 14. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? 2024.05.01 14:31:01.137397 [ 81866 ] {c296de43-72f6-463c-b5f8-44ad65938b3d} DynamicQueryHandler: Code: 394. DB::Exception: Query was cancelled. (QUERY_WAS_CANCELLED), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:86: DB::Exception::Exception(int, char const (&) [20]) @ 0x000000000b8f11be in /usr/bin/clickhouse 6. /build/src/Interpreters/ProcessList.cpp:463: DB::QueryStatus::checkTimeLimit() @ 0x000000001cc9a13b in /usr/bin/clickhouse 7. /build/src/Processors/Executors/PipelineExecutor.cpp:185: DB::PipelineExecutor::checkTimeLimit() @ 0x000000001e667440 in /usr/bin/clickhouse 8. /build/src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::finalizeExecution() @ 0x000000001e667b1c in /usr/bin/clickhouse 9. /build/src/Processors/Executors/PipelineExecutor.cpp:130: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001e6673b6 in /usr/bin/clickhouse 10. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:110: DB::CompletedPipelineExecutor::execute() @ 0x000000001e664b88 in /usr/bin/clickhouse 11. /build/src/Interpreters/executeQuery.cpp:1404: DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::shared_ptr, std::function, std::optional const&, std::function) @ 0x000000001d0a3560 in /usr/bin/clickhouse 12. /build/src/Server/HTTPHandler.cpp:864: DB::HTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::optional&) @ 0x000000001e557cb1 in /usr/bin/clickhouse 13. /build/src/Server/HTTPHandler.cpp:1058: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55a7e7 in /usr/bin/clickhouse 14. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 15. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 16. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 18. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 19. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 20. ? @ 0x00007fcde32fbac3 in ? 21. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:31:01.138478 [ 81866 ] {c296de43-72f6-463c-b5f8-44ad65938b3d} DynamicQueryHandler: Cannot send exception to client: Code: 24. DB::Exception: Cannot write to ostream at offset 122. (CANNOT_WRITE_TO_OSTREAM), Stack trace (when copying this message, always include the lines below): 0. /build/contrib/llvm-project/libcxx/include/exception:134: std::exception::capture() @ 0x000000000b19ad42 in /usr/bin/clickhouse 1. /build/contrib/llvm-project/libcxx/include/exception:112: std::exception::exception[abi:v15000]() @ 0x000000000b19ad0d in /usr/bin/clickhouse 2. /build/base/poco/Foundation/src/Exception.cpp:27: Poco::Exception::Exception(String const&, int) @ 0x0000000024934280 in /usr/bin/clickhouse 3. /build/src/Common/Exception.cpp:96: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x00000000138d63ae in /usr/bin/clickhouse 4. /build/src/Common/Exception.h:73: DB::Exception::Exception(String&&, int, bool) @ 0x000000000b18cd8a in /usr/bin/clickhouse 5. /build/src/Common/Exception.h:101: DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x000000000d9158f3 in /usr/bin/clickhouse 6. /build/src/IO/WriteBufferFromOStream.cpp:22: DB::WriteBufferFromOStream::nextImpl() @ 0x0000000013b5a08f in /usr/bin/clickhouse 7. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 8. /build/src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:132: DB::WriteBufferFromHTTPServerResponse::nextImpl() @ 0x000000001e6045df in /usr/bin/clickhouse 9. /build/src/IO/WriteBuffer.h:48: DB::WriteBuffer::next() @ 0x000000000b1fc44d in /usr/bin/clickhouse 10. /build/src/Server/HTTPHandler.cpp:950: DB::HTTPHandler::trySendExceptionToClient(String const&, int, DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&) @ 0x000000001e558fee in /usr/bin/clickhouse 11. /build/src/Server/HTTPHandler.cpp:1088: DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x000000001e55b575 in /usr/bin/clickhouse 12. /build/src/Server/HTTP/HTTPServerConnection.cpp:68: DB::HTTPServerConnection::run() @ 0x000000001e5fb0dc in /usr/bin/clickhouse 13. /build/base/poco/Net/src/TCPServerConnection.cpp:43: Poco::Net::TCPServerConnection::start() @ 0x000000002475c719 in /usr/bin/clickhouse 14. /build/base/poco/Net/src/TCPServerDispatcher.cpp:115: Poco::Net::TCPServerDispatcher::run() @ 0x000000002475cf5c in /usr/bin/clickhouse 15. /build/base/poco/Foundation/src/ThreadPool.cpp:188: Poco::PooledThread::run() @ 0x00000000249b1774 in /usr/bin/clickhouse 16. /build/base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x00000000249ae51a in /usr/bin/clickhouse 17. /build/base/poco/Foundation/src/Thread_POSIX.cpp:335: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000249ad21e in /usr/bin/clickhouse 18. ? @ 0x00007fcde32fbac3 in ? 19. ? @ 0x00007fcde338ca04 in ? (version 23.8.11.29.altinitystable (altinity build)) 2024.05.01 14:31:04.992548 [ 672 ] {} Application: Closed connections. But 9 remain. Tip: To increase wait time add to config: 60 2024.05.01 14:31:04.992748 [ 672 ] {} Application: Will shutdown forcefully.